Skip to content

Commit 2f9fa61

Browse files
monnierzonuexe
authored andcommitted
Replace function name with #'function-form instead of 'symbol
1 parent dfec538 commit 2f9fa61

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

lisp/php-mode.el

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ This variable can take one of the following symbol values:
270270
(const :tag "WordPress" wordpress)
271271
(const :tag "Symfony2" symfony2)
272272
(const :tag "PSR-2" psr2))
273-
:initialize 'custom-initialize-default)
273+
:initialize #'custom-initialize-default)
274274

275275
;; Since this function has a bad influence on the environment of many users,
276276
;; temporarily disable it
@@ -337,31 +337,31 @@ as a function. Call with AS-NUMBER keyword to compare by `version<'.
337337
;;
338338
;; Changing the default to mark-defun provides behavior that users
339339
;; are more likely to expect.
340-
(define-key map (kbd "C-M-h") 'mark-defun)
340+
(define-key map (kbd "C-M-h") #'mark-defun)
341341

342342
;; Many packages based on cc-mode provide the 'C-c C-w' binding
343343
;; to toggle Subword Mode. See the page
344344
;;
345345
;; https://www.gnu.org/software/emacs/manual/html_node/ccmode/Subword-Movement.html
346346
;;
347347
;; for more information about Subword mode.
348-
(define-key map (kbd "C-c C-w") 'subword-mode)
348+
(define-key map (kbd "C-c C-w") #'subword-mode)
349349

350350
;; We inherit c-beginning-of-defun and c-end-of-defun from CC Mode
351351
;; but we have two replacement functions specifically for PHP. We
352352
;; remap the commands themselves and not their default
353353
;; key-bindings so that our PHP-specific versions will work even
354354
;; if the user has reconfigured their keys, e.g. if they rebind
355355
;; c-end-of-defun to something other than C-M-e.
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)
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)
365365
;; Use the Emacs standard indentation binding. This may upset c-mode
366366
;; which does not follow this at the moment, but I see no better
367367
;; choice.
@@ -842,12 +842,12 @@ plain `php-mode'. To get indentation to work you must use an
842842
Emacs library that supports 'multiple major modes' in a buffer.
843843
Parts of the buffer will then be in `php-mode' and parts in for
844844
example `html-mode'. Known such libraries are:\n\t"
845-
(mapconcat 'identity known-names ", ")
845+
(mapconcat #'identity known-names ", ")
846846
"\n"
847847
(if available-multi-libs
848848
(concat
849849
"You have these available in your `load-path':\n\t"
850-
(mapconcat 'identity available-names ", ")
850+
(mapconcat #'identity available-names ", ")
851851
"\n\n"
852852
"Do you want to turn any of those on? ")
853853
"You do not have any of those in your `load-path'.")))
@@ -1230,8 +1230,8 @@ After setting the stylevars run hooks according to STYLENAME
12301230
(string-match "\\.php\\'" buffer-file-name)))
12311231
(php-set-style "pear"))
12321232

1233-
(setq indent-line-function 'php-cautious-indent-line)
1234-
(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)
12351235
(setq c-at-vsemi-p-fn #'php-c-at-vsemi-p)
12361236
(setq c-vsemi-status-unknown-p-fn #'php-c-vsemi-status-unknown-p)
12371237

@@ -1241,8 +1241,8 @@ After setting the stylevars run hooks according to STYLENAME
12411241
;; following two local variables, but we keep them for now until we
12421242
;; are completely sure their removal will not break any current
12431243
;; behavior or backwards compatibility.
1244-
(setq-local beginning-of-defun-function 'php-beginning-of-defun)
1245-
(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)
12461246

12471247
(setq-local open-paren-in-column-0-is-defun-start nil)
12481248
(setq-local defun-prompt-regexp

0 commit comments

Comments
 (0)