Function: dired-log-summary
dired-log-summary is a byte-compiled function defined in dired.el.gz.
Signature
(dired-log-summary STRING FAILURES)
Documentation
State a summary of a command's failures, in echo area and log buffer.
STRING is an overall summary of the failures. FAILURES is a list of file names that we failed to operate on, or nil if file names are not applicable.
Source Code
;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired-log-summary (string failures)
"State a summary of a command's failures, in echo area and log buffer.
STRING is an overall summary of the failures.
FAILURES is a list of file names that we failed to operate on,
or nil if file names are not applicable."
(if (= (length failures) 1)
(message "%s"
(with-current-buffer dired-log-buffer
(goto-char (point-max))
(backward-page 1)
(if (eolp) (forward-line 1))
(buffer-substring (point) (point-max))))
(message (if failures "%s--type ? for details (%s)"
"%s--type ? for details")
string failures))
;; Log a summary describing a bunch of errors.
(dired-log (concat "\n" string "\n"))
(dired-log t))