GNU bug report logs -
#25111
How modification-hooks let-bind inhibit-modification-hooks?
Previous Next
Full log
Message #34 received at 25111 <at> debbugs.gnu.org (full text, mbox):
> From: phillip.lord <at> russet.org.uk (Phillip Lord)
> Cc: 25111 <at> debbugs.gnu.org
> Date: Sun, 11 Dec 2016 22:11:14 +0000
>
> So, instead of this:
>
> If these functions modify the buffer, they should bind
> ‘inhibit-modification-hooks’ to ‘t’ around doing so, to avoid
> confusing the internal mechanism that calls these hooks.
>
>
> We could have:
>
> These functions should avoid unnecessarily modifying the buffer.
> Emacs binds 'inhibit-modification-hooks' to `t' during their
> evaluation, which means that any modifications will not be signalled
> to other hook functions listening for them.
>
>
> Perhaps a better solution would be:
>
>
> These functions should avoid unnecessarily modifying the buffer; see
> Change Hooks for further details.
>
>
> Then a new paragraph can be added to the Change Hooks section talking
> about the complexity of modifying buffers on these hooks, with
> alternatives.
>
> I am happy to draft something if you wish.
Sure, please do.
Thanks.
This bug report was last modified 6 years and 29 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.