]> git.eshelyaron.com Git - emacs.git/commitdiff
(c-require-final-newline): Added a variable to make the initialization of
authorMartin Stjernholm <mast@lysator.liu.se>
Sun, 26 Jan 2003 21:36:39 +0000 (21:36 +0000)
committerMartin Stjernholm <mast@lysator.liu.se>
Sun, 26 Jan 2003 21:36:39 +0000 (21:36 +0000)
require-final-newline' more configurable.

lisp/ChangeLog
lisp/progmodes/cc-mode.el
lisp/progmodes/cc-vars.el

index 62b37a7a7fb5f56126c0be78cf412bcebfe82604..35ec7379ed7ac10b985dbce5dc08aa5551bf9138 100644 (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.
index 40e5a3107a82f716b2a175f1c76930ade5386285..5148ff72dea08af1fbe1463e470f524ca078f425 100644 (file)
               '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
index 2b88a131776f467e2d54d42912dec446a0608807..50b09160ee3cba76a6619e4ca156d24158e866f7 100644 (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'."