mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-21 12:27:33 +00:00
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.
This commit is contained in:
parent
917794d547
commit
ba7fdf303b
2 changed files with 10 additions and 4 deletions
|
|
@ -1,3 +1,9 @@
|
|||
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)))))))
|
||||
|
|
|
|||
Loading…
Reference in a new issue