]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-revert): Turn off dired-after-readin-hook around call to dired-readin.
authorRichard M. Stallman <rms@gnu.org>
Mon, 4 Dec 2006 00:32:00 +0000 (00:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 4 Dec 2006 00:32:00 +0000 (00:32 +0000)
lisp/dired.el

index 5359b464579a5e710b29ce6516ceda0bedb784b6..09f4dc8425af5266a0f06c1f4615f3f39f19d69f 100644 (file)
@@ -1045,9 +1045,9 @@ Preserves old cursor, marks/flags, hidden-p."
     ;; 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