diff options
| -rw-r--r-- | lisp/progmodes/cc-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el index fd7750b0d82..066bec60091 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -770,7 +770,7 @@ compatible with old code; callers should always specify it." | |||
| 770 | (set (make-local-variable 'outline-level) 'c-outline-level) | 770 | (set (make-local-variable 'outline-level) 'c-outline-level) |
| 771 | (set (make-local-variable 'add-log-current-defun-function) | 771 | (set (make-local-variable 'add-log-current-defun-function) |
| 772 | (lambda () | 772 | (lambda () |
| 773 | (or (c-cpp-define-name) (c-defun-name)))) | 773 | (or (c-cpp-define-name) (car (c-defun-name-and-limits nil))))) |
| 774 | (let ((rfn (assq mode c-require-final-newline))) | 774 | (let ((rfn (assq mode c-require-final-newline))) |
| 775 | (when rfn | 775 | (when rfn |
| 776 | (if (boundp 'mode-require-final-newline) | 776 | (if (boundp 'mode-require-final-newline) |