[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode cb918eb5f1 076/308: Defined defvars earlier in
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode cb918eb5f1 076/308: Defined defvars earlier in file to avoid using free variables. |
Date: |
Tue, 25 Jan 2022 10:59:31 -0500 (EST) |
branch: elpa/drupal-mode
commit cb918eb5f165be75a5a8d338b1f18a05b6bf4e34
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Defined defvars earlier in file to avoid using free variables.
---
drupal-mode.el | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
diff --git a/drupal-mode.el b/drupal-mode.el
index 7228f5fdfd..b91ce28ab5 100644
--- a/drupal-mode.el
+++ b/drupal-mode.el
@@ -200,6 +200,23 @@ Include path to the executable if it is not in your $PATH."
map)
"Keymap for `drupal-drush-mode'")
+(defvar drupal-symbol-collection nil
+ "A collection or a function returning a collection of Drupal symbols.
+Used by `drupal-insert-hook' to provide completions on hooks.")
+(make-variable-buffer-local 'drupal-symbol-collection)
+
+(defvar drupal-get-function-args nil
+ "A function returning the function arguments for a Drupal function.
+Used by `drupal-insert-hook' to fill in arguments on hooks.
+
+The specified function should take two arguments: the function to
+find arguments for and the drupal major version.
+
+See `drupal-get-function-args' (slow) and
+`drupal/gtags-get-function-args' for functions returning Drupal
+function arguments.")
+(make-variable-buffer-local 'drupal-get-function-args)
+
;;;###autoload
@@ -381,22 +398,6 @@ should save your files with unix style end of line."
(?s . ,symbol))))))))
-(defvar drupal-symbol-collection nil
- "A collection or a function returning a collection of Drupal symbols.
-Used by `drupal-insert-hook' to provide completions on hooks.")
-(make-variable-buffer-local 'drupal-symbol-collection)
-
-(defvar drupal-get-function-args nil
- "A function returning the function arguments for a Drupal function.
-Used by `drupal-insert-hook' to fill in arguments on hooks.
-
-The specified function should take two arguments: the function to
-find arguments for and the drupal major version.
-
-See `drupal-get-function-args' (slow) and
-`drupal/gtags-get-function-args' for functions returning Drupal
-function arguments.")
-(make-variable-buffer-local 'drupal-get-function-args)
(define-skeleton drupal-insert-hook
"Insert Drupal hook function skeleton."
- [nongnu] elpa/drupal-mode a8d3e30000 291/308: Link to drupal.org using www prefix, (continued)
- [nongnu] elpa/drupal-mode a8d3e30000 291/308: Link to drupal.org using www prefix, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e58d96723f 297/308: Merge pull request #81 from arnested/misc-fixes-02-2020, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode ee1a24c96a 301/308: Make sure we get the actual module name even when having double extensions like .info.yml, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode efef280529 299/308: Fix some more drupal.org URL's, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 5bc4170e87 305/308: Fix byte-compiler warnings, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode e1533052ad 306/308: Merge pull request #87 from skangas/silence-byte-compiler, ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 89783165ad 225/308: Fixed wrong type argument in drupal-convert-line-ending., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 91cd3f9e2d 228/308: Added MELPA URLs to README., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 2f8ce00821 074/308: A functions args is shown in tooltip after 5 sec of idle time., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 7682fe81f5 079/308: Fixed argument tip when no window-system., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode cb918eb5f1 076/308: Defined defvars earlier in file to avoid using free variables.,
ELPA Syncer <=
- [nongnu] elpa/drupal-mode 194db27ee9 091/308: Added skeleton position at end of skeleton., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 929af1cefc 097/308: Autoload `drupal-search-url' as safe-local-variable., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 9ea0f27c0e 098/308: Made `drupal-module-name' insert module name when called interactively., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 6c76c15e7c 100/308: Added auto-insert skeleton for .install files., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode fe8717b47c 106/308: Added `css-indent-offset'., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode bd83268c5d 131/308: Add custom checker for checking CSS/JS files with phpcs., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 889fc24427 145/308: Use setq., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 2517b39f42 154/308: Added a simple `drupal-tail-drupal-debug-txt` function., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 7d29d72a62 155/308: Added function to wrap string in t()., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode a08207b0c9 161/308: Merge branch 'release/0.3.1', ELPA Syncer, 2022/01/25