branch: externals/embark
commit fc9f13863c168a2c25b22a10c8f6f8a87b662ea7
Author: Omar Antolín <[email protected]>
Commit: Omar Antolín <[email protected]>

    Set next-error-last-buffer in grep export (fix #537)
---
 embark-consult.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/embark-consult.el b/embark-consult.el
index 05c467d4d4..6bd16010be 100644
--- a/embark-consult.el
+++ b/embark-consult.el
@@ -174,6 +174,8 @@ This function is meant to be added to 
`embark-collect-mode-hook'."
       (dolist (line lines) (insert line "\n"))
       (goto-char (point-min))
       (grep-mode)
+      ;; Make this buffer current for next/previous-error
+      (setq next-error-last-buffer buf)
       ;; Set up keymap before possible wgrep-setup, so that wgrep
       ;; restores our binding too when the user finishes editing.
       (use-local-map (make-composed-keymap

Reply via email to