Commit ba7fdf30 authored by Alan Mackenzie's avatar Alan Mackenzie
Browse files

cc-mode.el (c-before-change, c-after-change): Move the setting of

c-new-BEG and c-new-END from c-before-change to c-after-change.
parent 917794d5
2010-10-19 Alan Mackenzie <acm@muc.de>
* progmodes/cc-mode.el (c-before-change, c-after-change): Move the
setting of c-new-BEG and c-new-END from c-before-change to
c-after-change.
2010-10-19 Chong Yidong <cyd@stupidchicken.com>
 
* cus-face.el (custom-theme-set-faces): Revert 2010-10-18 change.
......
......@@ -1029,10 +1029,6 @@ Note that the style variables are always made local to the buffer."
(buffer-substring-no-properties type-pos term-pos)
(buffer-substring-no-properties beg end)))))))
;; (c-new-BEG c-new-END) will be the region to fontify. It may become
;; larger than (beg end).
(setq c-new-BEG beg
c-new-END end)
(if c-get-state-before-change-functions
(mapc (lambda (fn)
(funcall fn beg end))
......@@ -1086,6 +1082,10 @@ Note that the style variables are always made local to the buffer."
(when c-recognize-<>-arglists
(c-after-change-check-<>-operators beg end))
;; (c-new-BEG c-new-END) will be the region to fontify. It may become
;; larger than (beg end).
(setq c-new-BEG beg
c-new-END end)
(if c-before-font-lock-function
(save-excursion
(funcall c-before-font-lock-function beg end old-len)))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment