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

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

[elpa] externals/ace-window cd82d83 77/92: Use call-interactively if the


From: Stefan Monnier
Subject: [elpa] externals/ace-window cd82d83 77/92: Use call-interactively if the callee function is a command
Date: Wed, 17 Mar 2021 18:39:26 -0400 (EDT)

branch: externals/ace-window
commit cd82d833451686db5db0513b353240b90c931a0e
Author: Akira Komamura <akira.komamura@gmail.com>
Commit: Akira Komamura <akira.komamura@gmail.com>

    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.



reply via email to

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