diff options
author | Richard M. Stallman <rms@gnu.org> | 2002-11-21 17:29:22 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2002-11-21 17:29:22 +0000 |
commit | 304d3e5d3d89fb40ac6c4fb2e5e0f23a97171729 (patch) | |
tree | 646f6d65452fe6dbbb095b34aecfe694714401e4 /lisp/find-dired.el | |
parent | 207c13a78f0791333ca476e7ad1518d65f0d433d (diff) | |
download | emacs-304d3e5d3d89fb40ac6c4fb2e5e0f23a97171729.tar.gz |
(find-dired): Set dired-sort-inhibit to t buffer-locally.
Diffstat (limited to 'lisp/find-dired.el')
-rw-r--r-- | lisp/find-dired.el | 4 |
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'." ;; History of find-args values entered in the minibuffer. (defvar find-args-history nil) +(defvar dired-sort-inhibit) + ;;;###autoload (defun find-dired (dir args) "Run `find' and go into Dired mode on a buffer of the output. @@ -121,6 +123,8 @@ as the final argument." (car find-ls-option))) ;; The next statement will bomb in classic dired (no optional arg allowed) (dired-mode dir (cdr find-ls-option)) + (make-local-variable 'dired-sort-inhibit) + (setq dired-sort-inhibit t) (set (make-local-variable 'revert-buffer-function) `(lambda (ignore-auto noconfirm) (find-dired ,dir ,find-args))) |