[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 33/38: Disable ggtags-navigation-mode in ggtags-global-rerun-sear
From: |
Leo Liu |
Subject: |
[elpa] 33/38: Disable ggtags-navigation-mode in ggtags-global-rerun-search |
Date: |
Mon, 24 Mar 2014 09:31:38 +0000 |
leoliu pushed a commit to branch master
in repository elpa.
commit 21b368599ce54687e60d89d4178cae946f9d45eb
Author: Leo Liu <address@hidden>
Date: Fri Mar 21 18:11:06 2014 +0800
Disable ggtags-navigation-mode in ggtags-global-rerun-search
---
ggtags.el | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/ggtags.el b/ggtags.el
index 8732349..6c002d8 100644
--- a/ggtags.el
+++ b/ggtags.el
@@ -896,6 +896,7 @@ Global and Emacs."
(interactive)
(let ((node (ewoc-locate ggtags-global-search-ewoc)))
(when node
+ (save)
(quit)
(ggtags-global-rerun-search-1 (cdr (ewoc-data node)))))))
(let ((m (make-sparse-keymap)))
@@ -909,6 +910,8 @@ Global and Emacs."
(define-key m "\r" #'done)
m)))
+(defvar ggtags-navigation-mode)
+
(defun ggtags-global-rerun-search ()
"Pop up a buffer to choose a past search to re-run.
@@ -921,6 +924,7 @@ Global and Emacs."
(erase-buffer)
(special-mode)
(use-local-map ggtags-global-rerun-search-map)
+ (setq-local ggtags-navigation-mode nil)
(setq truncate-lines t)
(cl-labels ((prop (s) (propertize s 'face 'minibuffer-prompt))
(pp (data)
@@ -1214,8 +1218,6 @@ Use \\[jump-to-register] to restore the search session."
(w (display-buffer 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
@@ -1379,7 +1381,7 @@ Use \\[jump-to-register] to restore the search session."
(kill-compilation))
(when (and (derived-mode-p 'ggtags-global-mode)
(get-buffer-window))
- (quit-window nil (get-buffer-window)))
+ (quit-windows-on (current-buffer)))
(and time (run-with-idle-timer time nil #'kill-buffer buf))))))
(defun ggtags-navigation-mode-done ()
- [elpa] 23/38: Simplify ggtags-save-to-register by always re-do the search, (continued)
- [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, 2014/03/24
- [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 <=
- [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
- [elpa] 38/38: Merge branch 'master' of github.com:leoliu/ggtags, Leo Liu, 2014/03/24
- [elpa] 37/38: Rename try-complete-ggtags-tag to ggtags-try-complete-tag, Leo Liu, 2014/03/24
- [elpa] 13/38: Require cl-lib and remove macro when-let, Leo Liu, 2014/03/24
- [elpa] 36/38: Doc fix: Update README.rst and doc-strings, Leo Liu, 2014/03/24
- [elpa] 35/38: Fix #40: New user variable ggtags-supress-navigation-keys, Leo Liu, 2014/03/24