Fix 'define-globalized-minor-mode' when :variable is used

* lisp/emacs-lisp/easy-mmode.el (define-globalized-minor-mode):
Fix a typo (bug#79412).
This commit is contained in:
Eli Zaretskii 2025-09-13 22:23:12 +03:00
parent fd5d35407a
commit 83b623ea3a

View file

@ -570,7 +570,7 @@ Disable the mode if ARG is a negative number.\n\n"
(dolist (buf (buffer-list))
(with-current-buffer buf
(if ,global-mode (funcall ,turn-on-function)
(when ,mode (,mode -1)))))
(when ,MODE-variable (,mode -1)))))
,@body)
,(when predicate