1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
| | From cb90d3fa4168d7e1b2f035f4fbb0d5d08db1fbec Mon Sep 17 00:00:00 2001
From: Jonas Bernoulli <jonas@bernoul.li>
Date: Tue, 18 May 2021 15:44:34 +0200
Subject: [PATCH] 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.
---
bind-key.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/bind-key.el b/bind-key.el
index 1d611c2..9a2ddcd 100644
--- a/bind-key.el
+++ b/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'
|