]> git.eshelyaron.com Git - emacs.git/commit
CC Mode: Protect against consecutive calls to before-change-functions ...
authorAlan Mackenzie <acm@muc.de>
Sun, 23 Feb 2020 19:43:56 +0000 (19:43 +0000)
committerAlan Mackenzie <acm@muc.de>
Sun, 23 Feb 2020 19:43:56 +0000 (19:43 +0000)
commit3bce7ec3826003fda1971224a20d7fe2cba8bf65
tree21660c0f1d3db4f98ec9208bff691a09429f87a8
parentba7004b2a74c69450114c12ef4521768fc165e8e
CC Mode: Protect against consecutive calls to before-change-functions ...

without an intervening call to after-change-functions.  This would have been a
workaround to bug #38691 had the causes of that bug not been removed.

* lisp/progmodes/cc-mode.el (c-just-done-before-change): Add an extra value to
this variable, 'whole-buffer, this being set by c-before-change as a signal to
c-after-change that although c-before-change has run, it has assumed the
entire buffer as the change region.
(c-before-change, c-after-change): Adapt to the new meaning of the above.
lisp/progmodes/cc-mode.el