[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-vars.el
From: |
Martin Stjernholm |
Subject: |
[Emacs-diffs] Changes to emacs/lisp/progmodes/cc-vars.el |
Date: |
Mon, 27 Jan 2003 19:41:22 -0500 |
Index: emacs/lisp/progmodes/cc-vars.el
diff -c emacs/lisp/progmodes/cc-vars.el:1.26
emacs/lisp/progmodes/cc-vars.el:1.27
*** emacs/lisp/progmodes/cc-vars.el:1.26 Mon Jan 27 03:48:02 2003
--- emacs/lisp/progmodes/cc-vars.el Mon Jan 27 19:41:21 2003
***************
*** 704,714 ****
: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
--- 704,741 ----
:type 'function
:group 'c)
! (defcustom c-require-final-newline
! ;; C and C++ mandates that all nonempty files should end with a
! ;; newline. Objective-C refers to C for all things it doesn't
! ;; specify, so the same holds there. The other languages does not
! ;; require it (at least not explicitly in a normative text).
! '((c-mode . t)
! (c++-mode . t)
! (objc-mode . t))
! "*Controls whether a final newline is ensured when the file is saved.
! The value is an association list that for each language mode specifies
! the value to give to `require-final-newline' at mode initialization;
! see that variable for details about the value. If a language isn't
! present on the association list, CC Mode won't set
! `require-final-newline' in buffers for that language."
! :type `(set (cons :format "%v"
! (const :format "C " c-mode)
! (symbol :format "%v" :value ,require-final-newline))
! (cons :format "%v"
! (const :format "C++ " c++-mode)
! (symbol :format "%v" :value ,require-final-newline))
! (cons :format "%v"
! (const :format "ObjC " objc-mode)
! (symbol :format "%v" :value ,require-final-newline))
! (cons :format "%v"
! (const :format "Java " java-mode)
! (symbol :format "%v" :value ,require-final-newline))
! (cons :format "%v"
! (const :format "IDL " idl-mode)
! (symbol :format "%v" :value ,require-final-newline))
! (cons :format "%v"
! (const :format "Pike " pike-mode)
! (symbol :format "%v" :value ,require-final-newline)))
:group 'c)
(defcustom c-electric-pound-behavior nil