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 /lisp/net | |
| 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.
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/ange-ftp.el | 5 |
1 files changed, 5 insertions, 0 deletions
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))) |