Skip to content

Commit 83ee02f

Browse files
committed
Renamed drupal-root' to drupal-rootdir'.
1 parent db24ec6 commit 83ee02f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

drupal-mode.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ According to http://drupal.org/coding-standards#indenting."
111111
(make-variable-buffer-local 'drupal-version)
112112
(put 'drupal-version 'safe-local-variable 'string-or-null-p)
113113

114-
(defvar drupal-root nil "Drupal project root as auto detected.")
115-
(make-variable-buffer-local 'drupal-root)
116-
(put 'drupal-root 'safe-local-variable 'string-or-null-p)
114+
(defvar drupal-rootdir nil "Drupal project rootdir as auto detected.")
115+
(make-variable-buffer-local 'drupal-rootdir)
116+
(put 'drupal-rootdir 'safe-local-variable 'string-or-null-p)
117117

118118
(defvar drupal-mode-map
119119
(let ((map (make-sparse-keymap)))
@@ -255,7 +255,7 @@ should save your files with unix style end of line."
255255
(goto-char (point-min))
256256
(when (re-search-forward "\\(define('VERSION',\\|const VERSION =\\) +'\\(.+\\)'" nil t)
257257
(dir-locals-set-class-variables 'drupal-class `((nil . ((drupal-version . ,(match-string-no-properties 2))
258-
(drupal-root . ,dir)))))
258+
(drupal-rootdir . ,dir)))))
259259
(dir-locals-set-directory-class dir 'drupal-class)))
260260
(setq drupal-version (match-string-no-properties 2))
261261
)))

drupal/etags.el

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88

99
(defun drupal/etags-enable ()
1010
"Setup TAGS file for etags if it exists in DRUPAL_ROOT."
11-
(when (and (boundp 'drupal-root)
12-
(file-exists-p (concat drupal-root "TAGS")))
13-
(setq tags-file-name (concat drupal-root "TAGS"))))
11+
(when (and (boundp 'drupal-rootdir)
12+
(file-exists-p (concat drupal-rootdir "TAGS")))
13+
(setq tags-file-name (concat drupal-rootdir "TAGS"))))
1414

1515
(add-hook 'drupal-mode-hook 'drupal/etags-enable)
1616

drupal/gtags.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
(defun drupal/gtags-enable ()
1010
"Setup rootdir for gtags to be DRUPAL_ROOT."
11-
(when (boundp 'drupal-root)
12-
(setq gtags-rootdir drupal-root)))
11+
(when (boundp 'drupal-rootdir)
12+
(setq gtags-rootdir drupal-rootdir)))
1313

1414
(add-hook 'drupal-mode-hook 'drupal/gtags-enable)
1515

0 commit comments

Comments
 (0)