[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/php-mode 2f9fa61516 04/13: Replace function name with #'fu
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/php-mode 2f9fa61516 04/13: Replace function name with #'function-form instead of 'symbol |
Date: |
Mon, 10 Apr 2023 10:03:17 -0400 (EDT) |
branch: elpa/php-mode
commit 2f9fa61516a87bd174a2060c6f631e797c1cdb5b
Author: Stefan Monnier <monnier@iro.umontreal.ca>
Commit: USAMI Kenta <tadsan@zonu.me>
Replace function name with #'function-form instead of 'symbol
---
lisp/php-mode.el | 36 ++++++++++++++++++------------------
1 file changed, 18 insertions(+), 18 deletions(-)
diff --git a/lisp/php-mode.el b/lisp/php-mode.el
index 954ca38427..b5f6d75037 100644
--- a/lisp/php-mode.el
+++ b/lisp/php-mode.el
@@ -270,7 +270,7 @@ This variable can take one of the following symbol values:
(const :tag "WordPress" wordpress)
(const :tag "Symfony2" symfony2)
(const :tag "PSR-2" psr2))
- :initialize 'custom-initialize-default)
+ :initialize #'custom-initialize-default)
;; Since this function has a bad influence on the environment of many users,
;; temporarily disable it
@@ -337,7 +337,7 @@ as a function. Call with AS-NUMBER keyword to compare by
`version<'.
;;
;; Changing the default to mark-defun provides behavior that users
;; are more likely to expect.
- (define-key map (kbd "C-M-h") 'mark-defun)
+ (define-key map (kbd "C-M-h") #'mark-defun)
;; Many packages based on cc-mode provide the 'C-c C-w' binding
;; to toggle Subword Mode. See the page
@@ -345,7 +345,7 @@ as a function. Call with AS-NUMBER keyword to compare by
`version<'.
;;
https://www.gnu.org/software/emacs/manual/html_node/ccmode/Subword-Movement.html
;;
;; for more information about Subword mode.
- (define-key map (kbd "C-c C-w") 'subword-mode)
+ (define-key map (kbd "C-c C-w") #'subword-mode)
;; We inherit c-beginning-of-defun and c-end-of-defun from CC Mode
;; but we have two replacement functions specifically for PHP. We
@@ -353,15 +353,15 @@ as a function. Call with AS-NUMBER keyword to compare by
`version<'.
;; key-bindings so that our PHP-specific versions will work even
;; if the user has reconfigured their keys, e.g. if they rebind
;; c-end-of-defun to something other than C-M-e.
- (define-key map [remap c-beginning-of-defun] 'php-beginning-of-defun)
- (define-key map [remap c-end-of-defun] 'php-end-of-defun)
- (define-key map [remap c-set-style] 'php-set-style)
-
- (define-key map [(control c) (control f)] 'php-search-documentation)
- (define-key map [(meta tab)] 'php-complete-function)
- (define-key map [(control c) (control m)] 'php-browse-manual)
- (define-key map [(control .)] 'php-show-arglist)
- (define-key map [(control c) (control r)] 'php-send-region)
+ (define-key map [remap c-beginning-of-defun] #'php-beginning-of-defun)
+ (define-key map [remap c-end-of-defun] #'php-end-of-defun)
+ (define-key map [remap c-set-style] #'php-set-style)
+
+ (define-key map [(control c) (control f)] #'php-search-documentation)
+ (define-key map [(meta tab)] #'php-complete-function)
+ (define-key map [(control c) (control m)] #'php-browse-manual)
+ (define-key map [(control .)] #'php-show-arglist)
+ (define-key map [(control c) (control r)] #'php-send-region)
;; Use the Emacs standard indentation binding. This may upset c-mode
;; which does not follow this at the moment, but I see no better
;; choice.
@@ -842,12 +842,12 @@ plain `php-mode'. To get indentation to work you must
use an
Emacs library that supports 'multiple major modes' in a buffer.
Parts of the buffer will then be in `php-mode' and parts in for
example `html-mode'. Known such libraries are:\n\t"
- (mapconcat 'identity known-names ", ")
+ (mapconcat #'identity known-names ", ")
"\n"
(if available-multi-libs
(concat
"You have these available in your `load-path':\n\t"
- (mapconcat 'identity available-names ", ")
+ (mapconcat #'identity available-names ", ")
"\n\n"
"Do you want to turn any of those on? ")
"You do not have any of those in your `load-path'.")))
@@ -1230,8 +1230,8 @@ After setting the stylevars run hooks according to
STYLENAME
(string-match "\\.php\\'" buffer-file-name)))
(php-set-style "pear"))
- (setq indent-line-function 'php-cautious-indent-line)
- (setq indent-region-function 'php-cautious-indent-region)
+ (setq indent-line-function #'php-cautious-indent-line)
+ (setq indent-region-function #'php-cautious-indent-region)
(setq c-at-vsemi-p-fn #'php-c-at-vsemi-p)
(setq c-vsemi-status-unknown-p-fn #'php-c-vsemi-status-unknown-p)
@@ -1241,8 +1241,8 @@ After setting the stylevars run hooks according to
STYLENAME
;; following two local variables, but we keep them for now until we
;; are completely sure their removal will not break any current
;; behavior or backwards compatibility.
- (setq-local beginning-of-defun-function 'php-beginning-of-defun)
- (setq-local end-of-defun-function 'php-end-of-defun)
+ (setq-local beginning-of-defun-function #'php-beginning-of-defun)
+ (setq-local end-of-defun-function #'php-end-of-defun)
(setq-local open-paren-in-column-0-is-defun-start nil)
(setq-local defun-prompt-regexp
- [nongnu] elpa/php-mode updated (47e0813079 -> 9896cccd64), ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode ca7485696f 02/13: Merge pull request #738 from emacs-php/fix/cask-source, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode dfec538042 03/13: Remove unnecessary :group 'php-mode from defcustom, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode 1e4e93c805 06/13: Merge pull request #737 from emacs-php/apply-monnier-patch, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode 06763946a0 08/13: Simplify code for style-specific hooks, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode e45117f0e2 05/13: Properly quote symbols in documentation strings, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode 9a5ace8c95 07/13: Hide CC-mode's `TAB' binding, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode e515cc9d0e 10/13: Merge pull request #739 from emacs-php/apply-monnier-patch, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode 4b03e9b956 12/13: Use syntax-propertize-precompile-rules for php-syntax-propertize-function, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode 9896cccd64 13/13: Merge pull request #740 from emacs-php/apply-monnier-patch, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode 2f9fa61516 04/13: Replace function name with #'function-form instead of 'symbol,
ELPA Syncer <=
- [nongnu] elpa/php-mode 65b8db569e 11/13: Fixed incorrect use of 'local' (nonexistent) advice, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode f8913f9a5f 01/13: Add GNU ELPA (gnu) to Cask source, ELPA Syncer, 2023/04/10
- [nongnu] elpa/php-mode 9e952d47a9 09/13: Remove unnecessary boundp guards from remove-hook call, ELPA Syncer, 2023/04/10