changeset 52706:7ba748e3346e

(dired-mode): Handle dired-directory as a list.
author Richard M. Stallman <rms@gnu.org>
date Tue, 30 Sep 2003 20:46:04 +0000
parents 608e17bad2e2
children e049542c98d1
files lisp/dired.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Tue Sep 30 20:44:24 2003 +0000
+++ b/lisp/dired.el	Tue Sep 30 20:46:04 2003 +0000
@@ -1285,7 +1285,9 @@
        (or dirname default-directory))
   ;; list-buffers uses this to display the dir being edited in this buffer.
   (set (make-local-variable 'list-buffers-directory)
-       (expand-file-name dired-directory))
+       (expand-file-name (if (listp dired-directory)
+			     (car dired-directory)
+			   dired-directory)))
   (set (make-local-variable 'dired-actual-switches)
        (or switches dired-listing-switches))
   (set (make-local-variable 'font-lock-defaults) '(dired-font-lock-keywords t))