aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlan Mackenzie2015-04-01 19:12:07 +0000
committerAlan Mackenzie2015-04-01 19:12:07 +0000
commit23bb07e05de2266d02f2f47e2de99e5c96e995f9 (patch)
treed6445ba2735ccca58064b810283c5ccbd69870b8
parentbd55cd4d246c031151dc338813cb9c8ca5ea33dd (diff)
downloademacs-23bb07e05de2266d02f2f47e2de99e5c96e995f9.tar.gz
emacs-23bb07e05de2266d02f2f47e2de99e5c96e995f9.zip
Fix the CC Mode fixes from 2015-03-30. Fixes debbugs#20240.
* progmodes/cc-mode.el (c-extend-after-change-region): Widen before applying text properties. * progmodes/cc-langs.el (c-before-font-lock-functions): Update an entry to a new function name.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/progmodes/cc-langs.el2
-rw-r--r--lisp/progmodes/cc-mode.el10
3 files changed, 16 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 46f519ef306..2092447fbcc 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12015-04-01 Alan Mackenzie <acm@muc.de>
2
3 Fix the CC Mode fixes from 2015-03-30. Fixes debbugs#20240.
4
5 * progmodes/cc-mode.el (c-extend-after-change-region): Widen
6 before applying text properties.
7 * progmodes/cc-langs.el (c-before-font-lock-functions): Update an
8 entry to a new function name.
9
12015-04-01 Paul Eggert <eggert@cs.ucla.edu> 102015-04-01 Paul Eggert <eggert@cs.ucla.edu>
2 11
3 * emacs-lisp/package.el: Spelling fixes and use active voice. 12 * emacs-lisp/package.el: Spelling fixes and use active voice.
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el
index c7b24e185c2..ee5a5a6503f 100644
--- a/lisp/progmodes/cc-langs.el
+++ b/lisp/progmodes/cc-langs.el
@@ -495,7 +495,7 @@ parameters \(point-min) and \(point-max).")
495(c-lang-defconst c-before-font-lock-functions 495(c-lang-defconst c-before-font-lock-functions
496 ;; For documentation see the following c-lang-defvar of the same name. 496 ;; For documentation see the following c-lang-defvar of the same name.
497 ;; The value here may be a list of functions or a single function. 497 ;; The value here may be a list of functions or a single function.
498 t 'c-change-set-fl-decl-start 498 t 'c-change-expand-fl-region
499 (c c++ objc) '(c-neutralize-syntax-in-and-mark-CPP 499 (c c++ objc) '(c-neutralize-syntax-in-and-mark-CPP
500 c-change-expand-fl-region) 500 c-change-expand-fl-region)
501 awk 'c-awk-extend-and-syntax-tablify-region) 501 awk 'c-awk-extend-and-syntax-tablify-region)
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index c95e8a91555..d88fe702c59 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -1330,10 +1330,12 @@ This function is called from `c-common-init', once per mode initialization."
1330 ;; (the languages with #define) and AWK Mode make non-null use of this 1330 ;; (the languages with #define) and AWK Mode make non-null use of this
1331 ;; function. 1331 ;; function.
1332 (when (eq font-lock-support-mode 'jit-lock-mode) 1332 (when (eq font-lock-support-mode 'jit-lock-mode)
1333 (if (< c-new-BEG beg) 1333 (save-restriction
1334 (put-text-property c-new-BEG beg 'fontified nil)) 1334 (widen)
1335 (if (> c-new-END end) 1335 (if (< c-new-BEG beg)
1336 (put-text-property end c-new-END 'fontified nil))) 1336 (put-text-property c-new-BEG beg 'fontified nil))
1337 (if (> c-new-END end)
1338 (put-text-property end c-new-END 'fontified nil))))
1337 (cons c-new-BEG c-new-END)) 1339 (cons c-new-BEG c-new-END))
1338 1340
1339;; Emacs < 22 and XEmacs 1341;; Emacs < 22 and XEmacs