From: Jonas Bernoulli Date: Tue, 18 May 2021 13:44:34 +0000 (+0200) Subject: Avoid positional arguments to define-minor-mode X-Git-Tag: emacs-29.0.90~1306^2~15^2~40^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4004dde6ea;p=emacs.git Avoid positional arguments to define-minor-mode Back in Emacs-21.1, `define-minor-mode' grew keyword arguments to replace its old positional arguments. Starting with Emacs-28.1 a warning will be omitted if positional arguments are still used. --- diff --git a/lisp/use-package/bind-key.el b/lisp/use-package/bind-key.el index 1d611c2933c..9a2ddcd8437 100644 --- a/lisp/use-package/bind-key.el +++ b/lisp/use-package/bind-key.el @@ -131,7 +131,8 @@ (define-minor-mode override-global-mode "A minor mode so that keymap settings override other modes." - t "") + :global t + :lighter "") ;; the keymaps in `emulation-mode-map-alists' take precedence over ;; `minor-mode-map-alist'