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." ...@@ -589,6 +589,7 @@ If DIRNAME is already in a dired buffer, that buffer is used without refresh."
(save-excursion (save-excursion
(set-buffer (cdr (car blist))) (set-buffer (cdr (car blist)))
(if (and (eq major-mode mode) (if (and (eq major-mode mode)
dired-directory ;; nil during find-alternate-file
(equal dirname (equal dirname
(expand-file-name (expand-file-name
(if (consp dired-directory) (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