summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Rost <rost@math.uni-bielefeld.de>2002-05-20 00:42:27 +0000
committerMarkus Rost <rost@math.uni-bielefeld.de>2002-05-20 00:42:27 +0000
commit2b29f15cc4ff308f7a38c9ba40b8bbd0a0d88817 (patch)
treecb28ab69286a964bfa33a3641df0e65bc8e44192
parentc71276553df19da29003991e05d2fec083de57a2 (diff)
(find-dired): Implement revert-buffer-function.
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/find-dired.el7
2 files changed, 10 insertions, 4 deletions
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 <rost@math.ohio-state.edu>
+
+ * 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 <gmorris@ast.cam.ac.uk>
* 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