changeset 49583:ffebff40964c

(dired-find-buffer-nocreate): Avoid error if dired-directory is nil.
author Richard M. Stallman <rms@gnu.org>
date Tue, 04 Feb 2003 10:39:35 +0000
parents 6592ceddab7b
children 57fdeb6dcb72
files lisp/dired.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Tue Feb 04 10:38:29 2003 +0000
+++ b/lisp/dired.el	Tue Feb 04 10:39:35 2003 +0000
@@ -589,6 +589,7 @@
 	(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)