[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master c626959 2/6: For #85: New variable ggtags-update-on-save
From: |
Leo Liu |
Subject: |
[elpa] master c626959 2/6: For #85: New variable ggtags-update-on-save |
Date: |
Thu, 11 Jun 2015 23:19:42 +0000 |
branch: master
commit c6269595716ad979a0b71e8591bf3b2ebed86aff
Author: Leo Liu <address@hidden>
Commit: Leo Liu <address@hidden>
For #85: New variable ggtags-update-on-save
---
README.rst | 5 +++++
ggtags.el | 10 +++++++++-
2 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/README.rst b/README.rst
index f7ed951..c499e5f 100644
--- a/README.rst
+++ b/README.rst
@@ -308,6 +308,11 @@ Integration with other packages
NEWS
~~~~
+(devel) 0.8.10
+++++++++++++++
+
+#. Tags update on save is configurable by ``ggtags-update-on-save``.
+
[2015-01-16 Fri] 0.8.9
++++++++++++++++++++++
diff --git a/ggtags.el b/ggtags.el
index 0fa8260..73c0554 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -206,6 +206,14 @@ isn't built with sqlite3 support."
:safe 'booleanp
:group 'ggtags)
+(defcustom ggtags-update-on-save t
+ "Non-nil to update tags for current buffer on saving."
+ ;; It is reported that `global --single-update' can be slow in sshfs
+ ;; directories. See https://github.com/leoliu/ggtags/issues/85.
+ :safe #'booleanp
+ :type 'boolean
+ :group 'ggtags)
+
(defcustom ggtags-global-output-format 'grep
"Global output format: path, ctags, ctags-x, grep or cscope."
:type '(choice (const path)
@@ -1937,7 +1945,7 @@ commands `next-error' and `previous-error'.
(defun ggtags-after-save-function ()
(when (ggtags-find-project)
(ggtags-project-update-mtime-maybe)
- (and buffer-file-name
+ (and buffer-file-name ggtags-update-on-save
(ggtags-update-tags-single buffer-file-name 'nowait))))
(defun ggtags-global-output (buffer cmds callback &optional cutoff)
- [elpa] master updated (30984c4 -> 1d9cd5e), Leo Liu, 2015/06/11
- [elpa] master b030ebf 1/6: Avoid repeated file-error by eldoc due to missing global, Leo Liu, 2015/06/11
- [elpa] master c626959 2/6: For #85: New variable ggtags-update-on-save,
Leo Liu <=
- [elpa] master d0b7f63 3/6: New command ggtags-explain-tags, Leo Liu, 2015/06/11
- [elpa] master 508e10c 4/6: Implement #99: New user option ggtags-sort-by-nearness, Leo Liu, 2015/06/11
- [elpa] master 9efd5f6 5/6: Doc fix, Leo Liu, 2015/06/11
- [elpa] master 1d9cd5e 6/6: Merge branch 'master' of github.com:leoliu/ggtags, Leo Liu, 2015/06/11