diff options
| author | Richard M. Stallman | 1993-06-13 19:16:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-06-13 19:16:02 +0000 |
| commit | eca5b04cf9929953c4a711795703ff8bd063e5d7 (patch) | |
| tree | 33bb7798aecfb861c7054ab17b15d34d6facf65a | |
| parent | 5293b432788bfc3875d4fec1b776f84a7b692d43 (diff) | |
| download | emacs-eca5b04cf9929953c4a711795703ff8bd063e5d7.tar.gz emacs-eca5b04cf9929953c4a711795703ff8bd063e5d7.zip | |
(c-indent-line): Call c-backward-to-start-of-if
in the case of else following a close brace.
| -rw-r--r-- | lisp/progmodes/c-mode.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index 8c32229a299..198e430f60a 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el | |||
| @@ -544,6 +544,7 @@ Return the amount the indentation changed by." | |||
| 544 | (setq indent (save-excursion | 544 | (setq indent (save-excursion |
| 545 | (forward-char) | 545 | (forward-char) |
| 546 | (backward-sexp) | 546 | (backward-sexp) |
| 547 | (c-backward-to-start-of-if) | ||
| 547 | (current-indentation)))) | 548 | (current-indentation)))) |
| 548 | ((and (looking-at "while\\b") | 549 | ((and (looking-at "while\\b") |
| 549 | (save-excursion | 550 | (save-excursion |