Skip to content

Commit 73a1531

Browse files
committed
Better default for drupal/emacs-drush-update-tags-after-save.
Don't set `drupal/emacs-drush-update-tags-after-save` if `gtags-auto-update` is set.
1 parent 6fbdf79 commit 73a1531

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drupal/emacs-drush.el

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
;;; drupal/emacs-drush.el --- Drupal-mode support for Drush utilities for Emacs users
22

3-
;; Copyright (C) 2012, 2013 Arne Jørgensen
3+
;; Copyright (C) 2012, 2013, 2015 Arne Jørgensen
44

55
;; Author: Arne Jørgensen <[email protected]>
66

@@ -32,7 +32,9 @@
3232
;;; Code:
3333

3434
(defcustom drupal/emacs-drush-update-tags-after-save
35-
(and drupal-drush-program
35+
(and (unless (boundp 'gtags-auto-update)
36+
gtags-auto-update)
37+
drupal-drush-program
3638
(zerop (call-process drupal-drush-program nil nil nil "help" "etags")))
3739
"Use `Drush utilities for Emacs users' to run etags/gtags after save.
3840
On `after-save-hook' run `drush etags' or `drush gtags'.

0 commit comments

Comments
 (0)