changeset 47521:c361d424aee2

(dired-insert-directory): Never add "--dired" when listing remote directories.
author Kai Großjohann <kgrossjo@eu.uu.net>
date Wed, 18 Sep 2002 07:50:37 +0000
parents a37b476e1aec
children a58704d2ce3f
files lisp/ChangeLog lisp/dired.el
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Wed Sep 18 04:23:27 2002 +0000
+++ b/lisp/ChangeLog	Wed Sep 18 07:50:37 2002 +0000
@@ -1,3 +1,8 @@
+2002-09-18  Kai Gro,A_(Bjohann  <Kai.Grossjohann@CS.Uni-Dortmund.DE>
+
+	* dired.el (dired-insert-directory): Never add "--dired" when
+	listing remote directories.
+
 2002-09-18  Michael Kifer  <kifer@cs.stonybrook.edu>
 	
 	* ediff-hooks.el: Put back the autoloads (for compatibility with XEmacs).
--- a/lisp/dired.el	Wed Sep 18 04:23:27 2002 +0000
+++ b/lisp/dired.el	Wed Sep 18 07:50:37 2002 +0000
@@ -677,7 +677,8 @@
   (let ((opoint (point))
 	(process-environment (copy-sequence process-environment))
 	end)
-    (if dired-use-ls-dired
+    (if (and dired-use-ls-dired
+	     (not (file-remote-p dir)))
 	(setq switches (concat "--dired " switches)))
     ;; We used to specify the C locale here, to force English month names;
     ;; but this should not be necessary any more,