require-final-newline' more configurable.
+2003-01-26 Martin Stjernholm <bug-cc-mode@gnu.org>
+
+ * progmodes/cc-vars.el, progmodes/cc-mode.el
+ (c-require-final-newline): Added a variable to make the
+ initialization of `require-final-newline' more configurable.
+
2003-01-26 Jan D. <jan.h.d@swipnet.se>
* emacs-lisp/authors.el (authors-aliases): Add Jan D.
'c-indent-new-comment-line)))
;; now set their values
- (setq require-final-newline t
+ (setq require-final-newline c-require-final-newline
parse-sexp-ignore-comments t
indent-line-function 'c-indent-line
indent-region-function 'c-indent-region
:type 'function
:group 'c)
+(defcustom c-require-final-newline t
+ "*Controls whether a final newline is added to the file when saved.
+This value is given to `require-final-newline' at mode initialization;
+see that variable for details."
+ :type 'symbol
+ :group 'c)
+
(defcustom c-electric-pound-behavior nil
"*List of behaviors for electric pound insertion.
Only currently supported behavior is `alignleft'."