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

lisp/emacs-lisp/easy-mmode.el

index 08ac8186949ad56266805ebdb4020867555d2154..01fb58e863ab09afba9ab8fca9472fe4ec1921c9 100644 (file)
@@ -313,10 +313,11 @@ or call the function `%s'."))))
            ;; Use `toggle' rather than (if ,mode 0 1) so that using
            ;; repeat-command still does the toggling correctly.
             (if (consp interactive)
-                `(command ,interactive
-                          (list (if current-prefix-arg
-                                    (prefix-numeric-value current-prefix-arg)
-                                  'toggle)))
+                `(interactive
+                  ,interactive
+                  (list (if current-prefix-arg
+                            (prefix-numeric-value current-prefix-arg)
+                          'toggle)))
              '(interactive (list (if current-prefix-arg
                                      (prefix-numeric-value current-prefix-arg)
                                    'toggle)))))