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

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

[elpa] externals/embark 51b5a693b5: Use region contents as input for con


From: ELPA Syncer
Subject: [elpa] externals/embark 51b5a693b5: Use region contents as input for consult search commands
Date: Mon, 27 Mar 2023 14:58:23 -0400 (EDT)

branch: externals/embark
commit 51b5a693b5fe3d573acac97cfd3ce75e0d41c187
Author: Omar Antolín Camarena <omar.antolin@gmail.com>
Commit: Omar Antolín Camarena <omar.antolin@gmail.com>

    Use region contents as input for consult search commands
    
    Honestly, I'm surprised this hadn't come up before. I have the same
    hook configured for isearch and occur.
---
 embark-consult.el | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/embark-consult.el b/embark-consult.el
index a8d222b296..253858c122 100644
--- a/embark-consult.el
+++ b/embark-consult.el
@@ -334,6 +334,8 @@ This function is meant to be added to 
`embark-collect-mode-hook'."
 
 (map-keymap
  (lambda (_key cmd)
+   (cl-pushnew 'embark--unmark-target
+               (alist-get cmd embark-pre-action-hooks))
    (cl-pushnew 'embark--allow-edit
                (alist-get cmd embark-target-injection-hooks)))
  embark-consult-search-map)



reply via email to

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