aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman2002-11-21 17:29:22 +0000
committerRichard M. Stallman2002-11-21 17:29:22 +0000
commit304d3e5d3d89fb40ac6c4fb2e5e0f23a97171729 (patch)
tree646f6d65452fe6dbbb095b34aecfe694714401e4 /lisp
parent207c13a78f0791333ca476e7ad1518d65f0d433d (diff)
downloademacs-304d3e5d3d89fb40ac6c4fb2e5e0f23a97171729.tar.gz
emacs-304d3e5d3d89fb40ac6c4fb2e5e0f23a97171729.zip
(find-dired): Set dired-sort-inhibit to t buffer-locally.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/find-dired.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/find-dired.el b/lisp/find-dired.el
index ec098d14ecf..046a2b7dad6 100644
--- a/lisp/find-dired.el
+++ b/lisp/find-dired.el
@@ -72,6 +72,8 @@ On other systems, the closest you can come is to use `-l'."
72;; History of find-args values entered in the minibuffer. 72;; History of find-args values entered in the minibuffer.
73(defvar find-args-history nil) 73(defvar find-args-history nil)
74 74
75(defvar dired-sort-inhibit)
76
75;;;###autoload 77;;;###autoload
76(defun find-dired (dir args) 78(defun find-dired (dir args)
77 "Run `find' and go into Dired mode on a buffer of the output. 79 "Run `find' and go into Dired mode on a buffer of the output.
@@ -121,6 +123,8 @@ as the final argument."
121 (car find-ls-option))) 123 (car find-ls-option)))
122 ;; The next statement will bomb in classic dired (no optional arg allowed) 124 ;; The next statement will bomb in classic dired (no optional arg allowed)
123 (dired-mode dir (cdr find-ls-option)) 125 (dired-mode dir (cdr find-ls-option))
126 (make-local-variable 'dired-sort-inhibit)
127 (setq dired-sort-inhibit t)
124 (set (make-local-variable 'revert-buffer-function) 128 (set (make-local-variable 'revert-buffer-function)
125 `(lambda (ignore-auto noconfirm) 129 `(lambda (ignore-auto noconfirm)
126 (find-dired ,dir ,find-args))) 130 (find-dired ,dir ,find-args)))