1 new commit in cc-mode:
https://bitbucket.org/xemacs/cc-mode/commits/e39b785df77e/
Changeset: e39b785df77e
User: acm
Date: 2017-10-02 14:21:41+00:00
Summary: Fix a CC Mode brace stack cache bug.
* cc-engine.el (c-update-brace-stack): Call c-beginning-of-current-token after
a failing search operation, to ensure we don't cache a point inside a token.
Affected #: 1 file
diff -r 31e4abcac39929366dbd6be1d224351064226973 -r
e39b785df77e0a0f89c55aa73e042cc6cc499028 cc-engine.el
--- a/cc-engine.el
+++ b/cc-engine.el
@@ -5420,8 +5420,7 @@
;; value.
(let (match kwd-sym (prev-match-pos 1)
(s (cdr stack))
- (bound-<> (car stack))
- )
+ (bound-<> (car stack)))
(save-excursion
(cond
((and bound-<> (<= to bound-<>))
@@ -5482,6 +5481,9 @@
(setq s (cdr s))))
((c-keyword-member kwd-sym 'c-flat-decl-block-kwds)
(push 0 s))))
+ ;; The failing `c-syntactic-re-search-forward' may have left us in the
+ ;; middle of a token, which might be a significant token. Fix this!
+ (c-beginning-of-current-token)
(cons (point)
(cons bound-<> s)))))
Repository URL:
https://bitbucket.org/xemacs/cc-mode/
--
This is a commit notification from
bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.