Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
f5b06a95
Commit
f5b06a95
authored
May 29, 1995
by
Karl Heuer
Browse files
(dired-find-buffer-nocreate): Check only buffers in
dired-buffers instead of all buffers in (buffer-list).
parent
0f09b616
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lisp/dired.el
lisp/dired.el
+3
-3
No files found.
lisp/dired.el
View file @
f5b06a95
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment