aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2000-12-11 03:20:29 +0000
committerStefan Monnier2000-12-11 03:20:29 +0000
commit802cf66c54be8f762c4b65a0a4d91010fdc7cd1e (patch)
tree4ddb41ae1b7aab8fd792c6ac4ab73d00cfb47eaa
parentfb97d87f8d6212b5c3b22b6b5667547a4422aa2d (diff)
downloademacs-802cf66c54be8f762c4b65a0a4d91010fdc7cd1e.tar.gz
emacs-802cf66c54be8f762c4b65a0a4d91010fdc7cd1e.zip
(cvs-mode-marked): Set up the default for CMD manually.
-rw-r--r--lisp/ChangeLog1
-rw-r--r--lisp/pcvs.el12
2 files changed, 7 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 72769b3f5b8..f565808ebc6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -9,6 +9,7 @@
9 * pcvs.el: Update references to CVS-Edit (now Log-Edit). 9 * pcvs.el: Update references to CVS-Edit (now Log-Edit).
10 (cvs-mode-diff-help): Remove. 10 (cvs-mode-diff-help): Remove.
11 (cvs-mode-commit): Use the new `log-edit' BUFFER argument. 11 (cvs-mode-commit): Use the new `log-edit' BUFFER argument.
12 (cvs-mode-marked): Set up the default for CMD manually.
12 13
13 * pcvs-defs.el (cvs-mode-diff-map): Use minibuffer menu prompt. 14 * pcvs-defs.el (cvs-mode-diff-map): Use minibuffer menu prompt.
14 Remove binding for ? now made unnecessary. 15 Remove binding for ? now made unnecessary.
diff --git a/lisp/pcvs.el b/lisp/pcvs.el
index f9d444aa2a9..6ee5b3adf76 100644
--- a/lisp/pcvs.el
+++ b/lisp/pcvs.el
@@ -14,7 +14,7 @@
14;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu 14;; Maintainer: (Stefan Monnier) monnier+lists/cvs/pcl@flint.cs.yale.edu
15;; Keywords: CVS, version control, release management 15;; Keywords: CVS, version control, release management
16;; Version: $Name: $ 16;; Version: $Name: $
17;; Revision: $Id: pcvs.el,v 1.20 2000/12/08 16:58:45 monnier Exp $ 17;; Revision: $Id: pcvs.el,v 1.21 2000/12/10 21:20:56 monnier Exp $
18 18
19;; This file is part of GNU Emacs. 19;; This file is part of GNU Emacs.
20 20
@@ -1237,13 +1237,12 @@ Args: &optional IGNORE-MARKS IGNORE-CONTENTS."
1237 (push fi fis) 1237 (push fi fis)
1238 ;; If a directory is selected, return members, if any. 1238 ;; If a directory is selected, return members, if any.
1239 (setq fis 1239 (setq fis
1240 (append (ewoc-collect cvs-cookies 1240 (append (ewoc-collect
1241 'cvs-dir-member-p 1241 cvs-cookies 'cvs-dir-member-p (cvs-fileinfo->dir fi))
1242 (cvs-fileinfo->dir fi))
1243 fis)))) 1242 fis))))
1244 (nreverse fis))) 1243 (nreverse fis)))
1245 1244
1246(defun* cvs-mode-marked (filter &optional (cmd (symbol-name filter)) 1245(defun* cvs-mode-marked (filter &optional cmd
1247 &key read-only one file noquery) 1246 &key read-only one file noquery)
1248 "Get the list of marked FIS. 1247 "Get the list of marked FIS.
1249CMD is used to determine whether to use the marks or not. 1248CMD is used to determine whether to use the marks or not.
@@ -1251,6 +1250,7 @@ Only files for which FILTER is applicable are returned.
1251If READ-ONLY is non-nil, the current toggling is left intact. 1250If READ-ONLY is non-nil, the current toggling is left intact.
1252If ONE is non-nil, marks are ignored and a single FI is returned. 1251If ONE is non-nil, marks are ignored and a single FI is returned.
1253If FILE is non-nil, directory entries won't be selected." 1252If FILE is non-nil, directory entries won't be selected."
1253 (unless cmd (setq cmd (symbol-name filter)))
1254 (let* ((fis (cvs-get-marked (or one (cvs-ignore-marks-p cmd read-only)) 1254 (let* ((fis (cvs-get-marked (or one (cvs-ignore-marks-p cmd read-only))
1255 (and (not file) 1255 (and (not file)
1256 (cvs-applicable-p 'DIRCHANGE filter)))) 1256 (cvs-applicable-p 'DIRCHANGE filter))))
@@ -1262,7 +1262,7 @@ If FILE is non-nil, directory entries won't be selected."
1262 (message (if (null fis) 1262 (message (if (null fis)
1263 "`%s' is not applicable to any of the selected files." 1263 "`%s' is not applicable to any of the selected files."
1264 "`%s' is only applicable to a single file.") cmd) 1264 "`%s' is only applicable to a single file.") cmd)
1265 (sit-for 0.5) 1265 (sit-for 1)
1266 (setq fis (list (cvs-insert-file 1266 (setq fis (list (cvs-insert-file
1267 (read-file-name (format "File to %s: " cmd)))))) 1267 (read-file-name (format "File to %s: " cmd))))))
1268 (if one (car fis) fis))) 1268 (if one (car fis) fis)))