aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/progmodes/cc-vars.el22
1 files changed, 10 insertions, 12 deletions
diff --git a/lisp/progmodes/cc-vars.el b/lisp/progmodes/cc-vars.el
index 2ed23f8ef86..89697c58ca8 100644
--- a/lisp/progmodes/cc-vars.el
+++ b/lisp/progmodes/cc-vars.el
@@ -839,30 +839,28 @@ space."
839 '((c-mode . t) 839 '((c-mode . t)
840 (c++-mode . t) 840 (c++-mode . t)
841 (objc-mode . t)) 841 (objc-mode . t))
842 "*Controls whether a final newline is ensured when the file is saved. 842 "*Controls `require-final-newline' in C-related major modes.
843The value is an association list that for each language mode specifies 843The value is an association list specifying, for each specific mode,
844the value to give to `require-final-newline' at mode initialization; 844whether to override `require-final-newline'. If the cdr of the element
845see that variable for details about the value. If a language isn't 845is non-nil, that means to use `mode-require-final-newline' instead."
846present on the association list, CC Mode won't set
847`require-final-newline' in buffers for that language."
848 :type `(set (cons :format "%v" 846 :type `(set (cons :format "%v"
849 (const :format "C " c-mode) 847 (const :format "C " c-mode)
850 (symbol :format "%v" :value ,require-final-newline)) 848 (const t))
851 (cons :format "%v" 849 (cons :format "%v"
852 (const :format "C++ " c++-mode) 850 (const :format "C++ " c++-mode)
853 (symbol :format "%v" :value ,require-final-newline)) 851 (const t))
854 (cons :format "%v" 852 (cons :format "%v"
855 (const :format "ObjC " objc-mode) 853 (const :format "ObjC " objc-mode)
856 (symbol :format "%v" :value ,require-final-newline)) 854 (const t))
857 (cons :format "%v" 855 (cons :format "%v"
858 (const :format "Java " java-mode) 856 (const :format "Java " java-mode)
859 (symbol :format "%v" :value ,require-final-newline)) 857 (const t))
860 (cons :format "%v" 858 (cons :format "%v"
861 (const :format "IDL " idl-mode) 859 (const :format "IDL " idl-mode)
862 (symbol :format "%v" :value ,require-final-newline)) 860 (const t))
863 (cons :format "%v" 861 (cons :format "%v"
864 (const :format "Pike " pike-mode) 862 (const :format "Pike " pike-mode)
865 (symbol :format "%v" :value ,require-final-newline))) 863 (const t)))
866 :group 'c) 864 :group 'c)
867 865
868(defcustom c-electric-pound-behavior nil 866(defcustom c-electric-pound-behavior nil