leoliu pushed a commit to branch master
in repository elpa.
commit a4ba72b12124d125e49db217603c6542fbc98a5b
Author: Leo Liu <[email protected]>
Date: Tue Mar 4 03:55:11 2014 +0800
Don't display buffer if ggtags-navigation-mode is exited
or we will undo the work of ggtags-navigation-mode-done.
---
ggtags.el | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/ggtags.el b/ggtags.el
index b5dd77f..a01e286 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -1007,6 +1007,8 @@ Global and Emacs."
(w (display-buffer (current-buffer) '(nil (allow-no-window .
t)))))
(and w (compilation-set-window-height w))))))
+(defvar ggtags-navigation-mode)
+
(defun ggtags-global-filter ()
"Called from `compilation-filter-hook' (which see)."
(let ((ansi-color-apply-face-function
@@ -1023,7 +1025,7 @@ Global and Emacs."
(replace-match ""))
(incf ggtags-global-output-lines
(count-lines compilation-filter-start (point)))
- (when (> ggtags-global-output-lines 5)
+ (when (and (> ggtags-global-output-lines 5) (not ggtags-navigation-mode))
(ggtags-global--display-buffer))
(make-local-variable 'ggtags-global-large-output)
(when (> ggtags-global-output-lines ggtags-global-large-output)