Commit 1750e02f authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(c-common-init): Use mode-require-final-newline.

parent c1741bb3
......@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment