@@ -138,15 +138,13 @@ When CALLED-INTERACTIVE then message the result." t)
138
138
(define-obsolete-variable-alias 'php-default-face 'php-mode-default-face " 1.20.0" )
139
139
(defcustom php-mode-default-face 'default
140
140
" Default face in `php-mode' buffers."
141
- :group 'php-mode
142
141
:tag " PHP Mode Default Face"
143
142
:type 'face )
144
143
145
144
(define-obsolete-variable-alias 'php-speedbar-config 'php-mode-speedbar-config " 1.20.0" )
146
145
(defcustom php-mode-speedbar-config t
147
146
" When set to true automatically configures Speedbar to observe PHP files.
148
147
Ignores php-file patterns option; fixed to expression \" \\ .\\ (inc\\ |php[s345]?\\ )\" "
149
- :group 'php-mode
150
148
:tag " PHP Mode Speedbar Config"
151
149
:type 'boolean
152
150
:set (lambda (sym val )
@@ -158,7 +156,6 @@ Ignores php-file patterns option; fixed to expression \"\\.\\(inc\\|php[s345]?\\
158
156
(defcustom php-mode-speedbar-open nil
159
157
" Normally `php-mode' starts with the speedbar closed.
160
158
Turning this on will open it whenever `php-mode' is loaded."
161
- :group 'php-mode
162
159
:tag " PHP Mode Speedbar Open"
163
160
:type 'boolean
164
161
:set (lambda (sym val )
@@ -169,14 +166,12 @@ Turning this on will open it whenever `php-mode' is loaded."
169
166
(define-obsolete-variable-alias 'php-template-compatibility 'php-mode-template-compatibility " 1.20.0" )
170
167
(defcustom php-mode-template-compatibility t
171
168
" Should detect presence of html tags."
172
- :group 'php-mode
173
169
:tag " PHP Mode Template Compatibility"
174
170
:type 'boolean )
175
171
176
172
(define-obsolete-variable-alias 'php-lineup-cascaded-calls 'php-mode-lineup-cascaded-calls " 1.20.0" )
177
173
(defcustom php-mode-lineup-cascaded-calls nil
178
174
" Indent chained method calls to the previous line."
179
- :group 'php-mode
180
175
:tag " PHP Mode Lineup Cascaded Calls"
181
176
:type 'boolean )
182
177
@@ -186,15 +181,13 @@ Turning this on will open it whenever `php-mode' is loaded."
186
181
(or " namespace" " function" " class" " trait" " interface" )
187
182
symbol-end))
188
183
" Regexp describing line-beginnings that PHP declaration statements."
189
- :group 'php-mode
190
184
:tag " PHP Mode Page Delimiter"
191
185
:type 'regexp )
192
186
193
187
(defcustom php-mode-replace-flymake-diag-function
194
188
(eval-when-compile (when (boundp 'flymake-diagnostic-functions )
195
189
#'php-flymake ))
196
190
" Flymake function to replace, if NIL do not replace."
197
- :group 'php-mode
198
191
:tag " PHP Mode Replace Flymake Diag Function"
199
192
:type '(choice 'function
200
193
(const :tag " Disable to replace" nil )))
@@ -208,7 +201,6 @@ set to `semantic-create-imenu-index' due to `c-mode' being its
208
201
parent. Set this variable to t if you want to use
209
202
`imenu-default-create-index-function' even with `semantic-mode'
210
203
enabled."
211
- :group 'php-mode
212
204
:tag " PHP Mode Do Not Use Semantic Imenu"
213
205
:type 'boolean )
214
206
@@ -219,44 +211,37 @@ enabled."
219
211
220
212
(defcustom php-mode-hook nil
221
213
" List of functions to be executed on entry to `php-mode' ."
222
- :group 'php-mode
223
214
:tag " PHP Mode Hook"
224
215
:type 'hook )
225
216
226
217
(defcustom php-mode-pear-hook nil
227
218
" Hook called when a PHP PEAR file is opened with `php-mode' ."
228
- :group 'php-mode
229
219
:tag " PHP Mode Pear Hook"
230
220
:type 'hook )
231
221
232
222
(defcustom php-mode-drupal-hook nil
233
223
" Hook called when a Drupal file is opened with `php-mode' ."
234
- :group 'php-mode
235
224
:tag " PHP Mode Drupal Hook"
236
225
:type 'hook )
237
226
238
227
(defcustom php-mode-wordpress-hook nil
239
228
" Hook called when a WordPress file is opened with `php-mode' ."
240
- :group 'php-mode
241
229
:tag " PHP Mode WordPress Hook"
242
230
:type 'hook )
243
231
244
232
(defcustom php-mode-symfony2-hook nil
245
233
" Hook called when a Symfony2 file is opened with `php-mode' ."
246
- :group 'php-mode
247
234
:tag " PHP Mode Symfony2 Hook"
248
235
:type 'hook )
249
236
250
237
(defcustom php-mode-psr2-hook nil
251
238
" Hook called when a PSR-2 file is opened with `php-mode' ."
252
- :group 'php-mode
253
239
:tag " PHP Mode PSR-2 Hook"
254
240
:type 'hook )
255
241
256
242
(defcustom php-mode-force-pear nil
257
243
" Normally PEAR coding rules are enforced only when the filename contains \" PEAR\" .
258
244
Turning this on will force PEAR rules on all PHP files."
259
- :group 'php-mode
260
245
:tag " PHP Mode Force Pear"
261
246
:type 'boolean )
262
247
@@ -265,7 +250,6 @@ Turning this on will force PEAR rules on all PHP files."
265
250
mumamo-mode turned on. Detects if there are any HTML tags in the
266
251
buffer before warning, but this is is not very smart; e.g. if you
267
252
have any tags inside a PHP string, it will be fooled."
268
- :group 'php-mode
269
253
:tag " PHP Mode Warn If MuMaMo Off"
270
254
:type '(choice (const :tag " Warn" t ) (const " Don't warn" nil )))
271
255
@@ -279,15 +263,14 @@ This variable can take one of the following symbol values:
279
263
`Drupal' - use coding styles preferred for working with Drupal projects.
280
264
`WordPress' - use coding styles preferred for working with WordPress projects.
281
265
`Symfony2' - use coding styles preferred for working with Symfony2 projects."
282
- :group 'php-mode
283
266
:tag " PHP Mode Coding Style"
284
267
:type '(choice (const :tag " Default" php)
285
268
(const :tag " PEAR" pear)
286
269
(const :tag " Drupal" drupal)
287
270
(const :tag " WordPress" wordpress)
288
271
(const :tag " Symfony2" symfony2)
289
272
(const :tag " PSR-2" psr2))
290
- :initialize 'custom-initialize-default )
273
+ :initialize # 'custom-initialize-default )
291
274
292
275
; ; Since this function has a bad influence on the environment of many users,
293
276
; ; temporarily disable it
@@ -296,7 +279,6 @@ This variable can take one of the following symbol values:
296
279
297
280
If you want to suppress styles from being overwritten by directory / file
298
281
local variables, set NIL."
299
- :group 'php-mode
300
282
:tag " PHP Mode Enable Project Coding Style"
301
283
:type 'boolean )
302
284
@@ -305,21 +287,18 @@ local variables, set NIL."
305
287
306
288
This function may interfere with other hooks and other behaviors.
307
289
In that case set to `NIL' ."
308
- :group 'php-mode
309
290
:tag " PHP Mode Enable Backup Style Variables"
310
291
:type 'boolean )
311
292
312
293
(define-obsolete-variable-alias 'php-mode-disable-parent-mode-hooks 'php-mode-disable-c-mode-hook " 1.21.0" )
313
294
(defcustom php-mode-disable-c-mode-hook t
314
295
" When set to `T' , do not run hooks of parent modes (`java-mode' , `c-mode' )."
315
- :group 'php-mode
316
296
:tag " PHP Mode Disable C Mode Hook"
317
297
:type 'boolean )
318
298
(make-obsolete-variable 'php-mode-disable-c-mode-hook nil " 1.24.2" )
319
299
320
300
(defcustom php-mode-enable-project-local-variable t
321
301
" When set to `T' , apply project local variable to buffer local variable."
322
- :group 'php-mode
323
302
:tag " PHP Mode Enable Project Local Variable"
324
303
:type 'boolean )
325
304
@@ -358,31 +337,31 @@ as a function. Call with AS-NUMBER keyword to compare by `version<'.
358
337
; ;
359
338
; ; Changing the default to mark-defun provides behavior that users
360
339
; ; are more likely to expect.
361
- (define-key map (kbd " C-M-h" ) 'mark-defun )
340
+ (define-key map (kbd " C-M-h" ) # 'mark-defun )
362
341
363
342
; ; Many packages based on cc-mode provide the 'C-c C-w' binding
364
343
; ; to toggle Subword Mode. See the page
365
344
; ;
366
345
; ; https://www.gnu.org/software/emacs/manual/html_node/ccmode/Subword-Movement.html
367
346
; ;
368
347
; ; for more information about Subword mode.
369
- (define-key map (kbd " C-c C-w" ) 'subword-mode )
348
+ (define-key map (kbd " C-c C-w" ) # 'subword-mode )
370
349
371
350
; ; We inherit c-beginning-of-defun and c-end-of-defun from CC Mode
372
351
; ; but we have two replacement functions specifically for PHP. We
373
352
; ; remap the commands themselves and not their default
374
353
; ; key-bindings so that our PHP-specific versions will work even
375
354
; ; if the user has reconfigured their keys, e.g. if they rebind
376
355
; ; c-end-of-defun to something other than C-M-e.
377
- (define-key map [remap c-beginning-of-defun] 'php-beginning-of-defun )
378
- (define-key map [remap c-end-of-defun] 'php-end-of-defun )
379
- (define-key map [remap c-set-style] 'php-set-style )
380
-
381
- (define-key map [(control c) (control f)] 'php-search-documentation )
382
- (define-key map [(meta tab)] 'php-complete-function )
383
- (define-key map [(control c) (control m)] 'php-browse-manual )
384
- (define-key map [(control .)] 'php-show-arglist )
385
- (define-key map [(control c) (control r)] 'php-send-region )
356
+ (define-key map [remap c-beginning-of-defun] # 'php-beginning-of-defun )
357
+ (define-key map [remap c-end-of-defun] # 'php-end-of-defun )
358
+ (define-key map [remap c-set-style] # 'php-set-style )
359
+
360
+ (define-key map [(control c) (control f)] # 'php-search-documentation )
361
+ (define-key map [(meta tab)] # 'php-complete-function )
362
+ (define-key map [(control c) (control m)] # 'php-browse-manual )
363
+ (define-key map [(control .)] # 'php-show-arglist )
364
+ (define-key map [(control c) (control r)] # 'php-send-region )
386
365
; ; Use the Emacs standard indentation binding. This may upset c-mode
387
366
; ; which does not follow this at the moment, but I see no better
388
367
; ; choice.
@@ -863,12 +842,12 @@ plain `php-mode'. To get indentation to work you must use an
863
842
Emacs library that supports 'multiple major modes' in a buffer.
864
843
Parts of the buffer will then be in `php-mode' and parts in for
865
844
example `html-mode' . Known such libraries are:\n\t "
866
- (mapconcat 'identity known-names " , " )
845
+ (mapconcat # 'identity known-names " , " )
867
846
" \n "
868
847
(if available-multi-libs
869
848
(concat
870
849
" You have these available in your `load-path' :\n\t "
871
- (mapconcat 'identity available-names " , " )
850
+ (mapconcat # 'identity available-names " , " )
872
851
" \n\n "
873
852
" Do you want to turn any of those on? " )
874
853
" You do not have any of those in your `load-path' ." )))
@@ -964,8 +943,8 @@ This is was done due to the problem reported here:
964
943
(defun php-lineup-string-cont (langelem )
965
944
" Line up string toward equal sign or dot.
966
945
e.g.
967
- $str \ = \' some\ '
968
- . \' string\ ' ;
946
+ $str = \\= 'some'
947
+ . \\= 'string';
969
948
this ^ lineup"
970
949
(save-excursion
971
950
(goto-char (cdr langelem))
@@ -1251,8 +1230,8 @@ After setting the stylevars run hooks according to STYLENAME
1251
1230
(string-match " \\ .php\\ '" buffer-file-name)))
1252
1231
(php-set-style " pear" ))
1253
1232
1254
- (setq indent-line-function 'php-cautious-indent-line )
1255
- (setq indent-region-function 'php-cautious-indent-region )
1233
+ (setq indent-line-function # 'php-cautious-indent-line )
1234
+ (setq indent-region-function # 'php-cautious-indent-region )
1256
1235
(setq c-at-vsemi-p-fn #'php-c-at-vsemi-p )
1257
1236
(setq c-vsemi-status-unknown-p-fn #'php-c-vsemi-status-unknown-p )
1258
1237
@@ -1262,8 +1241,8 @@ After setting the stylevars run hooks according to STYLENAME
1262
1241
; ; following two local variables, but we keep them for now until we
1263
1242
; ; are completely sure their removal will not break any current
1264
1243
; ; behavior or backwards compatibility.
1265
- (setq-local beginning-of-defun-function 'php-beginning-of-defun )
1266
- (setq-local end-of-defun-function 'php-end-of-defun )
1244
+ (setq-local beginning-of-defun-function # 'php-beginning-of-defun )
1245
+ (setq-local end-of-defun-function # 'php-end-of-defun )
1267
1246
1268
1247
(setq-local open-paren-in-column-0-is-defun-start nil )
1269
1248
(setq-local defun-prompt-regexp
0 commit comments