]> git.eshelyaron.com Git - emacs.git/commit
Run c-unmark-<>-around-region in after-change-functions always.
authorAlan Mackenzie <acm@muc.de>
Sun, 5 May 2024 11:34:14 +0000 (11:34 +0000)
committerEshel Yaron <me@eshelyaron.com>
Mon, 6 May 2024 16:53:01 +0000 (18:53 +0200)
commit4168bf3015abcde412e629d0a3db6c588ec5940c
tree0c671898dce0f1d9f1f936c22862ccdde380e7cd
parentf52fe349a337ef198abc54acfdbb6f21db91dc4a
Run c-unmark-<>-around-region in after-change-functions always.

This fixes bug#70435.

* lisp/progmodes/cc-engine.el (c-unmark-<>-around-region): Run
its contents in after-change-functions for a deletion, so that
c-new-BEG and c-new-END get set.  Add a new test (> end beg)
in a check for unterminated string handling.

(cherry picked from commit 71491fe6f4a944457cb56f6323983ef431e0c422)
lisp/progmodes/cc-engine.el