aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/find-dired.el12
1 files changed, 8 insertions, 4 deletions
diff --git a/lisp/find-dired.el b/lisp/find-dired.el
index 1401603607e..3f2648fb76c 100644
--- a/lisp/find-dired.el
+++ b/lisp/find-dired.el
@@ -6,9 +6,6 @@
6;; Sebastian Kremer <sk@thp.uni-koeln.de> 6;; Sebastian Kremer <sk@thp.uni-koeln.de>
7;; Keywords: unix 7;; Keywords: unix
8 8
9(defconst find-dired-version (substring "$Revision: 1.20 $" 11 -2)
10 "$Id: find-dired.el,v 1.20 1995/03/16 04:27:11 rms Exp kwzh $")
11
12;;; This program is free software; you can redistribute it and/or modify 9;;; This program is free software; you can redistribute it and/or modify
13;;; it under the terms of the GNU General Public License as published by 10;;; it under the terms of the GNU General Public License as published by
14;;; the Free Software Foundation; either version 2, or (at your option) 11;;; the Free Software Foundation; either version 2, or (at your option)
@@ -81,7 +78,14 @@ The command run (after changing into DIR) is
81 ;; The next statement will bomb in classic dired (no optional arg allowed) 78 ;; The next statement will bomb in classic dired (no optional arg allowed)
82 (dired-mode dir (cdr find-ls-option)) 79 (dired-mode dir (cdr find-ls-option))
83 ;; Set subdir-alist so that Tree Dired will work: 80 ;; Set subdir-alist so that Tree Dired will work:
84 (dired-simple-subdir-alist) 81 (if (fboundp 'dired-simple-subdir-alist)
82 ;; will work even with nested dired format (dired-nstd.el,v 1.15
83 ;; and later)
84 (dired-simple-subdir-alist)
85 ;; else we have an ancient tree dired (or classic dired, where
86 ;; this does no harm)
87 (set (make-local-variable 'dired-subdir-alist)
88 (list (cons default-directory (point-min-marker)))))
85 (setq buffer-read-only nil) 89 (setq buffer-read-only nil)
86 ;; Subdir headlerline must come first because the first marker in 90 ;; Subdir headlerline must come first because the first marker in
87 ;; subdir-alist points there. 91 ;; subdir-alist points there.