]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-readin): Inhibit modification hooks.
authorRichard M. Stallman <rms@gnu.org>
Mon, 22 Dec 2008 19:28:44 +0000 (19:28 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 22 Dec 2008 19:28:44 +0000 (19:28 +0000)
lisp/ChangeLog
lisp/dired.el

index 3f27f3fcdacc9a1cd2c88d85f7d0351189fdfdf7..15ef4269f5131897e9185661d22249f7e8ae9f5c 100644 (file)
@@ -1,3 +1,7 @@
+2008-12-22  Richard M Stallman  <rms@gnu.org>
+
+       * dired.el (dired-readin): Inhibit modification hooks.
+
 2008-12-22  Ulf Jasper  <ulf.jasper@web.de>
 
        * net/newst-backend.el (newst-backend): Removed wrong duplicate provide statement.
index e0e72a1847ead339942b32aa4b00cf11cb9bf6d1..f23c109af1c0a66536e5c7d591837d834dcacafc 100644 (file)
@@ -858,7 +858,11 @@ wildcards, erases the buffer, and builds the subdir-alist anew
 
   ;; default-directory and dired-actual-switches must be buffer-local
   ;; and initialized by now.
-  (let (dirname)
+  (let (dirname
+       ;; This makes readin much much faster.
+       ;; In particular, it prevents the font lock hook from running
+       ;; until the directory is all read in.
+       (inhibit-modification-hooks t))
     (if (consp dired-directory)
        (setq dirname (car dired-directory))
       (setq dirname dired-directory))