1 new commit in cc-mode:
https://bitbucket.org/xemacs/cc-mode/changeset/0966dd523d17/
changeset: 0966dd523d17
user: acm
date: 2012-02-13 17:58:42
summary: Fix a loop in c-set-fl-decl-start.
cc-engine (c-set-fl-decl-start): Add a check that c-backward-syntactic-ws
actually moves backwards.
affected #: 1 file
diff -r 2e447eef29f0336cc6544f428729a4cdaa33a2b9 -r
0966dd523d17f3f03847def27b95a0b0e5c25281 cc-mode.el
--- a/cc-mode.el
+++ b/cc-mode.el
@@ -1140,7 +1140,7 @@
(goto-char (c-point 'bol new-pos))
(when lit-limits ; Comment or string.
(goto-char (car lit-limits)))
- (setq bod-lim (max (- (point) 500) (point-min)))
+ (setq bod-lim (c-determine-limit 500))
(while
;; Go to a less nested declaration each time round this loop.
@@ -1158,11 +1158,12 @@
;; Try and go out a level to search again.
(progn
(c-backward-syntactic-ws bod-lim)
- (or (memq (char-before) '(?\( ?\[))
- (and (eq (char-before) ?\<)
- (eq (c-get-char-property
- (1- (point)) 'syntax-table)
- c-<-as-paren-syntax))))
+ (and (> (point) bod-lim)
+ (or (memq (char-before) '(?\( ?\[))
+ (and (eq (char-before) ?\<)
+ (eq (c-get-char-property
+ (1- (point)) 'syntax-table)
+ c-<-as-paren-syntax)))))
(not (bobp)))
(backward-char))
new-pos)) ; back over (, [, <.
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.
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches