diff options
author | Reiner Steib <Reiner.Steib@gmx.de> | 2007-08-25 12:18:43 +0000 |
---|---|---|
committer | Reiner Steib <Reiner.Steib@gmx.de> | 2007-08-25 12:18:43 +0000 |
commit | 2cbde7023518febea6484d0c97989eaa91bc418c (patch) | |
tree | 3049205dddbd5d4f8def1980daed2af6ad636665 /lisp/pcvs.el | |
parent | ca4ea90fa9fddeaa15956d0eeac068ac01bd1e33 (diff) | |
download | emacs-2cbde7023518febea6484d0c97989eaa91bc418c.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.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index e5d72050cf6..29530043447 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) |