summaryrefslogtreecommitdiff
path: root/lisp/dired-aux.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2002-03-14 08:55:48 +0000
committerRichard M. Stallman <rms@gnu.org>2002-03-14 08:55:48 +0000
commit876a2544ce837ba0721fe5471e055cab45a574f8 (patch)
tree51f5c304ef59f486ffcdc4cd05628f185d9335d1 /lisp/dired-aux.el
parentbf989169d3aa9c213dc85b0da1d20c20da9f0fdd (diff)
downloademacs-876a2544ce837ba0721fe5471e055cab45a574f8.tar.gz
(dired-fun-in-all-buffers): Moved to dired.el.
Diffstat (limited to 'lisp/dired-aux.el')
-rw-r--r--lisp/dired-aux.el21
1 files changed, 0 insertions, 21 deletions
diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el
index 8cd7373070e..8e4a8e0ded9 100644
--- a/lisp/dired-aux.el
+++ b/lisp/dired-aux.el
@@ -787,27 +787,6 @@ a prefix arg lets you edit the `ls' switches used for the new listing."
(subst-char-in-region opoint (1+ opoint) ?\040 char))))
(dired-move-to-filename))
-(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 ((buf-list (dired-buffers-for-dir (expand-file-name directory)
- file))
- (obuf (current-buffer))
- buf success-list)
- (while buf-list
- (setq buf (car buf-list)
- buf-list (cdr buf-list))
- (unwind-protect
- (progn
- (set-buffer buf)
- (if (apply fun args)
- (setq success-list (cons (buffer-name buf) success-list))))
- (set-buffer obuf)))
- success-list))
-
;;;###autoload
(defun dired-add-file (filename &optional marker-char)
(dired-fun-in-all-buffers