From: Richard M. Stallman Date: Thu, 21 Nov 2002 17:29:22 +0000 (+0000) Subject: (find-dired): Set dired-sort-inhibit to t buffer-locally. X-Git-Tag: ttn-vms-21-2-B4~12313 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=304d3e5d3d89fb40ac6c4fb2e5e0f23a97171729;p=emacs.git (find-dired): Set dired-sort-inhibit to t buffer-locally. --- 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)))