Fix c-invalidate-state-cache on narrowed buffers.
progmodes/cc-defs.el (c-with-all-but-one-cpps-commented-out): Widen when setting and clearing the CPP delimiter properties.
This commit is contained in:
parent
44e23a70ad
commit
411141fb8e
2 changed files with 12 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2014-02-09 Alan Mackenzie <acm@muc.de>
|
||||
|
||||
Fix c-invalidate-state-cache on narrowed buffers.
|
||||
* progmodes/cc-defs.el (c-with-all-but-one-cpps-commented-out):
|
||||
Widen when setting and clearing the CPP delimiter properties.
|
||||
|
||||
2014-02-09 Lars Ingebrigtsen <larsi@gnus.org>
|
||||
|
||||
* help.el (describe-bindings): Doc fix (bug#9888).
|
||||
|
|
|
@ -1293,10 +1293,14 @@ been put there by c-put-char-property. POINT remains unchanged."
|
|||
;; suppressed.
|
||||
`(unwind-protect
|
||||
(c-save-buffer-state ()
|
||||
(c-clear-cpp-delimiters ,beg ,end)
|
||||
(save-restriction
|
||||
(widen)
|
||||
(c-clear-cpp-delimiters ,beg ,end))
|
||||
,`(c-with-cpps-commented-out ,@forms))
|
||||
(c-save-buffer-state ()
|
||||
(c-set-cpp-delimiters ,beg ,end))))
|
||||
(save-restriction
|
||||
(widen)
|
||||
(c-set-cpp-delimiters ,beg ,end)))))
|
||||
|
||||
(defsubst c-intersect-lists (list alist)
|
||||
;; return the element of ALIST that matches the first element found
|
||||
|
|
Loading…
Add table
Reference in a new issue