diff options
| author | Eli Zaretskii | 2022-11-10 12:09:39 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2022-11-10 12:09:39 +0200 |
| commit | 98c273ce1c23ce5ba3fb201daef13ec0da3e5185 (patch) | |
| tree | 34c29299dfb72d9b510dad590409ba2fe892a9ee | |
| parent | 7e9afea7756cc66732fc9599c2637fe303797d89 (diff) | |
| parent | af6a93b2b85839f9f5775f6350ddd3036be177f4 (diff) | |
| download | emacs-98c273ce1c23ce5ba3fb201daef13ec0da3e5185.tar.gz emacs-98c273ce1c23ce5ba3fb201daef13ec0da3e5185.zip | |
Merge branch 'master' of git.savannah.gnu.org:/srv/git/emacs
| -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) |