summaryrefslogtreecommitdiff
path: root/lisp/pcvs.el
diff options
context:
space:
mode:
authorReiner Steib <Reiner.Steib@gmx.de>2007-08-25 12:25:50 +0000
committerReiner Steib <Reiner.Steib@gmx.de>2007-08-25 12:25:50 +0000
commitf29897bb38d195cb1d810197f63f3c78fd5e75aa (patch)
tree16972da47345530a5d71a7cc6c1864fe4e191f2d /lisp/pcvs.el
parent4d0a94d6be2fbc5404cf11b42d16be8fff56eded (diff)
downloademacs-f29897bb38d195cb1d810197f63f3c78fd5e75aa.tar.gz
(cvs-query-directory): Only prompt when prefix is given.
Don't behave differently when executed via M-x. Add doc string.
Diffstat (limited to 'lisp/pcvs.el')
-rw-r--r--lisp/pcvs.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index 7da13cfd0b2..aeaea995583 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -981,13 +981,13 @@ The files are stored to DIR."
(interactive)
(cvs-examine default-directory t))
-(defun cvs-query-directory (msg)
- ;; last-command-char = ?\r hints that the command was run via M-x
+(defun cvs-query-directory (prompt)
+ "Read directory name, prompting with PROMPT.
+If in a *cvs* buffer, don't prompt unless a prefix argument is given."
(if (and (cvs-buffer-p)
- (not current-prefix-arg)
- (not (eq last-command-char ?\r)))
+ (not current-prefix-arg))
default-directory
- (read-directory-name msg nil default-directory nil)))
+ (read-directory-name prompt nil default-directory nil)))
;;;###autoload
(defun cvs-quickdir (dir &optional flags noshow)