]> code.delx.au - gnu-emacs-elpa/commitdiff
ivy.el (ivy-occur-press): Add counsel-describe-function
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 18 Mar 2016 12:40:28 +0000 (13:40 +0100)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 18 Mar 2016 12:40:28 +0000 (13:40 +0100)
and counsel-describe-variable to the current-window work-around.

Since they can switch the buffer, ensure that the occur buffer stays
active, so that the calling state ("c") still allows to quickly cycle
through all those buffers.

ivy.el

diff --git a/ivy.el b/ivy.el
index 91c80764b44c51d8c20b9709dfbb276c4074e24f..550e31d74ee97a303d64f11174e536fee30f6abc 100644 (file)
--- a/ivy.el
+++ b/ivy.el
@@ -2881,7 +2881,8 @@ EVENT gives the mouse position."
           (beginning-of-line)
           (looking-at "\\(?:./\\|    \\)\\(.*\\)$"))
     (when (memq (ivy-state-caller ivy-occur-last)
-                '(swiper counsel-git-grep counsel-grep counsel-ag))
+                '(swiper counsel-git-grep counsel-grep counsel-ag
+                  counsel-describe-function counsel-describe-variable))
       (let ((window (ivy-state-window ivy-occur-last)))
         (when (or (null (window-live-p window))
                   (equal window (selected-window)))