diff options
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index 2aa6b90dea3..34ba97bb87f 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -2390,6 +2390,8 @@ with // and /*, not more generic line and block comments." | |||
| 2390 | ;; Go to a less nested declaration each time round this loop. | 2390 | ;; Go to a less nested declaration each time round this loop. |
| 2391 | (and | 2391 | (and |
| 2392 | (setq old-pos (point)) | 2392 | (setq old-pos (point)) |
| 2393 | ;; The following form tries to move to the end of the previous | ||
| 2394 | ;; declaration without moving outside of an enclosing {. | ||
| 2393 | (let (pseudo) | 2395 | (let (pseudo) |
| 2394 | (while | 2396 | (while |
| 2395 | (and | 2397 | (and |
| @@ -2404,7 +2406,9 @@ with // and /*, not more generic line and block comments." | |||
| 2404 | (setq pseudo (c-cheap-inside-bracelist-p (c-parse-state))))))) | 2406 | (setq pseudo (c-cheap-inside-bracelist-p (c-parse-state))))))) |
| 2405 | (goto-char pseudo)) | 2407 | (goto-char pseudo)) |
| 2406 | t) | 2408 | t) |
| 2407 | (>= (point) bod-lim) | 2409 | (or (> (point) bod-lim) |
| 2410 | (eq bod-lim (point-min))) | ||
| 2411 | ;; Move forward to the start of the next declaration. | ||
| 2408 | (progn (c-forward-syntactic-ws) | 2412 | (progn (c-forward-syntactic-ws) |
| 2409 | ;; Have we got stuck in a comment at EOB? | 2413 | ;; Have we got stuck in a comment at EOB? |
| 2410 | (not (and (eobp) | 2414 | (not (and (eobp) |