From: Kai Großjohann Date: Wed, 18 Sep 2002 07:50:37 +0000 (+0000) Subject: (dired-insert-directory): Never add "--dired" when X-Git-Tag: ttn-vms-21-2-B4~13137 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=96610f9dd85861bb65a4a867f8428e694462a143;p=emacs.git (dired-insert-directory): Never add "--dired" when listing remote directories. --- 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,