From: André Spiegel Date: Mon, 14 Oct 2002 15:19:49 +0000 (+0000) Subject: (insert-directory): Handle //SUBDIRED// lines in recursive listings X-Git-Tag: ttn-vms-21-2-B4~12831 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9423860f88b54a7720fbecad1e218f4ee6036216;p=emacs.git (insert-directory): Handle //SUBDIRED// lines in recursive listings from ls --dired. --- 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'." (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)