# HG changeset patch # User Juanma Barranquero # Date 1118762405 0 # Node ID 8d79f84e54e81abd810669298dc4a34db0bea5bb # Parent f4efcc094de07c7aa63d054b128be4d0572a3b0b (cvs-mode): Follow error conventions. diff -r f4efcc094de0 -r 8d79f84e54e8 lisp/pcvs.el --- a/lisp/pcvs.el Tue Jun 14 15:19:08 2005 +0000 +++ b/lisp/pcvs.el Tue Jun 14 15:20:05 2005 +0000 @@ -944,9 +944,9 @@ (defun-cvs-mode (cvs-mode-checkout . NOARGS) (dir) "Run cvs checkout against the current branch. The files are stored to DIR." - (interactive + (interactive (let* ((branch (cvs-prefix-get 'cvs-branch-prefix)) - (prompt (format "CVS Checkout Directory for `%s%s': " + (prompt (format "CVS Checkout Directory for `%s%s': " (cvs-get-module) (if branch (format " (branch: %s)" branch) "")))) @@ -1123,7 +1123,7 @@ ("->" cvs-secondary-branch-prefix)))) " " cvs-mode-line-process)) (if buffer-file-name - (error "Use M-x cvs-quickdir to get a *cvs* buffer.")) + (error "Use M-x cvs-quickdir to get a *cvs* buffer")) (buffer-disable-undo) ;;(set (make-local-variable 'goal-column) cvs-cursor-column) (set (make-local-variable 'revert-buffer-function) 'cvs-mode-revert-buffer)