From 96610f9dd85861bb65a4a867f8428e694462a143 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kai=20Gro=C3=9Fjohann?= Date: Wed, 18 Sep 2002 07:50:37 +0000 Subject: [PATCH] (dired-insert-directory): Never add "--dired" when listing remote directories. --- lisp/ChangeLog | 5 +++++ lisp/dired.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 9009888c364..4e64914f66d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2002-09-18 Kai Gro,A_(Bjohann + + * dired.el (dired-insert-directory): Never add "--dired" when + listing remote directories. + 2002-09-18 Michael Kifer * ediff-hooks.el: Put back the autoloads (for compatibility with XEmacs). diff --git a/lisp/dired.el b/lisp/dired.el index d5bbaaddebc..f8d5fc03883 100644 --- a/lisp/dired.el +++ b/lisp/dired.el @@ -677,7 +677,8 @@ If HDR is non-nil, insert a header line with the directory name." (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, -- 2.11.4.GIT