emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs ltstat,readlink on slow filesyste.


From: Stefan Monnier
Subject: Re: emacs ltstat,readlink on slow filesyste.
Date: Sat, 14 Feb 2009 16:38:45 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

> strace -f -etrace=lstat,readlink  emacs -Q test_file.c 

> then just move around in the file and you should see the lstats and
> readlink calls. 

The patch below should fix this problem.  Thanks for reporting it.
Note that using M-x report-emacs-bug would have made it even better,


        Stefan


--- jit-lock.el.~1.66.~ 2009-01-12 15:41:49.000000000 -0500
+++ jit-lock.el 2009-02-14 16:37:04.000000000 -0500
@@ -45,14 +45,16 @@
     "Execute BODY in current buffer, overriding several variables.
 Preserves the `buffer-modified-p' state of the current buffer."
     (declare (debug t))
-    `(with-buffer-unmodified
-      (let ((buffer-undo-list t)
+    `(let ((buffer-undo-list t)
            (inhibit-read-only t)
            (inhibit-point-motion-hooks t)
            (inhibit-modification-hooks t)
            deactivate-mark
            buffer-file-name
            buffer-file-truename)
+       ;; Do reset the modification status from within the let, since
+       ;; otherwise set-buffer-modified-p may try to unlock the file.
+       (with-buffer-unmodified
        ,@body))))
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]