Skip to content

Commit 5229244

Browse files
authored
Merge pull request #813 from emacs-php/cleanup/remove-redundant-group-php-group
Remove redundant :group keywords from defcustom/defface forms
2 parents 101b3b5 + 2125a1e commit 5229244

8 files changed

Lines changed: 7 additions & 88 deletions

File tree

lisp/php-complete.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@
5151
:type (eval-when-compile `(set ,@(mapcar (lambda (elm) (list 'const (car elm)))
5252
php-defs-functions-alist)))
5353
:safe (lambda (value) (and (listp value) (cl-loop for v in values
54-
always (assq v php-defs-functions-alist))))
55-
:group 'php-complete)
54+
always (assq v php-defs-functions-alist)))))
5655

5756
;;; Cape functions:
5857

lisp/php-face.el

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -37,238 +37,194 @@
3737

3838
(defface php-string '((t (:inherit font-lock-string-face)))
3939
"PHP Mode face used to highlight string literals."
40-
:group 'php-faces
4140
:tag "PHP String")
4241

4342
(defface php-keyword '((t (:inherit font-lock-keyword-face)))
4443
"PHP Mode face used to highlight keywords."
45-
:group 'php-faces
4644
:tag "PHP Keyword")
4745

4846
(defface php-builtin '((t (:inherit font-lock-builtin-face)))
4947
"PHP Mode face used to highlight builtins."
50-
:group 'php-faces
5148
:tag "PHP Built-in")
5249

5350
(defface php-function-name '((t (:inherit font-lock-function-name-face)))
5451
"PHP Mode face used to highlight function names."
55-
:group 'php-faces
5652
:tag "PHP Function Name")
5753

5854
(defface php-function-call-standard `((t ,(when (eval-when-compile (get 'font-lock-function-call-face 'face-defface-spec))
5955
'(:inherit font-lock-function-call-face))))
6056
"PHP Mode face used to highlight function names in calles."
61-
:group 'php-faces
6257
:tag "PHP Function Call Standard")
6358

6459
(defface php-function-call-traditional '((t ()))
6560
"PHP Mode face used to highlight function names in calles."
66-
:group 'php-faces
6761
:tag "PHP Function Call Traditional")
6862

6963
(define-obsolete-face-alias 'php-function-call 'php-function-call-traditional "1.26.0")
7064

7165
(defface php-method-call-standard '((t (:inherit php-function-call-standard)))
7266
"PHP Mode face used to highlight method names in calles."
73-
:group 'php-faces
7467
:tag "PHP Method Call Standard")
7568

7669
(defface php-method-call-traditional '((t (:inherit php-function-call-traditional)))
7770
"PHP Mode face used to highlight method names in calles."
78-
:group 'php-faces
7971
:tag "PHP Method Call Traditional")
8072

8173
(define-obsolete-face-alias 'php-method-call 'php-method-call-traditional "1.26.0")
8274

8375
(defface php-static-method-call-standard '((t (:inherit php-method-call-standard)))
8476
"PHP Mode face used to highlight static method names in calles."
85-
:group 'php-faces
8677
:tag "PHP Static Method Call Standard")
8778

8879
(defface php-static-method-call-traditional '((t (:inherit php-method-call-traditional)))
8980
"PHP Mode face used to highlight static method names in calles."
90-
:group 'php-faces
9181
:tag "PHP Static Method Call Traditional")
9282

9383
(define-obsolete-face-alias 'php-static-method-call 'php-static-method-call-traditional "1.26.0")
9484

9585
(defface php-variable-name '((t (:inherit font-lock-variable-name-face)))
9686
"PHP Mode face used to highlight variable names."
97-
:group 'php-faces
9887
:tag "PHP Variable Name")
9988

10089
(defface php-property-name '((t (:inherit php-variable-name)))
10190
"PHP Mode face used to highlight property names."
102-
:group 'php-faces
10391
:tag "PHP Property Name")
10492

10593
(defface php-variable-sigil '((t ()))
10694
"PHP Mode face used to highlight variable sigils ($)."
107-
:group 'php-faces
10895
:tag "PHP Variable Sigil")
10996

11097
(defface php-operator '((t ()))
11198
"PHP Mode face used to operators."
112-
:group 'php-faces
11399
:tag "PHP Operator")
114100

115101
(defface php-assignment-op '((t (:inherit php-operator)))
116102
"PHP Mode face used to assignment operators (=, +=, ...)."
117-
:group 'php-faces
118103
:tag "PHP Object Op")
119104

120105
(defface php-comparison-op '((t (:inherit php-operator)))
121106
"PHP Mode face used to comparison operators (==, !=, ===, ...)."
122-
:group 'php-faces
123107
:tag "PHP Comparison Op")
124108

125109
(defface php-logical-op '((t (:inherit php-operator)))
126110
"PHP Mode face used to logical operators (&&, ||, ?:)."
127-
:group 'php-faces
128111
:tag "PHP Logical Op")
129112

130113
(defface php-arithmetic-op '((t (:inherit php-operator)))
131114
"PHP Mode face used to arithmetic operators (+, -, %, ...)."
132-
:group 'php-faces
133115
:tag "PHP Arithmetic Op")
134116

135117
(defface php-inc-dec-op '((t (:inherit php-operator)))
136118
"PHP Mode face used to increment and decremt operators (--, ++)."
137-
:group 'php-faces
138119
:tag "PHP Increment/Decrement Op")
139120

140121
(defface php-string-op '((t (:inherit php-operator)))
141122
"PHP Mode face used to logical operators (.)."
142-
:group 'php-faces
143123
:tag "PHP String Op")
144124

145125
(defface php-object-op '((t (:inherit php-operator)))
146126
"PHP Mode face used to object operators (->)."
147-
:group 'php-faces
148127
:tag "PHP Object Op")
149128

150129
(defface php-paamayim-nekudotayim '((t ()))
151130
"PHP Mode face used to highlight scope resolution operators (::).
152131
The operator is also knows as \"Paamayim Nekudotayim\"."
153-
:group 'php-faces
154132
:tag "PHP Paamayim Nekudotayim")
155133

156134
(defface php-type '((t (:inherit font-lock-type-face)))
157135
"PHP Mode face used to highlight types."
158-
:group 'php-faces
159136
:tag "PHP Type")
160137

161138
(defface php-class '((t (:inherit font-lock-type-face)))
162139
"PHP Mode face used to highlight class."
163-
:group 'php-faces
164140
:tag "PHP Class")
165141

166142
(defface php-constant '((t (:inherit font-lock-constant-face)))
167143
"PHP Mode face used to highlight constants."
168-
:group 'php-faces
169144
:tag "PHP Constant")
170145

171146
(defface php-constant-assign '((t (:inherit php-constant)))
172147
"PHP Mode face used to highlight constant assigning (\"const\" statement)."
173-
:group 'php-faces
174148
:tag "PHP Constant Assign")
175149

176150
(defface php-magical-constant '((t (:inherit font-lock-builtin-face)))
177151
"PHP Mode face used to highlight magical constants."
178-
:group 'php-faces
179152
:tag "PHP Magical Constant")
180153

181154
(defface php-this '((t (:inherit php-constant)))
182155
"PHP Mode face used to highlight $this variables."
183-
:group 'php-faces
184156
:tag "PHP $this")
185157

186158
(defface php-this-sigil '((t (:inherit php-constant)))
187159
"PHP Mode face used to highlight sigils($) of $this variable."
188-
:group 'php-faces
189160
:tag "PHP $this Sigil")
190161

191162
(define-obsolete-face-alias 'php-$this 'php-this "1.26.0")
192163
(define-obsolete-face-alias 'php-$this-sigil 'php-this-sigil "1.26.0")
193164

194165
(defface php-errorcontrol-op '((t (:inherit font-lock-type-face)))
195166
"PHP Mode face used to highlight errorcontrol operators (@).."
196-
:group 'php-faces
197167
:tag "PHP ErrorControl Op")
198168

199169
(defface php-php-tag '((t (:inherit font-lock-preprocessor-face)))
200170
"PHP Mode face used to highlight PHP tags."
201-
:group 'php-faces
202171
:tag "PHP php Tag")
203172

204173
(defface php-doc-annotation-tag (eval-when-compile
205174
(if (eval-when-compile (boundp 'font-lock-doc-markup-face))
206175
'((t . (:inherit font-lock-doc-markup-face)))
207176
'((t . (:inherit font-lock-constant-face)))))
208177
"Face used to highlight annotation tags in doc-comment."
209-
:group 'php-faces
210178
:tag "PHPDoc Annotation Tag")
211179

212180
(defface php-doc-variable-sigil '((t (:inherit font-lock-variable-name-face)))
213181
"PHP Mode face used to highlight variable sigils($)."
214-
:group 'php-faces
215182
:tag "PHPDoc Variable Sigil")
216183

217184
(defface php-doc-$this '((t (:inherit php-type)))
218185
"PHP Mode face used to highlight $this variable in doc-comment."
219-
:group 'php-faces
220186
:tag "PHPDoc $this")
221187

222188
(defface php-doc-$this-sigil '((t (:inherit php-type)))
223189
"PHP Mode face used to highlight sigil of $this variable in doc-comment."
224-
:group 'php-faces
225190
:tag "PHPDoc $this Sigil")
226191

227192
(defface php-doc-class-name '((t (:inherit php-string)))
228193
"PHP Mode Face used to class names in doc-comment."
229-
:group 'php-faces
230194
:tag "PHPDoc Class Name")
231195

232196
(defface php-class-declaration '((t (:inherit php-keyword)))
233197
"PHP Mode Face used to class declarations."
234-
:group 'php-faces
235198
:tag "PHP Class Declaration")
236199

237200
(defface php-class-declaration-spec '((t (:inherit php-keyword)))
238201
"PHP Mode Face used to highlight class declaration specification keywords.
239202
The keywords include: implements, extends."
240-
:group 'php-faces
241203
:tag "PHP Class Declaration Specification")
242204

243205
(defface php-namespace-declaration '((t (:inherit php-keyword)))
244206
"PHP Mode Face used to highlight namespace declaration keyword."
245-
:group 'php-faces
246207
:tag "PHP Namespace Declaration")
247208

248209
(defface php-import-declaration '((t (:inherit php-keyword)))
249210
"PHP Mode Face used to highlight import statements (use ... as ...)."
250-
:group 'php-faces
251211
:tag "PHP Import Statement")
252212

253213
(defface php-class-modifier '((t (:inherit php-keyword)))
254214
"PHP Mode Face used to highlight class modifiers (final, abstract)."
255-
:group 'php-faces
256215
:tag "PHP Class Modifier")
257216

258217
(defface php-method-modifier '((t (:inherit php-keyword)))
259218
"PHP Mode Face used to highlight method modifiers (final, abstract)."
260-
:group 'php-faces
261219
:tag "PHP Method Modifier")
262220

263221
(defface php-visibility-modifier '((t (:inherit php-keyword)))
264222
"PHP Mode Face used to highlight access keywords (public, protected, private)."
265-
:group 'php-faces
266223
:tag "PHP Visibility Modifier")
267224

268225
(defface php-control-structure '((t (:inherit php-keyword)))
269226
"PHP Mode Face used to highlight control structures.
270227
The control structures include: if, foreach, while, switch, catch."
271-
:group 'php-faces
272228
:tag "PHP Control Structure")
273229

274230
(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag "1.19.0")

lisp/php-flymake.el

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
(defcustom php-flymake-executable-command-args nil
4242
"List of command and arguments for `php -l'."
43-
:group 'php-flymake
4443
:type '(repeat string)
4544
:safe (lambda (v) (and (listp v) (cl-every v #'stringp))))
4645

lisp/php-format.el

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,15 +103,13 @@
103103
(const :tag "PHP-CS-Fixer" php-cs-fixer)
104104
(const :tag "PHP Code Beautifier and Fixer" phpcbf)
105105
(repeat :tag "Command and arguments" string))
106-
:safe (lambda (v) (or (symbolp v) (listp v)))
107-
:group 'php-format)
106+
:safe (lambda (v) (or (symbolp v) (listp v))))
108107

109108
(defcustom php-format-command-dir "vendor/bin"
110109
"A relative path to the directory where formatting tool is installed."
111110
:tag "PHP Format Command"
112111
:type 'string
113-
:safe #'stringp
114-
:group 'php-format)
112+
:safe #'stringp)
115113

116114
(defcustom php-format-default-idle-time 3
117115
"Number of seconds to wait idle before formatting."
@@ -126,14 +124,12 @@
126124
"An alist of misplay the result method of the formatting process."
127125
:tag "PHP Format Result Display Method"
128126
:type '(alist :key-type function
129-
:value-type symbol)
130-
:group 'php-format)
127+
:value-type symbol))
131128

132129
(defcustom php-format-disable-async-format-buffer-has-modified t
133130
"When set to non-NIL, disables async formatting if buffer is modified (unsaved)."
134131
:tag "PHP Format Disable Async Format Buffer Has Modified"
135-
:type 'boolean
136-
:group 'php-format)
132+
:type 'boolean)
137133

138134
;; Internal functions
139135
(defsubst php-format--register-timer (sec command-args)
@@ -226,7 +222,6 @@
226222
;;;###autoload
227223
(define-minor-mode php-format-auto-mode
228224
"Automatically apply formatting when saving an edited file."
229-
:group 'php-format
230225
:lighter php-format-lighter
231226
(if php-format-auto-mode
232227
(add-hook 'after-save-hook 'php-format-on-after-save-hook php-format-auto-mode-hook-depth t)

lisp/php-ide-phpactor.el

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@
5858
(const hover)
5959
(const navigation))
6060
:safe (lambda (xs) (and (listp xs)
61-
(cl-every (lambda (x) (memq x '(all hover navigation))) xs)))
62-
:group 'php-ide-phpactor)
61+
(cl-every (lambda (x) (memq x '(all hover navigation))) xs))))
6362

6463
(defvar php-ide-phpactor-timer nil
6564
"Timer object for execute Phpactor and display hover message.")

lisp/php-ide.el

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@
139139
(defcustom php-ide-features nil
140140
"A set of PHP-IDE features symbol."
141141
:tag "PHP-IDE Feature"
142-
:group 'php-ide
143142
:type `(set ,@(mapcar (lambda (feature) (list 'const (car feature)))
144143
php-ide-feature-alist)
145144
symbol)
@@ -150,7 +149,6 @@
150149
(defcustom php-ide-eglot-executable nil
151150
"Command name or path to the command of Eglot LSP executable."
152151
:tag "PHP-IDE Eglot Executable"
153-
:group 'php-ide
154152
:type '(choice
155153
(const intelephense)
156154
(const phpactor)
@@ -174,7 +172,6 @@
174172
(defcustom php-ide-mode-lighter " PHP-IDE"
175173
"A symbol of PHP-IDE feature."
176174
:tag "PHP-IDE Mode Lighter"
177-
:group 'php-ide
178175
:type 'string
179176
:safe #'stringp)
180177

@@ -186,7 +183,6 @@ Notice that two arguments (FEATURE ACTIVATE) are given.
186183
FEATURE: A symbol, like \\='lsp-mode.
187184
ACTIVATE: T is given when activeting, NIL when deactivating PHP-IDE."
188185
:tag "PHP-IDE Mode Functions"
189-
:group 'php-ide
190186
:type '(repeat function)
191187
:safe (lambda (functions)
192188
(and (listp functions) (cl-every #'functionp functions))))

lisp/php-project.el

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,13 +73,11 @@
7373
(defcustom php-project-auto-detect-etags-file nil
7474
"If `T', automatically detect etags file when file is opened."
7575
:tag "PHP Project Auto Detect Etags File"
76-
:group 'php-project
7776
:type 'boolean)
7877

7978
(defcustom php-project-use-projectile-to-detect-root nil
8079
"If `T' and projectile-mode is activated, use Projectile for root detection."
8180
:tag "PHP Project Use Projectile To Detect Root"
82-
:group 'php-project
8381
:type 'boolean)
8482

8583
;; Variables

0 commit comments

Comments
 (0)