aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2008-02-22 18:47:26 +0000
committerStefan Monnier2008-02-22 18:47:26 +0000
commitbb5527ce637d3671ebac05ca7260a9aa8452150a (patch)
treed25734844c69c066601dc2b27d18e5f9ec7c761b
parentb1988611249ebea76fd861cacdedd4741610238d (diff)
downloademacs-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/ChangeLog5
-rw-r--r--lisp/dired.el6
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 @@
12008-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
12008-02-22 Bill Meier <wmeier@newsguy.com> (tiny change) 62008-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. 2537name, 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)