[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 06/38: Fix #34: New variable ggtags-global-always-update
From: |
Leo Liu |
Subject: |
[elpa] 06/38: Fix #34: New variable ggtags-global-always-update |
Date: |
Mon, 24 Mar 2014 09:31:32 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 70b1b7f95a313a975e35c83ab6c100ed262740cc
Author: Leo Liu <address@hidden>
Date: Wed Mar 5 10:34:04 2014 +0800
Fix #34: New variable ggtags-global-always-update
---
ggtags.el | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/ggtags.el b/ggtags.el
index 379eadc..0fe7cae 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -105,6 +105,12 @@ automatically switches to 'global --single-update'."
number)
:group 'ggtags)
+(defcustom ggtags-global-always-update nil
+ "If non-nil always update tags for current file on save."
+ :safe 'booleanp
+ :type 'boolean
+ :group 'ggtags)
+
(defcustom ggtags-project-duration 600
"Seconds to keep information of a project in memory."
:type 'number
@@ -1299,7 +1305,8 @@ Global and Emacs."
(when (ggtags-find-project)
(ggtags-project-update-mtime-maybe)
;; When oversize update on a per-save basis.
- (when (and buffer-file-name (ggtags-project-oversize-p))
+ (when (and buffer-file-name
+ (or ggtags-global-always-update (ggtags-project-oversize-p)))
(ggtags-with-current-project
(process-file "global" nil 0 nil "--single-update"
(file-relative-name buffer-file-name))))))
- [elpa] branch master updated (0601efd -> f11199d), Leo Liu, 2014/03/24
- [elpa] 02/38: Give ggtags-show-definition-function full information, Leo Liu, 2014/03/24
- [elpa] 01/38: New command ggtags-show-definition, Leo Liu, 2014/03/24
- [elpa] 08/38: Call ggtags-show-definition-function in the original buffer, Leo Liu, 2014/03/24
- [elpa] 03/38: Don't display buffer if ggtags-navigation-mode is exited, Leo Liu, 2014/03/24
- [elpa] 07/38: Fix some errors in ggtags-global-output, Leo Liu, 2014/03/24
- [elpa] 04/38: Combine ggtags-global-column and tag name search, Leo Liu, 2014/03/24
- [elpa] 06/38: Fix #34: New variable ggtags-global-always-update,
Leo Liu <=
- [elpa] 09/38: Replace ignore-errors with condition-case-unless-debug, Leo Liu, 2014/03/24
- [elpa] 10/38: Automatically use GTAGSCONF file at project root, Leo Liu, 2014/03/24
- [elpa] 05/38: Improve completion support for all tag types, Leo Liu, 2014/03/24
- [elpa] 11/38: Make last change acutally work, Leo Liu, 2014/03/24
- [elpa] 12/38: Fix compatibility for locate-dominating-file, Leo Liu, 2014/03/24
- [elpa] 14/38: Display project root directory name on mode-line, Leo Liu, 2014/03/24
- [elpa] 22/38: New command ggtags-navigation-isearch-forward, Leo Liu, 2014/03/24
- [elpa] 17/38: Fix ggtags-with-current-project to include GTAGSCONF, Leo Liu, 2014/03/24
- [elpa] 19/38: Use read-only-mode in ggtags-toggle-project-read-only, Leo Liu, 2014/03/24
- [elpa] 18/38: Fix #36: Allow customising path to global's exectuables, Leo Liu, 2014/03/24