From cd82d833451686db5db0513b353240b90c931a0e Mon Sep 17 00:00:00 2001 From: Akira Komamura Date: Sat, 20 Apr 2019 17:40:09 +0900 Subject: [PATCH] Use call-interactively if the callee function is a command --- ace-window.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ace-window.el b/ace-window.el index 6794f6f..ba4decc 100644 --- a/ace-window.el +++ b/ace-window.el @@ -489,7 +489,9 @@ The new frame is set to the same size as the previous frame, offset by (if (and fn description) (prog1 (setq aw-action fn) (aw-set-mode-line (format " Ace - %s" description))) - (funcall fn) + (if (commandp fn) + (call-interactively fn) + (funcall fn)) (throw 'done 'exit))) (aw-clean-up-avy-current-path) ;; Prevent any char from triggering an avy dispatch command.