[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/drupal-mode d9a34a4a5f 065/308: Enabled `gtags-mode` if GT
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/drupal-mode d9a34a4a5f 065/308: Enabled `gtags-mode` if GTAGS is in use. |
Date: |
Tue, 25 Jan 2022 10:59:29 -0500 (EST) |
branch: elpa/drupal-mode
commit d9a34a4a5fa5c72231c23d19ebcdc5f88e055c42
Author: Arne Jørgensen <arne@arnested.dk>
Commit: Arne Jørgensen <arne@arnested.dk>
Enabled `gtags-mode` if GTAGS is in use.
---
drupal/gtags.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drupal/gtags.el b/drupal/gtags.el
index 10355f82db..87da53f6ac 100644
--- a/drupal/gtags.el
+++ b/drupal/gtags.el
@@ -29,13 +29,15 @@
(defun drupal/gtags-enable ()
"Setup rootdir for gtags to be DRUPAL_ROOT."
- (when (boundp 'drupal-rootdir)
+ (when (and (boundp 'drupal-rootdir)
+ (file-exists-p (concat drupal-rootdir "GTAGS")))
(setq gtags-rootdir drupal-rootdir)
;; Set `drupal-symbol-collection' to a call to
;; `gtags-completing-gtags' so that inserting hooks will do
;; completion based on gtags.
- (setq drupal-symbol-collection #'(lambda() (gtags-completing-gtags "" nil
t)))))
+ (setq drupal-symbol-collection #'(lambda() (gtags-completing-gtags "" nil
t)))
+ (gtags-mode 1)))
(add-hook 'drupal-mode-hook #'drupal/gtags-enable)
- [nongnu] elpa/drupal-mode 85dabbf20a 030/308: Refactored a lot of code., (continued)
- [nongnu] elpa/drupal-mode 85dabbf20a 030/308: Refactored a lot of code., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode 74fe12bd47 033/308: Bumped version to 0.2.0., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f95aa10028 038/308: Optimized variable expansion in Makefile., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode f04ae2825d 034/308: Merge branch 'release/0.2.0', ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode c8832210b3 032/308: Documentation was rewritten and extended., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode dec5279338 041/308: Removed generated file drupal-mode.info., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode c68f560494 075/308: Fixed regexp for extracting function arguments., ELPA Syncer, 2022/01/25
- [nongnu] elpa/drupal-mode cda13dfb21 063/308: Added better bootstrapping of Drupal mode., ELPA Syncer, 2022/01/25
- [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 <=
- [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, 2022/01/25
- [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