diff options
| author | Stefan Kangas | 2021-02-13 05:18:55 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2021-02-13 07:17:20 +0100 |
| commit | b4b9ecdfe366c64a7b95c4fd295b583c3f3c7aa9 (patch) | |
| tree | 65360c882a1620a73585172bfbc6941a1f80bb72 /lisp/progmodes/cpp.el | |
| parent | ca0842347e5437bcaeeded4a7fd55e0e48ed4bad (diff) | |
| download | emacs-b4b9ecdfe366c64a7b95c4fd295b583c3f3c7aa9.tar.gz emacs-b4b9ecdfe366c64a7b95c4fd295b583c3f3c7aa9.zip | |
Remove redundant :group args in progmodes/*.el
* lisp/progmodes/bug-reference.el:
* lisp/progmodes/cfengine.el:
* lisp/progmodes/cmacexp.el:
* lisp/progmodes/cpp.el:
* lisp/progmodes/cwarn.el:
* lisp/progmodes/dcl-mode.el:
* lisp/progmodes/executable.el:
* lisp/progmodes/flymake.el:
* lisp/progmodes/gud.el:
* lisp/progmodes/hideshow.el:
* lisp/progmodes/icon.el:
* lisp/progmodes/inf-lisp.el:
* lisp/progmodes/js.el:
* lisp/progmodes/ld-script.el:
* lisp/progmodes/make-mode.el:
* lisp/progmodes/modula2.el:
* lisp/progmodes/pascal.el:
* lisp/progmodes/perl-mode.el:
* lisp/progmodes/prog-mode.el:
* lisp/progmodes/simula.el:
* lisp/progmodes/xscheme.el: Remove redundant :group args.
Diffstat (limited to 'lisp/progmodes/cpp.el')
| -rw-r--r-- | lisp/progmodes/cpp.el | 43 |
1 files changed, 14 insertions, 29 deletions
diff --git a/lisp/progmodes/cpp.el b/lisp/progmodes/cpp.el index b2c2e8dab57..6602a79b2a4 100644 --- a/lisp/progmodes/cpp.el +++ b/lisp/progmodes/cpp.el | |||
| @@ -53,8 +53,7 @@ | |||
| 53 | 53 | ||
| 54 | (defcustom cpp-config-file (convert-standard-filename ".cpp.el") | 54 | (defcustom cpp-config-file (convert-standard-filename ".cpp.el") |
| 55 | "File name to save cpp configuration." | 55 | "File name to save cpp configuration." |
| 56 | :type 'file | 56 | :type 'file) |
| 57 | :group 'cpp) | ||
| 58 | 57 | ||
| 59 | (define-widget 'cpp-face 'lazy | 58 | (define-widget 'cpp-face 'lazy |
| 60 | "Either a face or the special symbol `invisible'." | 59 | "Either a face or the special symbol `invisible'." |
| @@ -62,13 +61,11 @@ | |||
| 62 | 61 | ||
| 63 | (defcustom cpp-known-face 'invisible | 62 | (defcustom cpp-known-face 'invisible |
| 64 | "Face used for known cpp symbols." | 63 | "Face used for known cpp symbols." |
| 65 | :type 'cpp-face | 64 | :type 'cpp-face) |
| 66 | :group 'cpp) | ||
| 67 | 65 | ||
| 68 | (defcustom cpp-unknown-face 'highlight | 66 | (defcustom cpp-unknown-face 'highlight |
| 69 | "Face used for unknown cpp symbols." | 67 | "Face used for unknown cpp symbols." |
| 70 | :type 'cpp-face | 68 | :type 'cpp-face) |
| 71 | :group 'cpp) | ||
| 72 | 69 | ||
| 73 | (defcustom cpp-face-type 'light | 70 | (defcustom cpp-face-type 'light |
| 74 | "Indicate what background face type you prefer. | 71 | "Indicate what background face type you prefer. |
| @@ -76,18 +73,15 @@ Can be either light or dark for color screens, mono for monochrome | |||
| 76 | screens, and none if you don't use a window system and don't have | 73 | screens, and none if you don't use a window system and don't have |
| 77 | a color-capable display." | 74 | a color-capable display." |
| 78 | :options '(light dark mono nil) | 75 | :options '(light dark mono nil) |
| 79 | :type 'symbol | 76 | :type 'symbol) |
| 80 | :group 'cpp) | ||
| 81 | 77 | ||
| 82 | (defcustom cpp-known-writable t | 78 | (defcustom cpp-known-writable t |
| 83 | "Non-nil means you are allowed to modify the known conditionals." | 79 | "Non-nil means you are allowed to modify the known conditionals." |
| 84 | :type 'boolean | 80 | :type 'boolean) |
| 85 | :group 'cpp) | ||
| 86 | 81 | ||
| 87 | (defcustom cpp-unknown-writable t | 82 | (defcustom cpp-unknown-writable t |
| 88 | "Non-nil means you are allowed to modify the unknown conditionals." | 83 | "Non-nil means you are allowed to modify the unknown conditionals." |
| 89 | :type 'boolean | 84 | :type 'boolean) |
| 90 | :group 'cpp) | ||
| 91 | 85 | ||
| 92 | (defcustom cpp-edit-list nil | 86 | (defcustom cpp-edit-list nil |
| 93 | "Alist of cpp macros and information about how they should be displayed. | 87 | "Alist of cpp macros and information about how they should be displayed. |
| @@ -101,15 +95,13 @@ Each entry is a list with the following elements: | |||
| 101 | (cpp-face :tag "False") | 95 | (cpp-face :tag "False") |
| 102 | (choice (const :tag "True branch writable" t) | 96 | (choice (const :tag "True branch writable" t) |
| 103 | (const :tag "False branch writable" nil) | 97 | (const :tag "False branch writable" nil) |
| 104 | (const :tag "Both branches writable" both)))) | 98 | (const :tag "Both branches writable" both))))) |
| 105 | :group 'cpp) | ||
| 106 | 99 | ||
| 107 | (defcustom cpp-message-min-time-interval 1.0 | 100 | (defcustom cpp-message-min-time-interval 1.0 |
| 108 | "Minimum time interval in seconds for `cpp-progress-message' messages. | 101 | "Minimum time interval in seconds for `cpp-progress-message' messages. |
| 109 | If nil, `cpp-progress-message' prints no progress messages." | 102 | If nil, `cpp-progress-message' prints no progress messages." |
| 110 | :type '(choice (const :tag "Disable progress messages" nil) | 103 | :type '(choice (const :tag "Disable progress messages" nil) |
| 111 | float) | 104 | float) |
| 112 | :group 'cpp | ||
| 113 | :version "26.1") | 105 | :version "26.1") |
| 114 | 106 | ||
| 115 | (defvar-local cpp-overlay-list nil | 107 | (defvar-local cpp-overlay-list nil |
| @@ -153,36 +145,31 @@ or a cons cell (background-color . COLOR)." | |||
| 153 | :value-type (choice face | 145 | :value-type (choice face |
| 154 | (const invisible) | 146 | (const invisible) |
| 155 | (cons (const background-color) | 147 | (cons (const background-color) |
| 156 | (string :tag "Color")))) | 148 | (string :tag "Color"))))) |
| 157 | :group 'cpp) | ||
| 158 | 149 | ||
| 159 | (defcustom cpp-face-light-name-list | 150 | (defcustom cpp-face-light-name-list |
| 160 | '("light gray" "light blue" "light cyan" "light yellow" "light pink" | 151 | '("light gray" "light blue" "light cyan" "light yellow" "light pink" |
| 161 | "pale green" "beige" "orange" "magenta" "violet" "medium purple" | 152 | "pale green" "beige" "orange" "magenta" "violet" "medium purple" |
| 162 | "turquoise") | 153 | "turquoise") |
| 163 | "Background colors useful with dark foreground colors." | 154 | "Background colors useful with dark foreground colors." |
| 164 | :type '(repeat string) | 155 | :type '(repeat string)) |
| 165 | :group 'cpp) | ||
| 166 | 156 | ||
| 167 | (defcustom cpp-face-dark-name-list | 157 | (defcustom cpp-face-dark-name-list |
| 168 | '("dim gray" "blue" "cyan" "yellow" "red" | 158 | '("dim gray" "blue" "cyan" "yellow" "red" |
| 169 | "dark green" "brown" "dark orange" "dark khaki" "dark violet" "purple" | 159 | "dark green" "brown" "dark orange" "dark khaki" "dark violet" "purple" |
| 170 | "dark turquoise") | 160 | "dark turquoise") |
| 171 | "Background colors useful with light foreground colors." | 161 | "Background colors useful with light foreground colors." |
| 172 | :type '(repeat string) | 162 | :type '(repeat string)) |
| 173 | :group 'cpp) | ||
| 174 | 163 | ||
| 175 | (defcustom cpp-face-light-list nil | 164 | (defcustom cpp-face-light-list nil |
| 176 | "Alist of names and faces to be used for light backgrounds." | 165 | "Alist of names and faces to be used for light backgrounds." |
| 177 | :type '(repeat (cons string (choice face | 166 | :type '(repeat (cons string (choice face |
| 178 | (cons (const background-color) string)))) | 167 | (cons (const background-color) string))))) |
| 179 | :group 'cpp) | ||
| 180 | 168 | ||
| 181 | (defcustom cpp-face-dark-list nil | 169 | (defcustom cpp-face-dark-list nil |
| 182 | "Alist of names and faces to be used for dark backgrounds." | 170 | "Alist of names and faces to be used for dark backgrounds." |
| 183 | :type '(repeat (cons string (choice face | 171 | :type '(repeat (cons string (choice face |
| 184 | (cons (const background-color) string)))) | 172 | (cons (const background-color) string))))) |
| 185 | :group 'cpp) | ||
| 186 | 173 | ||
| 187 | (defcustom cpp-face-mono-list | 174 | (defcustom cpp-face-mono-list |
| 188 | '(("bold" . bold) | 175 | '(("bold" . bold) |
| @@ -190,15 +177,13 @@ or a cons cell (background-color . COLOR)." | |||
| 190 | ("italic" . italic) | 177 | ("italic" . italic) |
| 191 | ("underline" . underline)) | 178 | ("underline" . underline)) |
| 192 | "Alist of names and faces to be used for monochrome screens." | 179 | "Alist of names and faces to be used for monochrome screens." |
| 193 | :type '(repeat (cons string face)) | 180 | :type '(repeat (cons string face))) |
| 194 | :group 'cpp) | ||
| 195 | 181 | ||
| 196 | (defcustom cpp-face-none-list | 182 | (defcustom cpp-face-none-list |
| 197 | '(("default" . default) | 183 | '(("default" . default) |
| 198 | ("invisible" . invisible)) | 184 | ("invisible" . invisible)) |
| 199 | "Alist of names and faces available even if you don't use a window system." | 185 | "Alist of names and faces available even if you don't use a window system." |
| 200 | :type '(repeat (cons string cpp-face)) | 186 | :type '(repeat (cons string cpp-face))) |
| 201 | :group 'cpp) | ||
| 202 | 187 | ||
| 203 | (defvar cpp-face-all-list | 188 | (defvar cpp-face-all-list |
| 204 | (append cpp-face-light-list | 189 | (append cpp-face-light-list |