Mercurial > emacs
comparison lisp/dired.el @ 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 | d03e0c2bb52c |
children | 55087a54b990 |
comparison
equal
deleted
inserted
replaced
47520:a37b476e1aec | 47521:c361d424aee2 |
---|---|
675 In other cases, DIR should be a directory name or a directory filename. | 675 In other cases, DIR should be a directory name or a directory filename. |
676 If HDR is non-nil, insert a header line with the directory name." | 676 If HDR is non-nil, insert a header line with the directory name." |
677 (let ((opoint (point)) | 677 (let ((opoint (point)) |
678 (process-environment (copy-sequence process-environment)) | 678 (process-environment (copy-sequence process-environment)) |
679 end) | 679 end) |
680 (if dired-use-ls-dired | 680 (if (and dired-use-ls-dired |
681 (not (file-remote-p dir))) | |
681 (setq switches (concat "--dired " switches))) | 682 (setq switches (concat "--dired " switches))) |
682 ;; We used to specify the C locale here, to force English month names; | 683 ;; We used to specify the C locale here, to force English month names; |
683 ;; but this should not be necessary any more, | 684 ;; but this should not be necessary any more, |
684 ;; with the new value of dired-move-to-filename-regexp. | 685 ;; with the new value of dired-move-to-filename-regexp. |
685 (if file-list | 686 (if file-list |