]> code.delx.au - gnu-emacs/blobdiff - lisp/find-dired.el
(sh-mark-init): Don't set `occur-buffer'.
[gnu-emacs] / lisp / find-dired.el
index 01d89fd91165c1398219f57999a3932f7ba4b85a..ec098d14ecfdaefb2bba6a6fa80216b19aee7331 100644 (file)
@@ -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