+2012-02-13 Alan Mackenzie <acm@muc.de>
+
+ Fix a loop in c-set-fl-decl-start.
+
+ * progmodes/cc-engine (c-set-fl-decl-start): Add a check that
+ c-backward-syntactic-ws actually moves backwards.
+
2012-02-13 Leo Liu <sdl.web@gmail.com>
* net/rcirc.el (rcirc-markup-attributes): Move point to the
(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.
;; 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 (, [, <.