[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode 6a7322f581 052/308: Optimized for byte-compile
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode 6a7322f581 052/308: Optimized for byte-compile by using #' shorthand. |
Date: |
Tue, 25 Jan 2022 10:59:22 -0500 (EST) |
branch: elpa/drupal-mode
commit 6a7322f581996bf2f70ae60a81071195123c44e3
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Optimized for byte-compile by using #' shorthand.
---
drupal-mode.el | 16 ++++++++--------
drupal/etags.el | 4 ++--
drupal/flymake-phpcs.el | 2 +-
drupal/gtags.el | 2 +-
drupal/ispell.el | 2 +-
5 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index 7957bec46c..8123ffba4c 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -146,10 +146,10 @@ Include path to the executable if it is not in your
$PATH."
(defvar drupal-mode-map
(let ((map (make-sparse-keymap)))
- (define-key map "\C-cdf" 'drupal-search-documentation)
- (define-key map "\C-cdc" 'drupal-drush-cache-clear)
- (define-key map "\C-cdih" 'drupal-insert-hook)
- (define-key map "\C-cdif" 'drupal-insert-function)
+ (define-key map "\C-cdf" #'drupal-search-documentation)
+ (define-key map "\C-cdc" #'drupal-drush-cache-clear)
+ (define-key map "\C-cdih" #'drupal-insert-hook)
+ (define-key map "\C-cdif" #'drupal-insert-function)
map)
"Keymap for `drupal-mode'")
@@ -173,12 +173,12 @@ Include path to the executable if it is not in your
$PATH."
;; Delete trailing white space.
(when (eq drupal-delete-trailing-whitespace 'always)
- (add-hook 'before-save-hook 'delete-trailing-whitespace nil t))
+ (add-hook 'before-save-hook #'delete-trailing-whitespace nil t))
(when (eq drupal-delete-trailing-whitespace 'never)
- (remove-hook 'before-save-hook 'delete-trailing-whitespace t))
+ (remove-hook 'before-save-hook #'delete-trailing-whitespace t))
;; Handle line ending and trailing white space.
- (add-hook 'before-save-hook 'drupal-convert-line-ending nil t)
+ (add-hook 'before-save-hook #'drupal-convert-line-ending nil t)
;; Stuff special for php-mode buffers.
(when (eq major-mode 'php-mode)
@@ -468,7 +468,7 @@ mode-hook, i.e.
;;;###autoload
(eval-after-load 'php-mode
- '(add-hook 'php-mode-hook 'drupal-mode-bootstrap))
+ '(add-hook 'php-mode-hook #'drupal-mode-bootstrap))
;;;###autoload
(progn
diff --git a/drupal/etags.el b/drupal/etags.el
index 540c7358e9..c250174d27 100644
--- a/drupal/etags.el
+++ b/drupal/etags.el
@@ -18,9 +18,9 @@
;; Set `drupal-symbol-collection' to `tags-completion-table' so
;; that inserting hooks will do completion based on etags.
- (setq drupal-symbol-collection 'tags-completion-table)))
+ (setq drupal-symbol-collection #'tags-completion-table)))
-(add-hook 'drupal-mode-hook 'drupal/etags-enable)
+(add-hook 'drupal-mode-hook #'drupal/etags-enable)
diff --git a/drupal/flymake-phpcs.el b/drupal/flymake-phpcs.el
index 8cfd39f1bb..40baf3bcf4 100644
--- a/drupal/flymake-phpcs.el
+++ b/drupal/flymake-phpcs.el
@@ -38,7 +38,7 @@
(add-to-list 'flymake-allowed-file-name-masks
`(,(concat "\\." (file-name-extension (buffer-file-name))
"\\'") flymake-phpcs-init))))
-(add-hook 'drupal-mode-hook 'drupal/flymake-phpcs-enable)
+(add-hook 'drupal-mode-hook #'drupal/flymake-phpcs-enable)
diff --git a/drupal/gtags.el b/drupal/gtags.el
index 6309218e42..c87e6906c1 100644
--- a/drupal/gtags.el
+++ b/drupal/gtags.el
@@ -13,7 +13,7 @@
(when (boundp 'drupal-rootdir)
(setq gtags-rootdir drupal-rootdir)))
-(add-hook 'drupal-mode-hook 'drupal/gtags-enable)
+(add-hook 'drupal-mode-hook #'drupal/gtags-enable)
diff --git a/drupal/ispell.el b/drupal/ispell.el
index 0c6701309b..49fb1f12c4 100644
--- a/drupal/ispell.el
+++ b/drupal/ispell.el
@@ -15,7 +15,7 @@ not `colour') according to
http://drupal.org/coding-standards."
(when (member "american" (ispell-valid-dictionary-list))
(setq ispell-local-dictionary "american")))
-(add-hook 'drupal-mode-hook 'drupal/ispell-enable)
+(add-hook 'drupal-mode-hook #'drupal/ispell-enable)
- [nongnu] elpa/drupal-mode 55a523b65f 046/308: No need to restart check since flymake-phpcs 1.0.4, (continued)
- [nongnu] elpa/drupal-mode 55a523b65f 046/308: No need to restart check since flymake-phpcs 1.0.4, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f02cb3d8eb 044/308: Drupal version also outside full projects., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d9a34a4a5f 065/308: Enabled `gtags-mode` if GTAGS is in use., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f491ac72b9 081/308: Redefined key bindings., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 8e19894d55 051/308: `drupal-insert-hook' got completing-read support., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode af2b2c5a76 118/308: Changed `replace-regexp-in-string` to `subst-char-in-string`., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 243db30a93 004/308: Compiled elisp should not be committed., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 21a3c7544d 049/308: Drupal menu adjusted., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d3b4c6f1e7 112/308: Added variable for GNU GLOBAL`global' command., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f150913830 050/308: Added skeletons for functions and hooks., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6a7322f581 052/308: Optimized for byte-compile by using #' shorthand.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode d0031d4c1f 056/308: Added/adjusted COPYING information., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b4496a561f 047/308: Revert parts of 55a523b65fe53ca06f429cffd91ead6ff76667d2, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode b34cc6fb8f 042/308: Ensured flymake-phpcs is run in php-mode buffers., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 88d744068c 073/308: Fixed regexp., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d23d66e624 083/308: Support `php-extras-eldoc-documentation-function'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode d73965852e 085/308: Fixed flaw in `drupal-major-version'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5c53b742fb 087/308: Improved buffer-file-name fallbacks., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e65bf476cd 090/308: Fixed module version for Drupal core modules., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 0ef0569693 088/308: Fixed keyboard shortcuts in documentation., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 767d490751 094/308: Removed `web-mode' from `auto-mode-alist'., ELPA Syncer, 2022/01/25