[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 24/38: Fix thinko in "Don't display buffer if ggtags-navigation-m
From: |
Leo Liu |
Subject: |
[elpa] 24/38: Fix thinko in "Don't display buffer if ggtags-navigation-mode is exited" |
Date: |
Mon, 24 Mar 2014 09:31:36 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 754f45e413415028ff92c0fc53312f1de92c7452
Author: Leo Liu <address@hidden>
Date: Wed Mar 19 10:18:35 2014 +0800
Fix thinko in "Don't display buffer if ggtags-navigation-mode is exited"
of commit a4ba72b12124d125e49db217603c6542fbc98a5b.
Fix ggtags-handle-single-match not to display the window if
interrupted.
---
ggtags.el | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ggtags.el b/ggtags.el
index 789982a..b686eda 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -1133,7 +1133,7 @@ Use \\[jump-to-register] to restore the search session."
(replace-match ""))
(cl-incf ggtags-global-output-lines
(count-lines compilation-filter-start (point)))
- (when (and (> ggtags-global-output-lines 5) (not ggtags-navigation-mode))
+ (when (and (> ggtags-global-output-lines 5) ggtags-navigation-mode)
(ggtags-global--display-buffer))
(make-local-variable 'ggtags-global-large-output)
(when (> ggtags-global-output-lines ggtags-global-large-output)
@@ -1142,8 +1142,8 @@ Use \\[jump-to-register] to restore the search session."
(message "Output %d lines (Type `C-c C-k' to cancel)"
ggtags-global-output-lines))))
-(defun ggtags-handle-single-match (buf _how)
- (if (not (zerop ggtags-global-exit-status))
+(defun ggtags-handle-single-match (buf how)
+ (if (string-prefix-p "exited abnormally" how)
;; If exit abnormally display the buffer for inspection.
(ggtags-global--display-buffer)
(when (and ggtags-auto-jump-to-first-match
- [elpa] 14/38: Display project root directory name on mode-line, (continued)
- [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
- [elpa] 20/38: Teach ggtags-find-tag-dwim to detect #include files, Leo Liu, 2014/03/24
- [elpa] 25/38: Fix ggtags-find-project to check on the GTAGS file, Leo Liu, 2014/03/24
- [elpa] 23/38: Simplify ggtags-save-to-register by always re-do the search, Leo Liu, 2014/03/24
- [elpa] 21/38: Add new command ggtags-save-to-register for #37, Leo Liu, 2014/03/24
- [elpa] 16/38: Fix ggtags-show-definition to run in current project, Leo Liu, 2014/03/24
- [elpa] 24/38: Fix thinko in "Don't display buffer if ggtags-navigation-mode is exited",
Leo Liu <=
- [elpa] 26/38: New macro ignore-errors-unless-debug and use it, Leo Liu, 2014/03/24
- [elpa] 15/38: Small fixes to last change, Leo Liu, 2014/03/24
- [elpa] 32/38: Bind ggtags-save-to-register in ggtags-global-rerun-search-map, Leo Liu, 2014/03/24
- [elpa] 28/38: New helper ggtags-forward-to-line and use it, Leo Liu, 2014/03/24
- [elpa] 27/38: Cosmetic change: Fix indentation, Leo Liu, 2014/03/24
- [elpa] 29/38: New feature ggtags-global-restore-search for #37, Leo Liu, 2014/03/24
- [elpa] 33/38: Disable ggtags-navigation-mode in ggtags-global-rerun-search, Leo Liu, 2014/03/24
- [elpa] 31/38: Also record ggtags-process-environment in search history, Leo Liu, 2014/03/24
- [elpa] 30/38: Polish last change, Leo Liu, 2014/03/24
- [elpa] 34/38: Support search bookmarks as requested in #39, Leo Liu, 2014/03/24