(c-require-final-newline): Added a variable to make the initialization of

require-final-newline' more configurable.
This commit is contained in:
Martin Stjernholm 2003-01-26 21:36:39 +00:00
parent 66fd374bab
commit 980a8a00df
3 changed files with 14 additions and 1 deletions

View file

@ -1,3 +1,9 @@
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.

View file

@ -326,7 +326,7 @@
'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

View file

@ -704,6 +704,13 @@ space."
: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'."