File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff 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 )))
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments