emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 72678a5 3/4: Doc fix and small tweak to ggtags-update-tags


From: Leo Liu
Subject: [elpa] master 72678a5 3/4: Doc fix and small tweak to ggtags-update-tags
Date: Wed, 03 Dec 2014 02:08:11 +0000

branch: master
commit 72678a5b4c3ed2efc96d70fac8852e28f142a6f8
Author: Leo Liu <address@hidden>
Date:   Wed Dec 3 10:03:53 2014 +0800

    Doc fix and small tweak to ggtags-update-tags
---
 README.rst |    4 ++--
 ggtags.el  |   15 +++++++++++----
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/README.rst b/README.rst
index 4e69160..832d74f 100644
--- a/README.rst
+++ b/README.rst
@@ -308,8 +308,8 @@ Integration with other packages
 NEWS
 ~~~~
 
-(devel) 0.8.8
-+++++++++++++
+[2014-12-03 Wed] 0.8.8
+++++++++++++++++++++++
 
 #. Command ``ggtags-update-tags`` now runs in the background for large
    projects (per ``ggtags-oversize-limit``) without blocking emacs.
diff --git a/ggtags.el b/ggtags.el
index b8bcb1c..52081c9 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -36,10 +36,10 @@
 ;;
 ;; All commands are available from the `Ggtags' menu in `ggtags-mode'.
 
-;;; NEWS 0.8.7 (2014-11-10):
+;;; NEWS 0.8.8 (2014-12-03):
 
-;; - New navigation command `ggtags-navigation-start-file'.
-;; - New variable `ggtags-use-sqlite3' to enable sqlite3 storage.
+;; - Command `ggtags-update-tags' now runs in the background for large
+;;   projects (per `ggtags-oversize-limit') without blocking emacs.
 ;;
 ;; See full NEWS on https://github.com/leoliu/ggtags#news
 
@@ -717,7 +717,11 @@ source trees. See Info node `(global)gtags' for details."
 
 (defun ggtags-update-tags (&optional force)
   "Update GNU Global tag database.
-Do nothing if GTAGS exceeds the oversize limit unless FORCE."
+Do nothing if GTAGS exceeds the oversize limit unless FORCE.
+
+When called interactively on large (per `ggtags-oversize-limit'
+projects, the update process runs in the background without
+blocking emacs."
   (interactive (progn
                  (ggtags-check-project)
                  ;; Mark project info expired.
@@ -727,6 +731,9 @@ Do nothing if GTAGS exceeds the oversize limit unless 
FORCE."
          (ggtags-with-current-project
            (with-display-buffer-no-window
              (with-current-buffer (compilation-start "global -u")
+               ;; A hack to fool compilation mode to display `global
+               ;; -u finished' on finish.
+               (setq mode-name "global -u")
                (add-hook 'compilation-finish-functions
                          #'ggtags-update-tags-finish nil t)))))
         ((or force (and (ggtags-find-project)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]