summaryrefslogtreecommitdiff
path: root/lisp/dired.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2003-02-04 10:39:35 +0000
committerRichard M. Stallman <rms@gnu.org>2003-02-04 10:39:35 +0000
commit59759f1f8565143160f7c59c9236ef4f2ddc6ae5 (patch)
treeefc9df55799a19cf7386c883062d88520504077e /lisp/dired.el
parent334a2130ed10e93c523ebf23dc1140fdbfb77d15 (diff)
downloademacs-59759f1f8565143160f7c59c9236ef4f2ddc6ae5.tar.gz
(dired-find-buffer-nocreate): Avoid error if dired-directory is nil.
Diffstat (limited to 'lisp/dired.el')
-rw-r--r--lisp/dired.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/dired.el b/lisp/dired.el
index d658960a35e..d15d80411f1 100644
--- a/lisp/dired.el
+++ b/lisp/dired.el
@@ -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)