Function: dired-fun-in-all-buffers

dired-fun-in-all-buffers is a byte-compiled function defined in dired.el.gz.

Signature

(dired-fun-in-all-buffers DIRECTORY FILE FUN &rest ARGS)

Documentation

In all buffers dired'ing DIRECTORY, run FUN with ARGS.

If the buffer has a wildcard pattern, check that it matches FILE.
(FILE does not include a directory component.)
FILE may be nil, in which case ignore it. Return list of buffers where FUN succeeded (i.e., returned non-nil).

Source Code

;; Defined in /usr/src/emacs/lisp/dired.el.gz
(defun dired-fun-in-all-buffers (directory file fun &rest args)
  "In all buffers dired'ing DIRECTORY, run FUN with ARGS.
If the buffer has a wildcard pattern, check that it matches FILE.
\(FILE does not include a directory component.)
FILE may be nil, in which case ignore it.
Return list of buffers where FUN succeeded (i.e., returned non-nil)."
  (let (success-list)
    (dolist (buf (dired-buffers-for-dir directory file))
      (with-current-buffer buf
	(when (apply fun args)
	  (push (buffer-name buf) success-list))))
    ;; FIXME: AFAICT, this return value is not used by any of the callers!
    success-list))