From: Stefan Monnier <monnier@iro.umontreal.ca>
To: martin rudalics <rudalics@gmx.at>
Cc: cyd@stupidchicken.com, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: [n_schumacher@web.de: modification hooks called only once in c-mode]
Date: Mon, 13 Aug 2007 10:01:58 -0400 [thread overview]
Message-ID: <jwvwsvz4jzu.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <46C0270A.7040709@gmx.at> (martin rudalics's message of "Mon\, 13 Aug 2007 11\:40\:26 +0200")
>> A side benefit of the change is that now (after|before)-change-function keep
>> their values while they run, so we can change (after|before)-change-functions
>> from an (after|before)-change-function (syntax.el enjoys doing that).
>>
>> A side benefit of the change is that now (after|before)-change-function keep
>> their values while they run, so we can change (after|before)-change-functions
>>> from an (after|before)-change-function (syntax.el enjoys doing that).
> In the particular case `c-after-change' uses `c-save-buffer-state' which
> binds (after|before)-change-functions to nil (probably for XEmacs
> compatibility). Wouldn't syntax.el be affected by that?
syntax.el sometimes does an add-hook/remove-hook on before-change-functions
from code which may be run from modification hooks. The remove-hook is only
an optimization so if it's ignored/thrown out it doesn't impact correctness.
If the add-hook is ignored (it's run from syntax-ppss), it may OTOH impact
correctness, in which case the code that calls syntax-ppss under these
conditions may have to do the add-hook manually or somehow call
syntax-ppss-flush-cache manually when needed.
Stefan
next prev parent reply other threads:[~2007-08-13 14:01 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-08 4:55 [n_schumacher@web.de: modification hooks called only once in c-mode] Richard Stallman
2007-08-11 0:46 ` Chong Yidong
2007-08-12 4:14 ` Richard Stallman
2007-08-12 5:50 ` Stefan Monnier
2007-08-13 0:52 ` Richard Stallman
2007-08-13 4:10 ` Stefan Monnier
2007-08-13 5:59 ` David Kastrup
2007-08-16 20:46 ` Stefan Monnier
2007-08-13 9:40 ` martin rudalics
2007-08-13 14:01 ` Stefan Monnier [this message]
-- strict thread matches above, loose matches on Subject: below --
2007-07-31 20:22 Richard Stallman
2007-07-24 22:17 Richard Stallman
2007-08-01 9:16 ` Johan Bockgård
2007-08-02 15:45 ` Richard Stallman
2007-07-17 15:06 Richard Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvwsvz4jzu.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=rms@gnu.org \
--cc=rudalics@gmx.at \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).