From: Markus Rost Date: Mon, 20 May 2002 00:42:27 +0000 (+0000) Subject: (find-dired): Implement revert-buffer-function. X-Git-Tag: ttn-vms-21-2-B4~14987 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2b29f15cc4ff308f7a38c9ba40b8bbd0a0d88817;p=emacs.git (find-dired): Implement revert-buffer-function. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 463c72f3d5f..5d8da33a5bb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2002-05-19 Markus Rost + + * find-dired.el (find-dired): Implement revert-buffer-function. + + * mail/emacsbug.el (report-emacs-bug-hook): Do another + save-excursion. + 2002-05-19 Glenn Morris * progmodes/f90.el (f90-match-end, f90-break-line): Simplify a bit. diff --git a/lisp/find-dired.el b/lisp/find-dired.el index 01d89fd9116..ec098d14ecf 100644 --- a/lisp/find-dired.el +++ b/lisp/find-dired.el @@ -121,10 +121,9 @@ 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)) - ;; This really should rerun the find command, but I don't - ;; have time for that. - (use-local-map (append (make-sparse-keymap) (current-local-map))) - (define-key (current-local-map) "g" 'undefined) + (set (make-local-variable 'revert-buffer-function) + `(lambda (ignore-auto noconfirm) + (find-dired ,dir ,find-args))) ;; Set subdir-alist so that Tree Dired will work: (if (fboundp 'dired-simple-subdir-alist) ;; will work even with nested dired format (dired-nstd.el,v 1.15