diff options
| author | Kai Großjohann | 2002-09-22 13:01:10 +0000 |
|---|---|---|
| committer | Kai Großjohann | 2002-09-22 13:01:10 +0000 |
| commit | 1fc85daee037058b772d7fa2726bc939fae4720c (patch) | |
| tree | 2b8b61c21545e4624d68e7bc03848d57a977121f | |
| parent | f8aba1ce998c2cb33e1dfa2741aedb4a2ae2f1ca (diff) | |
| download | emacs-1fc85daee037058b772d7fa2726bc939fae4720c.tar.gz emacs-1fc85daee037058b772d7fa2726bc939fae4720c.zip | |
* dired.el (dired-insert-directory): Always add "--dired" to to
SWITCHES for remote files.
* files.el (insert-directory): Comment saying that "--dired"
might be in the SWITCHES.
* net/ange-ftp.el (ange-ftp-ls): Handle "--dired" in LSARGS.
(ange-ftp-insert-directory): Comment explaining "--dired"
handling.
| -rw-r--r-- | lisp/ChangeLog | 10 | ||||
| -rw-r--r-- | lisp/dired.el | 3 | ||||
| -rw-r--r-- | lisp/files.el | 3 | ||||
| -rw-r--r-- | lisp/net/ange-ftp.el | 5 |
4 files changed, 19 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0907bc2bdf0..a020a64bc27 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2002-09-22 Kai Gro,b_(Bjohann <grossjoh@ls6.informatik.uni-dortmund.de> | ||
| 2 | |||
| 3 | * dired.el (dired-insert-directory): Always add "--dired" to to | ||
| 4 | SWITCHES for remote files. | ||
| 5 | * files.el (insert-directory): Comment saying that "--dired" | ||
| 6 | might be in the SWITCHES. | ||
| 7 | * net/ange-ftp.el (ange-ftp-ls): Handle "--dired" in LSARGS. | ||
| 8 | (ange-ftp-insert-directory): Comment explaining "--dired" | ||
| 9 | handling. | ||
| 10 | |||
| 1 | 2002-09-21 Markus Rost <rost@math.ohio-state.edu> | 11 | 2002-09-21 Markus Rost <rost@math.ohio-state.edu> |
| 2 | 12 | ||
| 3 | * mail/mailabbrev.el (mail-abbrev-make-syntax-table): Give %!._- | 13 | * mail/mailabbrev.el (mail-abbrev-make-syntax-table): Give %!._- |
diff --git a/lisp/dired.el b/lisp/dired.el index de414e0fdc5..71e4dd35d19 100644 --- a/lisp/dired.el +++ b/lisp/dired.el | |||
| @@ -677,8 +677,7 @@ 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 (and dired-use-ls-dired | 680 | (if (or dired-use-ls-dired (file-remote-p dir)) |
| 681 | (not (file-remote-p dir))) | ||
| 682 | (setq switches (concat "--dired " switches))) | 681 | (setq switches (concat "--dired " switches))) |
| 683 | ;; We used to specify the C locale here, to force English month names; | 682 | ;; We used to specify the C locale here, to force English month names; |
| 684 | ;; but this should not be necessary any more, | 683 | ;; but this should not be necessary any more, |
diff --git a/lisp/files.el b/lisp/files.el index 020249dbf23..4a495aab30c 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -3969,6 +3969,9 @@ program specified by `directory-free-space-program' if that is non-nil." | |||
| 3969 | ;; dired-insert-headerline | 3969 | ;; dired-insert-headerline |
| 3970 | ;; dired-after-subdir-garbage (defines what a "total" line is) | 3970 | ;; dired-after-subdir-garbage (defines what a "total" line is) |
| 3971 | ;; - variable dired-subdir-regexp | 3971 | ;; - variable dired-subdir-regexp |
| 3972 | ;; - may be passed "--dired" as the first argument in SWITCHES. | ||
| 3973 | ;; Filename handlers might have to remove this switch if their | ||
| 3974 | ;; "ls" command does not support it. | ||
| 3972 | (defun insert-directory (file switches &optional wildcard full-directory-p) | 3975 | (defun insert-directory (file switches &optional wildcard full-directory-p) |
| 3973 | "Insert directory listing for FILE, formatted according to SWITCHES. | 3976 | "Insert directory listing for FILE, formatted according to SWITCHES. |
| 3974 | Leaves point after the inserted text. | 3977 | Leaves point after the inserted text. |
diff --git a/lisp/net/ange-ftp.el b/lisp/net/ange-ftp.el index 54f954dde05..13c23245439 100644 --- a/lisp/net/ange-ftp.el +++ b/lisp/net/ange-ftp.el | |||
| @@ -2527,6 +2527,8 @@ which can parse the output from a DIR listing for a host of type TYPE.") | |||
| 2527 | FILE is the full name of the remote file, LSARGS is any args to pass to the | 2527 | FILE is the full name of the remote file, LSARGS is any args to pass to the |
| 2528 | `ls' command, and PARSE specifies that the output should be parsed and stored | 2528 | `ls' command, and PARSE specifies that the output should be parsed and stored |
| 2529 | away in the internal cache." | 2529 | away in the internal cache." |
| 2530 | (when (string-match "^--dired\\s-+" lsargs) | ||
| 2531 | (setq lsargs (replace-match "" nil t lsargs))) | ||
| 2530 | ;; If parse is t, we assume that file is a directory. i.e. we only parse | 2532 | ;; If parse is t, we assume that file is a directory. i.e. we only parse |
| 2531 | ;; full directory listings. | 2533 | ;; full directory listings. |
| 2532 | (let* ((ange-ftp-this-file (ange-ftp-expand-file-name file)) | 2534 | (let* ((ange-ftp-this-file (ange-ftp-expand-file-name file)) |
| @@ -4417,6 +4419,9 @@ NEWNAME should be the name to give the new compressed or uncompressed file.") | |||
| 4417 | ;; I have preserved (and modernized) those hooks. | 4419 | ;; I have preserved (and modernized) those hooks. |
| 4418 | ;; So the format conversion should be all that is needed. | 4420 | ;; So the format conversion should be all that is needed. |
| 4419 | 4421 | ||
| 4422 | ;; When called from dired, SWITCHES may start with "--dired". | ||
| 4423 | ;; `ange-ftp-ls' handles this. | ||
| 4424 | |||
| 4420 | (defun ange-ftp-insert-directory (file switches &optional wildcard full) | 4425 | (defun ange-ftp-insert-directory (file switches &optional wildcard full) |
| 4421 | (let ((short (ange-ftp-abbreviate-filename file)) | 4426 | (let ((short (ange-ftp-abbreviate-filename file)) |
| 4422 | (parsed (ange-ftp-ftp-name (expand-file-name file))) | 4427 | (parsed (ange-ftp-ftp-name (expand-file-name file))) |