diff options
| author | Reiner Steib | 2007-08-25 12:18:43 +0000 |
|---|---|---|
| committer | Reiner Steib | 2007-08-25 12:18:43 +0000 |
| commit | 2cbde7023518febea6484d0c97989eaa91bc418c (patch) | |
| tree | 3049205dddbd5d4f8def1980daed2af6ad636665 | |
| parent | ca4ea90fa9fddeaa15956d0eeac068ac01bd1e33 (diff) | |
| download | emacs-2cbde7023518febea6484d0c97989eaa91bc418c.tar.gz emacs-2cbde7023518febea6484d0c97989eaa91bc418c.zip | |
(cvs-query-directory): Only prompt when prefix is given.
Don't behave differently when executed via M-x. Add doc string.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/pcvs.el | 10 |
2 files changed, 10 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0703d5134c9..72419c73601 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-08-25 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 2 | |||
| 3 | * pcvs.el (cvs-query-directory): Only prompt when prefix is given. | ||
| 4 | Don't behave differently when executed via M-x. Add doc string. | ||
| 5 | |||
| 1 | 2007-08-24 Ulrich Mueller <ulm@gentoo.org> (tiny change) | 6 | 2007-08-24 Ulrich Mueller <ulm@gentoo.org> (tiny change) |
| 2 | 7 | ||
| 3 | * files.el (backup-buffer-copy): Don't wrap delete in | 8 | * files.el (backup-buffer-copy): Don't wrap delete in |
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." | |||
| 981 | (interactive) | 981 | (interactive) |
| 982 | (cvs-examine default-directory t)) | 982 | (cvs-examine default-directory t)) |
| 983 | 983 | ||
| 984 | (defun cvs-query-directory (msg) | 984 | (defun cvs-query-directory (prompt) |
| 985 | ;; last-command-char = ?\r hints that the command was run via M-x | 985 | "Read directory name, prompting with PROMPT. |
| 986 | If in a *cvs* buffer, don't prompt unless a prefix argument is given." | ||
| 986 | (if (and (cvs-buffer-p) | 987 | (if (and (cvs-buffer-p) |
| 987 | (not current-prefix-arg) | 988 | (not current-prefix-arg)) |
| 988 | (not (eq last-command-char ?\r))) | ||
| 989 | default-directory | 989 | default-directory |
| 990 | (read-directory-name msg nil default-directory nil))) | 990 | (read-directory-name prompt nil default-directory nil))) |
| 991 | 991 | ||
| 992 | ;;;###autoload | 992 | ;;;###autoload |
| 993 | (defun cvs-quickdir (dir &optional flags noshow) | 993 | (defun cvs-quickdir (dir &optional flags noshow) |