From: Stefan Monnier <monnier@iro.umontreal.ca>
To: kenneth johansson <ken@kenjo.org>
Cc: emacs-devel@gnu.org
Subject: Re: emacs ltstat,readlink on slow filesyste.
Date: Sat, 14 Feb 2009 16:38:45 -0500 [thread overview]
Message-ID: <jwv63jczom6.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <gn6dt4$f2l$1@ger.gmane.org> (kenneth johansson's message of "Sat, 14 Feb 2009 12:36:52 +0000 (UTC)")
> 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))))
prev parent reply other threads:[~2009-02-14 21:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-14 12:36 emacs ltstat,readlink on slow filesyste kenneth johansson
2009-02-14 21:38 ` Stefan Monnier [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv63jczom6.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=ken@kenjo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.