[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: address@hidden: modification hooks called only once in c-mode]
From: |
Stefan Monnier |
Subject: |
Re: address@hidden: modification hooks called only once in c-mode] |
Date: |
Sun, 12 Aug 2007 01:50:31 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) |
> The bug arises when you have an after-change hook that does buffer
> changes (in this case, this is c-after-change, which calls
> c-invalidate-sws-region-after). The sequence of events is:
[...]
> One simple fix is to bind inhibit-modification-hooks in
> c-after-change.
Actually, why not bind inhibit-modification-hooks to t while running
after-change-functions (and friends)?
Those very rare hooks where modification hooks should not be inhibited
(don't know of any, but let's assume they may exist), they can rebind
inhibit-modification-hooks to nil.
This is an idea comparable to binding inhibit-quit while running timers,
filters, and sentinels.
Stefan