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

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

[elpa] 10/14: Disable ggtags-navigation-mode at the right time


From: Leo Liu
Subject: [elpa] 10/14: Disable ggtags-navigation-mode at the right time
Date: Sun, 30 Mar 2014 07:02:40 +0000

leoliu pushed a commit to branch master
in repository elpa.

commit 94d915a43841f0b47d71110973ed668e7f1d215f
Author: Leo Liu <address@hidden>
Date:   Sat Mar 29 10:54:56 2014 +0800

    Disable ggtags-navigation-mode at the right time
    
    Otherwise the *ggtags-global* buffer is not displayed until
    compilation finishes.
---
 ggtags.el |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/ggtags.el b/ggtags.el
index 3347c37..f93955b 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -1291,7 +1291,8 @@ commands `next-error' and `previous-error'.
   (cl-incf ggtags-global-output-lines
            (count-lines compilation-filter-start (point)))
   (when (and (> ggtags-global-output-lines 5) ggtags-navigation-mode)
-    (ggtags-global--display-buffer))
+    (ggtags-global--display-buffer)
+    (setq-local ggtags-navigation-mode nil))
   (when (and (eq ggtags-auto-jump-to-match 'history)
              (numberp ggtags-auto-jump-to-match-target)
              ;; `ggtags-global-output-lines' is imprecise.
@@ -1368,7 +1369,6 @@ commands `next-error' and `previous-error'.
   (add-hook 'compilation-filter-hook 'ggtags-global-filter nil 'local)
   (add-hook 'compilation-finish-functions 'ggtags-handle-single-match nil t)
   (setq-local bookmark-make-record-function #'ggtags-make-bookmark-record)
-  (setq-local ggtags-navigation-mode nil)
   (add-hook 'kill-buffer-hook (lambda () (ggtags-navigation-mode -1)) nil t))
 
 ;; NOTE: Need this to avoid putting menu items in



reply via email to

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