[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Emacs-diffs] master 4d74873 2/2: Fix miscellaneous glitches in cc-m
From: |
Stefan Monnier |
Subject: |
Re: [Emacs-diffs] master 4d74873 2/2: Fix miscellaneous glitches in cc-mode.el. Fixes debbugs#20245. |
Date: |
Sat, 12 Sep 2015 00:01:10 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
> + (let (before-change-functions after-change-functions)
Let-binding these vars can have some annoying side effects.
So instead you should use
(let ((inhibit-modification-hooks t)) ...)
This variable exists in Emacs since Emacs-21. AFAICT it does not exist
in XEmacs, but that shouldn't matter since XEmacs doesn't run
before/after-change-functions upon text-property changes, IIUC.
Stefan
PS: Even better would be to use `with-silent-modifications', but that's
a fairly recent addition.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Emacs-diffs] master 4d74873 2/2: Fix miscellaneous glitches in cc-mode.el. Fixes debbugs#20245.,
Stefan Monnier <=