mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-27 10:54:40 +00:00
(dired-mark-prompt): Don't count/display the t element.
Reported by Carsten Blaauw <it-media.blaauw@daimler.com>.
This commit is contained in:
parent
b198861124
commit
bb5527ce63
@ -1,3 +1,8 @@
|
||||
2008-02-22 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* dired.el (dired-mark-prompt): Don't count/display the t element.
|
||||
Reported by Carsten Blaauw <it-media.blaauw@daimler.com>.
|
||||
|
||||
2008-02-22 Bill Meier <wmeier@newsguy.com> (tiny change)
|
||||
|
||||
* progmodes/sh-script.el (sh-indent-comment): Docstring fix.
|
||||
|
@ -2533,8 +2533,10 @@ deletion of non-empty directories is allowed."
|
||||
(if (= 1 count) "" "s"))
|
||||
|
||||
(defun dired-mark-prompt (arg files)
|
||||
;; Return a string for use in a prompt, either the current file
|
||||
;; name, or the marker and a count of marked files.
|
||||
"Return a string for use in a prompt, either the current file
|
||||
name, or the marker and a count of marked files."
|
||||
;; distinguish-one-marked can cause the first element to be just t.
|
||||
(if (eq (car files) t) (setq files (cdr files)))
|
||||
(let ((count (length files)))
|
||||
(if (= count 1)
|
||||
(car files)
|
||||
|
Loading…
Reference in New Issue
Block a user