branch: externals/embark commit d369bb6131ed156a06168f57cb11a5faedf94c23 Author: Omar Antolín <omar.anto...@gmail.com> Commit: Omar Antolín <omar.anto...@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)