]> git.eshelyaron.com Git - emacs.git/commitdiff
(insert-directory): Handle //SUBDIRED// lines in recursive listings
authorAndré Spiegel <spiegel@gnu.org>
Mon, 14 Oct 2002 15:19:49 +0000 (15:19 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Mon, 14 Oct 2002 15:19:49 +0000 (15:19 +0000)
from ls --dired.

lisp/files.el

index 37118f85d2c21fd7dc9cd76789825801655ced3b..9da9bd87875dd056e3d69376c5c2cfd430b02217 100644 (file)
@@ -4072,6 +4072,9 @@ If WILDCARD, it also runs the shell specified by `shell-file-name'."
 
          (when (string-match "--dired\\>" switches)
            (forward-line -2)
+            (when (looking-at "//SUBDIRED//")
+              (delete-region (point) (progn (forward-line 1) (point)))
+              (forward-line -1))
            (let ((end (line-end-position)))
              (forward-word 1)
              (forward-char 3)