]> git.eshelyaron.com Git - emacs.git/commitdiff
(find-alternate-file): Check whether `dired-directory' is bound.
authorJuanma Barranquero <lekktu@gmail.com>
Wed, 12 Feb 2003 09:26:17 +0000 (09:26 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Wed, 12 Feb 2003 09:26:17 +0000 (09:26 +0000)
lisp/ChangeLog
lisp/files.el

index 9be8850740b22554eed9e7bf696cd60f64c89b62..b21f2e6c1030b9f45571bf58f4d4f1c23b26626f 100644 (file)
@@ -1,3 +1,8 @@
+2003-02-12  Karl Chen  <quarl@hkn.eecs.berkeley.edu>  (tiny change)
+
+       * files.el (find-alternate-file): Check whether `dired-directory'
+       is bound.
+
 2003-02-12  Simon Marshall  <simon@gnu.org>
 
        * progmodes/make-mode.el (makefile-font-lock-keywords): Fontify
index 070db9f3be440d95da9411b49c301f8b26b3af2b..5ba163fc67150b40f8659e1afd04eeb7c865ba64 100644 (file)
@@ -940,7 +940,7 @@ If the current buffer now contains an empty file that you just visited
   (let ((obuf (current-buffer))
        (ofile buffer-file-name)
        (onum buffer-file-number)
-       (odir dired-directory)
+       (odir (bound-and-true-p dired-directory))
        (otrue buffer-file-truename)
        (oname (buffer-name)))
     (if (get-buffer " **lose**")