Commit 59759f1f authored by Richard M. Stallman's avatar Richard M. Stallman

(dired-find-buffer-nocreate): Avoid error if dired-directory is nil.

parent 334a2130
......@@ -589,6 +589,7 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
(save-excursion
(set-buffer (cdr (car blist)))
(if (and (eq major-mode mode)
dired-directory ;; nil during find-alternate-file
(equal dirname
(expand-file-name
(if (consp dired-directory)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment