aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/progmodes/cc-mode.el2
-rw-r--r--lisp/progmodes/cc-vars.el7
3 files changed, 14 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 62b37a7a7fb..35ec7379ed7 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12003-01-26 Martin Stjernholm <bug-cc-mode@gnu.org>
2
3 * progmodes/cc-vars.el, progmodes/cc-mode.el
4 (c-require-final-newline): Added a variable to make the
5 initialization of `require-final-newline' more configurable.
6
12003-01-26 Jan D. <jan.h.d@swipnet.se> 72003-01-26 Jan D. <jan.h.d@swipnet.se>
2 8
3 * emacs-lisp/authors.el (authors-aliases): Add Jan D. 9 * emacs-lisp/authors.el (authors-aliases): Add Jan D.
diff --git a/lisp/progmodes/cc-mode.el b/lisp/progmodes/cc-mode.el
index 40e5a3107a8..5148ff72dea 100644
--- a/lisp/progmodes/cc-mode.el
+++ b/lisp/progmodes/cc-mode.el
@@ -326,7 +326,7 @@
326 'c-indent-new-comment-line))) 326 'c-indent-new-comment-line)))
327 327
328 ;; now set their values 328 ;; now set their values
329 (setq require-final-newline t 329 (setq require-final-newline c-require-final-newline
330 parse-sexp-ignore-comments t 330 parse-sexp-ignore-comments t
331 indent-line-function 'c-indent-line 331 indent-line-function 'c-indent-line
332 indent-region-function 'c-indent-region 332 indent-region-function 'c-indent-region
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index 2b88a131776..50b09160ee3 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -704,6 +704,13 @@ space."
704 :type 'function 704 :type 'function
705 :group 'c) 705 :group 'c)
706 706
707(defcustom c-require-final-newline t
708 "*Controls whether a final newline is added to the file when saved.
709This value is given to `require-final-newline' at mode initialization;
710see that variable for details."
711 :type 'symbol
712 :group 'c)
713
707(defcustom c-electric-pound-behavior nil 714(defcustom c-electric-pound-behavior nil
708 "*List of behaviors for electric pound insertion. 715 "*List of behaviors for electric pound insertion.
709Only currently supported behavior is `alignleft'." 716Only currently supported behavior is `alignleft'."