unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
blob 82b52b04008aa9b1ed821ac38479d6695144129a 853 bytes (raw)
name: gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch 	 # note: path name is non-authoritative(*)

 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'

debug log:

solving 82b52b0400 ...
found 82b52b0400 in https://yhetil.org/guix-patches/y76a66snqyx.wl-hako@ultrarare.space/

applying [1/1] https://yhetil.org/guix-patches/y76a66snqyx.wl-hako@ultrarare.space/
diff --git a/gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch b/gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch
new file mode 100644
index 0000000000..82b52b0400

1:24: trailing whitespace.
 
1:30: trailing whitespace.
 
Checking patch gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch...
Applied patch gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch cleanly.
warning: 2 lines add whitespace errors.

index at:
100644 82b52b04008aa9b1ed821ac38479d6695144129a	gnu/packages/patches/emacs-use-package-avoid-positional-arguments.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).