diff options
| author | Richard M. Stallman | 2004-12-31 14:52:17 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-12-31 14:52:17 +0000 |
| commit | 876d19ef1d8a3e1aedb58917da930dac9f193c65 (patch) | |
| tree | 1784c394c3cdf1e35a068df65a685504d1ff1386 /lisp | |
| parent | 1750e02f518a49cb140e018c462db80b9f145904 (diff) | |
| download | emacs-876d19ef1d8a3e1aedb58917da930dac9f193c65.tar.gz emacs-876d19ef1d8a3e1aedb58917da930dac9f193c65.zip | |
(c-require-final-newline): Fix custom type, doc.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/cc-vars.el | 22 |
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. |
| 843 | The value is an association list that for each language mode specifies | 843 | The value is an association list specifying, for each specific mode, |
| 844 | the value to give to `require-final-newline' at mode initialization; | 844 | whether to override `require-final-newline'. If the cdr of the element |
| 845 | see that variable for details about the value. If a language isn't | 845 | is non-nil, that means to use `mode-require-final-newline' instead." |
| 846 | present 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 |