diff options
| author | Chong Yidong | 2010-02-06 08:01:43 -0500 |
|---|---|---|
| committer | Chong Yidong | 2010-02-06 08:01:43 -0500 |
| commit | ffe87109ce3fb6f9d31e2e88e2e22f4737b16540 (patch) | |
| tree | d20572a89cfdd2c8f0a1793c2e79311836048a88 | |
| parent | 4775ecad67ce740d6e258ac488a025d488295d33 (diff) | |
| download | emacs-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/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 8 |
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 @@ | |||
| 1 | 2010-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 | |||
| 1 | 2010-02-06 Dan Nicolaescu <dann@ics.uci.edu> | 6 | 2010-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)))))) |