diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-05-29 04:36:26 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-05-29 04:36:26 +0000 |
commit | 6913a5b011e0ea1dd25874b6a8eabd530d888d55 (patch) | |
tree | b079bb5c24dabeb5cc14cef0f45ccf51eab8644b /lisp/dired.el | |
parent | 2b50786cd5b83f96ae2616bc367c454810a89c9f (diff) | |
download | emacs-6913a5b011e0ea1dd25874b6a8eabd530d888d55.tar.gz |
(dired-find-buffer-nocreate): Check only buffers in
dired-buffers instead of all buffers in (buffer-list).
Diffstat (limited to 'lisp/dired.el')
-rw-r--r-- | lisp/dired.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/dired.el b/lisp/dired.el index 99c1b7961a2..9b49ceb0ddd 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -457,13 +457,13 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh." ;; This differs from dired-buffers-for-dir in that it does not consider ;; subdirs of default-directory and searches for the first match only (defun dired-find-buffer-nocreate (dirname) - (let (found (blist (buffer-list))) + (let (found (blist dired-buffers)) ; was (buffer-list) (while blist (save-excursion - (set-buffer (car blist)) + (set-buffer (cdr (car blist))) (if (and (eq major-mode 'dired-mode) (equal dired-directory dirname)) - (setq found (car blist) + (setq found (cdr (car blist)) blist nil) (setq blist (cdr blist))))) found)) |