summaryrefslogtreecommitdiff
path: root/lisp/progmodes/cc-mode.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2004-12-31 14:51:05 +0000
committerRichard M. Stallman <rms@gnu.org>2004-12-31 14:51:05 +0000
commit1750e02f518a49cb140e018c462db80b9f145904 (patch)
tree54a712b4e5a3550d1b8a4dcbf1b65d5297be4112 /lisp/progmodes/cc-mode.el
parentc1741bb3a10401c083afaad1a4cf1d8cb879f74e (diff)
downloademacs-1750e02f518a49cb140e018c462db80b9f145904.tar.gz
(c-common-init): Use mode-require-final-newline.
Diffstat (limited to 'lisp/progmodes/cc-mode.el')
-rw-r--r--lisp/progmodes/cc-mode.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index b8264157b48..eaa798217cf 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -557,7 +557,8 @@ This function does not do any hidden buffer changes."
(let ((rfn (assq mode c-require-final-newline)))
(when rfn
(make-local-variable 'require-final-newline)
- (setq require-final-newline (cdr rfn)))))
+ (and (cdr rfn)
+ (setq require-final-newline mode-require-final-newline)))))
(defun c-postprocess-file-styles ()
"Function that post processes relevant file local variables in CC Mode.