]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix construction of interactive specification in rcirc-define-command
authorPhilip Kaludercic <philipk@posteo.net>
Mon, 14 Jun 2021 16:02:24 +0000 (18:02 +0200)
committerPhilip Kaludercic <philipk@posteo.net>
Mon, 14 Jun 2021 16:02:24 +0000 (18:02 +0200)
* rcirc.el (rcirc-define-command): Ensure that only one argument is passed.

lisp/net/rcirc.el

index 86f9ff048db82885655bdc2cb101be1a61bfa656..af054ece77265d087337e461f313bdb2f7127337 100644 (file)
@@ -2421,7 +2421,7 @@ that, an interactive form can specified."
          ,(concat documentation
                   "\n\nNote: If PROCESS or TARGET are nil, the values given"
                  "\nby `rcirc-buffer-process' and `rcirc-target' will be used.")
-         (interactive ,@interactive-spec)
+         (interactive (list ,@interactive-spec))
          (unless (if (listp ,argument)
                      (not (<= ,required (length ,argument) ,total))
                    (string-match ,regexp ,argument))