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 d822788bee2..b3b2374805d 100644 --- a/lisp/progmodes/cc-mode.el +++ b/lisp/progmodes/cc-mode.el | |||
| @@ -795,7 +795,7 @@ compatible with old code; callers should always specify it." | |||
| 795 | (set (make-local-variable 'outline-level) 'c-outline-level) | 795 | (set (make-local-variable 'outline-level) 'c-outline-level) |
| 796 | (set (make-local-variable 'add-log-current-defun-function) | 796 | (set (make-local-variable 'add-log-current-defun-function) |
| 797 | (lambda () | 797 | (lambda () |
| 798 | (or (c-cpp-define-name) (c-defun-name)))) | 798 | (or (c-cpp-define-name) (car (c-defun-name-and-limits nil))))) |
| 799 | (let ((rfn (assq mode c-require-final-newline))) | 799 | (let ((rfn (assq mode c-require-final-newline))) |
| 800 | (when rfn | 800 | (when rfn |
| 801 | (if (boundp 'mode-require-final-newline) | 801 | (if (boundp 'mode-require-final-newline) |