Fix dired-number-of-marked-files when there are no marked files
* lisp/dired.el (dired-number-of-marked-files): Fix if expression so that the else part is evaluated correctly.
This commit is contained in:
parent
83ded11b03
commit
e368f56037
1 changed files with 7 additions and 7 deletions
|
@ -3850,13 +3850,13 @@ object files--just `.o' will mark more than you might think."
|
|||
when (stringp file)
|
||||
sum (file-attribute-size (file-attributes file)))))
|
||||
(if (zerop nmarked)
|
||||
(message "No marked files"))
|
||||
(message "%d marked file%s (%s total size)"
|
||||
nmarked
|
||||
(if (= nmarked 1)
|
||||
""
|
||||
"s")
|
||||
(funcall byte-count-to-string-function size))))
|
||||
(message "No marked files")
|
||||
(message "%d marked file%s (%s total size)"
|
||||
nmarked
|
||||
(if (= nmarked 1)
|
||||
""
|
||||
"s")
|
||||
(funcall byte-count-to-string-function size)))))
|
||||
|
||||
(defun dired-mark-files-containing-regexp (regexp &optional marker-char)
|
||||
"Mark all files with contents containing REGEXP for use in later commands.
|
||||
|
|
Loading…
Add table
Reference in a new issue