diff options
| -rw-r--r-- | lisp/progmodes/c-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/progmodes/c-mode.el b/lisp/progmodes/c-mode.el index d91e5586ba9..0e753bbece0 100644 --- a/lisp/progmodes/c-mode.el +++ b/lisp/progmodes/c-mode.el | |||
| @@ -122,7 +122,7 @@ This is in addition to c-continued-statement-offset.") | |||
| 122 | "*Non-nil means automatically newline before and after braces, | 122 | "*Non-nil means automatically newline before and after braces, |
| 123 | and after colons and semicolons, inserted in C code. | 123 | and after colons and semicolons, inserted in C code. |
| 124 | If you do not want a leading newline before braces then use: | 124 | If you do not want a leading newline before braces then use: |
| 125 | (define-key c-mode-map "{" 'electric-c-semi)") | 125 | (define-key c-mode-map \"{\" 'electric-c-semi)") |
| 126 | 126 | ||
| 127 | (defconst c-tab-always-indent t | 127 | (defconst c-tab-always-indent t |
| 128 | "*Non-nil means TAB in C mode should always reindent the current line, | 128 | "*Non-nil means TAB in C mode should always reindent the current line, |
| @@ -544,7 +544,7 @@ Returns nil if line starts inside a string, t if in a comment." | |||
| 544 | ;; Recognize the DEFUN macro in Emacs. | 544 | ;; Recognize the DEFUN macro in Emacs. |
| 545 | (if (save-excursion | 545 | (if (save-excursion |
| 546 | ;; Move down to the (putative) argnames line. | 546 | ;; Move down to the (putative) argnames line. |
| 547 | (while (not (looking-at " *(")) | 547 | (while (not (looking-at " *[({}]")) |
| 548 | (forward-line 1)) | 548 | (forward-line 1)) |
| 549 | ;; Go back to the DEFUN, if it is one. | 549 | ;; Go back to the DEFUN, if it is one. |
| 550 | (condition-case nil | 550 | (condition-case nil |