changeset 74385:fcc9e01e9e6d

(dired-revert): Turn off dired-after-readin-hook around call to dired-readin.
author Richard M. Stallman <rms@gnu.org>
date Mon, 04 Dec 2006 00:32:00 +0000
parents 4bb58e866a28
children 1c8bca402ae7
files lisp/dired.el
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/dired.el	Mon Dec 04 00:31:04 2006 +0000
+++ b/lisp/dired.el	Mon Dec 04 00:32:00 2006 +0000
@@ -1045,9 +1045,9 @@
     ;; treat top level dir extra (it may contain wildcards)
     (dired-uncache
      (if (consp dired-directory) (car dired-directory) dired-directory))
-    (dired-readin)
+    ;; Run dired-after-readin-hook just once, below.
     (let ((dired-after-readin-hook nil))
-      ;; don't run that hook for each subdir...
+      (dired-readin)
       (dired-insert-old-subdirs old-subdir-alist))
     (dired-mark-remembered mark-alist)	; mark files that were marked
     ;; ... run the hook for the whole buffer, and only after markers