diff options
| author | Alan Mackenzie | 2012-02-07 12:01:42 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2012-02-07 12:01:42 +0000 |
| commit | 667ced3a2d224b0f2ab3f2da26468791252c234a (patch) | |
| tree | 8e79cbc27eae4e4a15d3e7aabc609ebab4b33562 | |
| parent | 5b77774d024ce0c13b1b071b447a344fe5c70bd7 (diff) | |
| download | emacs-667ced3a2d224b0f2ab3f2da26468791252c234a.tar.gz emacs-667ced3a2d224b0f2ab3f2da26468791252c234a.zip | |
cc-engine.el (c-forward-objc-directive): Prevent looping in "#pragma mark
@implementation".
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/cc-engine.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e04126bf4ee..0a65a759b7f 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-02-07 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * progmodes/cc-engine.el (c-forward-objc-directive): Prevent | ||
| 4 | looping in "#pragma mark @implementation". | ||
| 5 | |||
| 1 | 2012-02-07 Michael Albinus <michael.albinus@gmx.de> | 6 | 2012-02-07 Michael Albinus <michael.albinus@gmx.de> |
| 2 | 7 | ||
| 3 | * notifications.el (notifications-on-closed-signal): Make `reason' | 8 | * notifications.el (notifications-on-closed-signal): Make `reason' |
diff --git a/lisp/progmodes/cc-engine.el b/lisp/progmodes/cc-engine.el index 52f18a89849..47ceec309f4 100644 --- a/lisp/progmodes/cc-engine.el +++ b/lisp/progmodes/cc-engine.el | |||
| @@ -7396,6 +7396,7 @@ comment at the start of cc-engine.el for more info." | |||
| 7396 | (let ((start (point)) | 7396 | (let ((start (point)) |
| 7397 | start-char | 7397 | start-char |
| 7398 | (c-promote-possible-types t) | 7398 | (c-promote-possible-types t) |
| 7399 | lim | ||
| 7399 | ;; Turn off recognition of angle bracket arglists while parsing | 7400 | ;; Turn off recognition of angle bracket arglists while parsing |
| 7400 | ;; types here since the protocol reference list might then be | 7401 | ;; types here since the protocol reference list might then be |
| 7401 | ;; considered part of the preceding name or superclass-name. | 7402 | ;; considered part of the preceding name or superclass-name. |
| @@ -7423,6 +7424,7 @@ comment at the start of cc-engine.el for more info." | |||
| 7423 | ; (c-forward-token-2) ; 2006/1/13 This doesn't move if the token's | 7424 | ; (c-forward-token-2) ; 2006/1/13 This doesn't move if the token's |
| 7424 | ; at EOB. | 7425 | ; at EOB. |
| 7425 | (goto-char (match-end 0)) | 7426 | (goto-char (match-end 0)) |
| 7427 | (setq lim (point)) | ||
| 7426 | (c-skip-ws-forward) | 7428 | (c-skip-ws-forward) |
| 7427 | (c-forward-type)) | 7429 | (c-forward-type)) |
| 7428 | 7430 | ||
| @@ -7447,7 +7449,7 @@ comment at the start of cc-engine.el for more info." | |||
| 7447 | t)))) | 7449 | t)))) |
| 7448 | 7450 | ||
| 7449 | (progn | 7451 | (progn |
| 7450 | (c-backward-syntactic-ws) | 7452 | (c-backward-syntactic-ws lim) |
| 7451 | (c-clear-c-type-property start (1- (point)) 'c-decl-end) | 7453 | (c-clear-c-type-property start (1- (point)) 'c-decl-end) |
| 7452 | (c-put-c-type-property (1- (point)) 'c-decl-end) | 7454 | (c-put-c-type-property (1- (point)) 'c-decl-end) |
| 7453 | t) | 7455 | t) |