1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-01 08:17:38 +00:00

* progmodes/cc-mode.el (c-common-init): Bind temporary variables

beg and end before calling c-get-state-before-change-functions.
This commit is contained in:
Chong Yidong 2010-02-06 08:01:43 -05:00
parent 4775ecad67
commit ffe87109ce
2 changed files with 10 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-02-06 Chong Yidong <cyd@stupidchicken.com>
* progmodes/cc-mode.el (c-common-init): Bind temporary variables
beg and end before calling c-get-state-before-change-functions.
2010-02-06 Dan Nicolaescu <dann@ics.uci.edu>
* vc-bzr.el (vc-bzr-dir-extra-headers): Disable the pending merges header.

View File

@ -642,9 +642,11 @@ compatible with old code; callers should always specify it."
(widen)
(save-excursion
(if c-get-state-before-change-functions
(mapc (lambda (fn)
(funcall fn beg end))
c-get-state-before-change-functions))
(let ((beg (point-min))
(end (point-max)))
(mapc (lambda (fn)
(funcall fn beg end))
c-get-state-before-change-functions)))
(if c-before-font-lock-function
(funcall c-before-font-lock-function (point-min) (point-max)
(- (point-max) (point-min))))))