Fix previous define-minor-mode change

* lisp/emacs-lisp/easy-mmode.el (define-minor-mode): Fix
interactive extension in previous change.
This commit is contained in:
Lars Ingebrigtsen 2021-02-14 14:12:08 +01:00
parent ffca272678
commit 07e6b29b12

View 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)))))