]> git.eshelyaron.com Git - emacs.git/commitdiff
Really fix the syntax problem in define-minor-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 14 Feb 2021 13:13:38 +0000 (14:13 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 14 Feb 2021 13:13:38 +0000 (14:13 +0100)
* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix
interactive extension in previous change.

lisp/emacs-lisp/easy-mmode.el

index 01fb58e863ab09afba9ab8fca9472fe4ec1921c9..7e5e2a9b8a93fa0d9a1df9d076b2f73e7e952c07 100644 (file)
@@ -314,10 +314,10 @@ or call the function `%s'."))))
            ;; repeat-command still does the toggling correctly.
             (if (consp interactive)
                 `(interactive
-                  ,interactive
                   (list (if current-prefix-arg
                             (prefix-numeric-value current-prefix-arg)
-                          'toggle)))
+                          'toggle))
+                  ,@interactive)
              '(interactive (list (if current-prefix-arg
                                      (prefix-numeric-value current-prefix-arg)
                                    'toggle)))))