changeset 59239:a88429b12685

(c-common-init): Use mode-require-final-newline.
author Richard M. Stallman <rms@gnu.org>
date Fri, 31 Dec 2004 14:51:05 +0000
parents a7774e900abe
children ea1a26b1456d
files lisp/progmodes/cc-mode.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/progmodes/cc-mode.el	Fri Dec 31 14:50:27 2004 +0000
+++ b/lisp/progmodes/cc-mode.el	Fri Dec 31 14:51:05 2004 +0000
@@ -557,7 +557,8 @@
   (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.