From 2441d28ad15a9a2410f8d65641961ea5b1d39782 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 24 Jul 2020 18:17:33 -0400 Subject: [PATCH] Fix wrong-number-of-args error from cmd!! macro --- core/core-lib.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/core-lib.el b/core/core-lib.el index ad87697d9..e5e257f37 100644 --- a/core/core-lib.el +++ b/core/core-lib.el @@ -258,7 +258,10 @@ aliases." (declare (doc-string 1) (pure t) (side-effect-free t)) `(lambda (arg &rest _) (interactive "P") (let ((current-prefix-arg (or ,prefix-arg arg))) - (funcall-interactively ,command ,@args)))) + (,(if args + 'funcall-interactively + 'call-interactively) + ,command ,@args)))) (defmacro cmds! (&rest branches) "Expands to a `menu-item' dispatcher for keybinds."