[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master c0aa563 112/184: ivy.el (ivy-occur): Set up next-error-fun

From: Oleh Krehel
Subject: [elpa] master c0aa563 112/184: ivy.el (ivy-occur): Set up next-error-function
Date: Wed, 16 Oct 2019 13:15:02 -0400 (EDT)

branch: master
commit c0aa563b75cbd7b47cb6859cc28dc093e90cb3dd
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-occur): Set up next-error-function
    Re #2257
 ivy.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index ccd53ff..eb6cad4 100644
--- a/ivy.el
+++ b/ivy.el
@@ -4744,7 +4744,8 @@ There is no limit on the number of *ivy-occur* buffers."
        (lambda (_)
          (pop-to-buffer buffer)
-         (setq next-error-last-buffer buffer))))))
+         (setq next-error-last-buffer buffer)
+         (setq-local next-error-function #'ivy-occur-next-error))))))
 (defun ivy-occur-revert-buffer ()
   "Refresh the buffer making it up-to date with the collection.

reply via email to

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