# HG changeset patch # User Karl Heuer # Date 801776784 0 # Node ID d330b9cd352974cf1ff47c5faae62ca68be3f8ed # Parent ea774a7c610c6d8400465bd4dc7d1f074517b71e (find-dired): If dired-simple-subdir-alist is not defined, set dired-subdir-alist a different way. (find-dired-version): Variable deleted. diff -r ea774a7c610c -r d330b9cd3529 lisp/find-dired.el --- a/lisp/find-dired.el Mon May 29 19:42:42 1995 +0000 +++ b/lisp/find-dired.el Mon May 29 19:46:24 1995 +0000 @@ -6,9 +6,6 @@ ;; Sebastian Kremer ;; Keywords: unix -(defconst find-dired-version (substring "$Revision: 1.20 $" 11 -2) - "$Id: find-dired.el,v 1.20 1995/03/16 04:27:11 rms Exp kwzh $") - ;;; This program is free software; you can redistribute it and/or modify ;;; it under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 2, or (at your option) @@ -81,7 +78,14 @@ ;; The next statement will bomb in classic dired (no optional arg allowed) (dired-mode dir (cdr find-ls-option)) ;; Set subdir-alist so that Tree Dired will work: - (dired-simple-subdir-alist) + (if (fboundp 'dired-simple-subdir-alist) + ;; will work even with nested dired format (dired-nstd.el,v 1.15 + ;; and later) + (dired-simple-subdir-alist) + ;; else we have an ancient tree dired (or classic dired, where + ;; this does no harm) + (set (make-local-variable 'dired-subdir-alist) + (list (cons default-directory (point-min-marker))))) (setq buffer-read-only nil) ;; Subdir headlerline must come first because the first marker in ;; subdir-alist points there.