Mercurial > emacs
changeset 82832:993f9a3219c4
(cvs-query-directory): Only prompt when prefix is given.
Don't behave differently when executed via M-x. Add doc string.
author | Reiner Steib <Reiner.Steib@gmx.de> |
---|---|
date | Sat, 25 Aug 2007 12:25:50 +0000 |
parents | 9083e0857ef6 |
children | 8c8c5e6ccef2 |
files | lisp/ChangeLog lisp/pcvs.el |
diffstat | 2 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Sat Aug 25 12:24:12 2007 +0000 +++ b/lisp/ChangeLog Sat Aug 25 12:25:50 2007 +0000 @@ -1,5 +1,8 @@ 2007-08-25 Reiner Steib <Reiner.Steib@gmx.de> + * pcvs.el (cvs-query-directory): Only prompt when prefix is given. + Don't behave differently when executed via M-x. Add doc string. + * sort.el (sort-fold-case, sort-numeric-base): Mark as safe-local-variable.
--- a/lisp/pcvs.el Sat Aug 25 12:24:12 2007 +0000 +++ b/lisp/pcvs.el Sat Aug 25 12:25:50 2007 +0000 @@ -981,13 +981,13 @@ (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)