From: Stefan Monnier <monnier@iro.umontreal.ca>
To: help-gnu-emacs@gnu.org
Subject: Re: inhibit-modification-hooks set to t globally
Date: Thu, 25 Sep 2014 17:06:53 -0400 [thread overview]
Message-ID: <jwvwq8rza8v.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.9594.1411651250.1147.help-gnu-emacs@gnu.org
> Hopefully, not many Lisp packages/functions let-bind this variable, so
> you won't need to wade through too many false positives.
Inhibit-modification-hooks gets let-bound *all the time* by things like
font-lock, after-change-functions, etc...
I see two ways for that variable to become globally non-nil:
- a braindead package uses `setq' on that variable.
- you bang on C-g enough that you end up hitting the infamous
race-condition on unwind-protect (and let unbinding): unwind-protect
forms get run when exiting because of C-g, but if you hit C-g while
running those unwind forms, they may not run to completion, so you can
end up with some of those unwind forms being "not run" (or only partly
run). I guess we could try to inhibit-quit while running the unwind
forms to try and circumvent this problem, but such a change could
introduce new bugs (if an unwind-form takes a long time to run,
i.e. expect to be run without inhibit-quit).
Of course, there could also be a third way, but I can't imagine what
that would look like.
-- Stefan
next prev parent reply other threads:[~2014-09-25 21:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-24 15:42 inhibit-modification-hooks set to t globally Nicolas Richard
2014-09-24 19:35 ` Eli Zaretskii
2014-09-25 11:14 ` Nicolas Richard
2014-09-25 13:20 ` Eli Zaretskii
2014-09-25 15:16 ` Nicolas Richard
2014-09-25 15:27 ` Eli Zaretskii
2014-09-25 15:32 ` Nicolas Richard
2014-09-25 15:44 ` Eli Zaretskii
2014-09-25 15:57 ` Eli Zaretskii
[not found] ` <mailman.9594.1411651250.1147.help-gnu-emacs@gnu.org>
2014-09-25 21:06 ` Stefan Monnier [this message]
2014-09-26 6:50 ` Eli Zaretskii
[not found] <mailman.9489.1411573361.1147.help-gnu-emacs@gnu.org>
2014-09-24 17:14 ` Stefan Monnier
2014-09-25 10:55 ` Nicolas Richard
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=jwvwq8rza8v.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=help-gnu-emacs@gnu.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.