diff options
| author | Stefan Monnier | 2008-02-22 18:47:26 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-02-22 18:47:26 +0000 |
| commit | bb5527ce637d3671ebac05ca7260a9aa8452150a (patch) | |
| tree | d25734844c69c066601dc2b27d18e5f9ec7c761b | |
| parent | b1988611249ebea76fd861cacdedd4741610238d (diff) | |
| download | emacs-bb5527ce637d3671ebac05ca7260a9aa8452150a.tar.gz emacs-bb5527ce637d3671ebac05ca7260a9aa8452150a.zip | |
(dired-mark-prompt): Don't count/display the t element.
Reported by Carsten Blaauw <it-media.blaauw@daimler.com>.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/dired.el | 6 |
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8155315790f..a8559f1a9a4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * dired.el (dired-mark-prompt): Don't count/display the t element. | ||
| 4 | Reported by Carsten Blaauw <it-media.blaauw@daimler.com>. | ||
| 5 | |||
| 1 | 2008-02-22 Bill Meier <wmeier@newsguy.com> (tiny change) | 6 | 2008-02-22 Bill Meier <wmeier@newsguy.com> (tiny change) |
| 2 | 7 | ||
| 3 | * progmodes/sh-script.el (sh-indent-comment): Docstring fix. | 8 | * progmodes/sh-script.el (sh-indent-comment): Docstring fix. |
diff --git a/lisp/dired.el b/lisp/dired.el index 55d8f4aac74..942a6e4c905 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -2533,8 +2533,10 @@ deletion of non-empty directories is allowed." | |||
| 2533 | (if (= 1 count) "" "s")) | 2533 | (if (= 1 count) "" "s")) |
| 2534 | 2534 | ||
| 2535 | (defun dired-mark-prompt (arg files) | 2535 | (defun dired-mark-prompt (arg files) |
| 2536 | ;; Return a string for use in a prompt, either the current file | 2536 | "Return a string for use in a prompt, either the current file |
| 2537 | ;; name, or the marker and a count of marked files. | 2537 | name, or the marker and a count of marked files." |
| 2538 | ;; distinguish-one-marked can cause the first element to be just t. | ||
| 2539 | (if (eq (car files) t) (setq files (cdr files))) | ||
| 2538 | (let ((count (length files))) | 2540 | (let ((count (length files))) |
| 2539 | (if (= count 1) | 2541 | (if (= count 1) |
| 2540 | (car files) | 2542 | (car files) |