aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2010-02-06 08:01:43 -0500
committerChong Yidong2010-02-06 08:01:43 -0500
commitffe87109ce3fb6f9d31e2e88e2e22f4737b16540 (patch)
treed20572a89cfdd2c8f0a1793c2e79311836048a88
parent4775ecad67ce740d6e258ac488a025d488295d33 (diff)
downloademacs-ffe87109ce3fb6f9d31e2e88e2e22f4737b16540.tar.gz
emacs-ffe87109ce3fb6f9d31e2e88e2e22f4737b16540.zip
* progmodes/cc-mode.el (c-common-init): Bind temporary variables
beg and end before calling c-get-state-before-change-functions.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/progmodes/cc-mode.el8
2 files changed, 10 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index a3808b5a2ff..cbada0d62c6 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12010-02-06 Chong Yidong <cyd@stupidchicken.com>
2
3 * progmodes/cc-mode.el (c-common-init): Bind temporary variables
4 beg and end before calling c-get-state-before-change-functions.
5
12010-02-06 Dan Nicolaescu <dann@ics.uci.edu> 62010-02-06 Dan Nicolaescu <dann@ics.uci.edu>
2 7
3 * vc-bzr.el (vc-bzr-dir-extra-headers): Disable the pending merges header. 8 * vc-bzr.el (vc-bzr-dir-extra-headers): Disable the pending merges header.
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 9cdc0f97b50..57f87c04b88 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -642,9 +642,11 @@ compatible with old code; callers should always specify it."
642 (widen) 642 (widen)
643 (save-excursion 643 (save-excursion
644 (if c-get-state-before-change-functions 644 (if c-get-state-before-change-functions
645 (mapc (lambda (fn) 645 (let ((beg (point-min))
646 (funcall fn beg end)) 646 (end (point-max)))
647 c-get-state-before-change-functions)) 647 (mapc (lambda (fn)
648 (funcall fn beg end))
649 c-get-state-before-change-functions)))
648 (if c-before-font-lock-function 650 (if c-before-font-lock-function
649 (funcall c-before-font-lock-function (point-min) (point-max) 651 (funcall c-before-font-lock-function (point-min) (point-max)
650 (- (point-max) (point-min)))))) 652 (- (point-max) (point-min))))))