From 304d3e5d3d89fb40ac6c4fb2e5e0f23a97171729 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 21 Nov 2002 17:29:22 +0000 Subject: [PATCH] (find-dired): Set dired-sort-inhibit to t buffer-locally. --- lisp/find-dired.el | 4 ++++ 1 file changed, 4 insertions(+) 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))) -- 2.39.2