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

[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 ()



reply via email to

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