diff options
| author | André Spiegel | 2002-10-14 15:19:49 +0000 |
|---|---|---|
| committer | André Spiegel | 2002-10-14 15:19:49 +0000 |
| commit | 9423860f88b54a7720fbecad1e218f4ee6036216 (patch) | |
| tree | 029d0f9190ac2902120cac846b7b2c78e84a2852 | |
| parent | 685e7bcac04706f9199a9861685685034fdfebb2 (diff) | |
| download | emacs-9423860f88b54a7720fbecad1e218f4ee6036216.tar.gz emacs-9423860f88b54a7720fbecad1e218f4ee6036216.zip | |
(insert-directory): Handle //SUBDIRED// lines in recursive listings
from ls --dired.
| -rw-r--r-- | lisp/files.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/files.el b/lisp/files.el index 37118f85d2c..9da9bd87875 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -4072,6 +4072,9 @@ If WILDCARD, it also runs the shell specified by `shell-file-name'." | |||
| 4072 | 4072 | ||
| 4073 | (when (string-match "--dired\\>" switches) | 4073 | (when (string-match "--dired\\>" switches) |
| 4074 | (forward-line -2) | 4074 | (forward-line -2) |
| 4075 | (when (looking-at "//SUBDIRED//") | ||
| 4076 | (delete-region (point) (progn (forward-line 1) (point))) | ||
| 4077 | (forward-line -1)) | ||
| 4075 | (let ((end (line-end-position))) | 4078 | (let ((end (line-end-position))) |
| 4076 | (forward-word 1) | 4079 | (forward-word 1) |
| 4077 | (forward-char 3) | 4080 | (forward-char 3) |