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

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

[elpa] externals/embark d369bb6: Respect command remappings in embark-dw


From: ELPA Syncer
Subject: [elpa] externals/embark d369bb6: Respect command remappings in embark-dwim
Date: Sat, 11 Dec 2021 11:57:16 -0500 (EST)

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

    Respect command remappings in embark-dwim
    
    This change is to make embark-dwim equivalent to embark-act RET, which
    does use the remapping.
---
 embark.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/embark.el b/embark.el
index 66f6d2c..1ec9b0b 100644
--- a/embark.el
+++ b/embark.el
@@ -2108,9 +2108,8 @@ See `embark-act' for the meaning of the prefix ARG."
                        0
                      (mod (prefix-numeric-value arg) (length targets)))
                    targets)))
-             (default-action (embark--default-action
-                              (plist-get target :type))))
-        (embark--act default-action
+             (default-action (embark--default-action (plist-get target 
:type))))
+        (embark--act (or (command-remapping default-action) default-action)
                      (if (eq default-action embark--command)
                          (embark--orig-target target)
                        target)



reply via email to

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