diff options
| author | Masatake YAMATO | 2003-08-31 02:11:21 +0000 |
|---|---|---|
| committer | Masatake YAMATO | 2003-08-31 02:11:21 +0000 |
| commit | bb61abb8a10b460c78483cc802277a5d2b36ad92 (patch) | |
| tree | ec3f013f87253f578bb3db9f068407bcf8dbec6e | |
| parent | 9d35adc75f3a64f909530381c257f68439712ca1 (diff) | |
| download | emacs-bb61abb8a10b460c78483cc802277a5d2b36ad92.tar.gz emacs-bb61abb8a10b460c78483cc802277a5d2b36ad92.zip | |
* pcvs.el (cvs-do-removal): Use = instead of eq to check
the numbre of files. Bind the numbre of files to a a local
variable. Suggestd by Kevin Rodgers <ihs_4664@yahoo.com>.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/pcvs.el | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7024544dc24..7dbe7425530 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2003-08-31 Masatake YAMATO <jet@gyve.org> | ||
| 2 | |||
| 3 | * pcvs.el (cvs-do-removal): Use = instead of eq to check | ||
| 4 | the numbre of files. Bind the numbre of files to a a local | ||
| 5 | variable. Suggestd by Kevin Rodgers <ihs_4664@yahoo.com>. | ||
| 6 | |||
| 1 | 2003-08-30 Eli Zaretskii <eliz@elta.co.il> | 7 | 2003-08-30 Eli Zaretskii <eliz@elta.co.il> |
| 2 | 8 | ||
| 3 | * vc-hooks.el (vc-make-version-backup): Fix the change made on | 9 | * vc-hooks.el (vc-make-version-backup): Fix the change made on |
diff --git a/lisp/pcvs.el b/lisp/pcvs.el index 300ed10c9cd..51bbafd8d3c 100644 --- a/lisp/pcvs.el +++ b/lisp/pcvs.el | |||
| @@ -2043,10 +2043,12 @@ Returns a list of FIS that should be `cvs remove'd." | |||
| 2043 | (shrink-window-if-larger-than-buffer)))) | 2043 | (shrink-window-if-larger-than-buffer)))) |
| 2044 | (if (not (or silent | 2044 | (if (not (or silent |
| 2045 | (unwind-protect | 2045 | (unwind-protect |
| 2046 | (if (eq 1 (length files)) | 2046 | (yes-or-no-p |
| 2047 | (yes-or-no-p (format "Delete file: \"%s\" ? " | 2047 | (let ((nfiles (length files))) |
| 2048 | (cvs-fileinfo->file (car files)))) | 2048 | (if (= 1 nfiles) |
| 2049 | (yes-or-no-p (format "Delete %d files? " (length files)))) | 2049 | (format "Delete file: \"%s\" ? " |
| 2050 | (cvs-fileinfo->file (car files))) | ||
| 2051 | (format "Delete %d files? " nfiles)))) | ||
| 2050 | (cvs-bury-buffer tmpbuf cvs-buffer)))) | 2052 | (cvs-bury-buffer tmpbuf cvs-buffer)))) |
| 2051 | (progn (message "Aborting") nil) | 2053 | (progn (message "Aborting") nil) |
| 2052 | (dolist (fi files) | 2054 | (dolist (fi files) |