GNU bug report logs - #54351
[PATCH] gnu: Add emacs-xah-fly-keys.

Previous Next

Package: guix-patches;

Reported by: Jai Vetrivelan <jaivetrivelan <at> gmail.com>

Date: Sat, 12 Mar 2022 12:25:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54351 in the body.
You can then email your comments to 54351 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#54351; Package guix-patches. (Sat, 12 Mar 2022 12:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Jai Vetrivelan <jaivetrivelan <at> gmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 12 Mar 2022 12:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add emacs-xah-fly-keys.
Date: Sat, 12 Mar 2022 17:53:23 +0530
[Message part 1 (text/plain, inline)]
This patch adds the xah-fly-keys package.

[0001-gnu-Add-emacs-xah-fly-keys.patch (text/patch, inline)]
From ef13bc5df0030ada79826d77fda32a58cb03a025 Mon Sep 17 00:00:00 2001
From: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
Date: Sat, 12 Mar 2022 17:01:43 +0530
Subject: [PATCH] gnu: Add emacs-xah-fly-keys.

* gnu/packages/emacs-xyz.scm (emacs-xah-fly-keys): New variable.
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 826c2141a9..98b04d3d34 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -14078,6 +14078,29 @@ (define-public emacs-xmlgen
 conversion for Emacs Lisp.")
     (license license:gpl2+)))
 
+(define-public emacs-xah-fly-keys
+  (let ((commit "fc0d82958eb484b630e5b87adff6b670e1697f20"))
+    (package
+    (name "emacs-xah-fly-keys")
+    (version "16.14.20220304152948")
+    (source (origin
+             (method git-fetch)
+             (uri (git-reference
+                   (url "https://github.com/xahlee/xah-fly-keys")
+                   (commit commit)))
+             (file-name (git-file-name name version))
+             (sha256
+              (base32
+               "18sf3k6al00n1m36b67yzswfpj5gf14zipw5waxw0vsa10f48wm7"))))
+    (build-system emacs-build-system)
+    (home-page "http://xahlee.info/emacs/misc/ergoemacs_vi_mode.html")
+    (synopsis "Modal keybinding system for emacs, based on command frequency and
+ergonomics.")
+    (description "xah-fly-keys.el is a modal editing mode for emacs, like vi,
+but the design of key/command choice is based on command frequency statistics
+and ease-of-key score. Most frequently used commands have most easy keys.")
+    (license license:gpl2))))
+
 (define-public emacs-cdlatex
   (package
     (name "emacs-cdlatex")

base-commit: 662f1f7bbac54d5762a06862b6174977003f46b9
-- 
2.34.0

[Message part 3 (text/plain, inline)]
There's no COPYING or LICENSE file in the repository, and the emacs-lisp
file states:

┌────
│ ;; License: GPL v2. Tell your friends to buy a copy.
└────

Please let me know if this package is considered free software to be
included in Guix. Thank you.

-- 
Jai Vetrivelan
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#54351; Package guix-patches. (Sat, 12 Mar 2022 18:00:02 GMT) Full text and rfc822 format available.

Message #8 received at 54351 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Jai Vetrivelan <jaivetrivelan <at> gmail.com>, 54351 <at> debbugs.gnu.org
Subject: Re: [bug#54351] [PATCH] gnu: Add emacs-xah-fly-keys.
Date: Sat, 12 Mar 2022 18:59:31 +0100
[Message part 1 (text/plain, inline)]
Jai Vetrivelan schreef op za 12-03-2022 om 17:53 [+0530]:
> There's no COPYING or LICENSE file in the repository, and the emacs-
> lisp
> file states:
> 
> ┌────
> │ ;; License: GPL v2. Tell your friends to buy a copy.
> └────
> 
> Please let me know if this package is considered free software to be
> included in Guix. Thank you.

Emacs is GPL3+ (according to guix show).  This extension of Emacs is
GPL2-only (according to the package definition).  Seems like the author
intended it to be free software, but accidentally made a license
incompatibility?  

Additionally, IIRC, the GPL has some requirements about including a
copy of the GPL.

I assume these issue would be easy to correct by contacting upstream.

I looked a little further and saw
<https://github.com/xahlee/xah-fly-keys/issues/28>, so I guess that the
.el is just a little out-of-date.

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#54351; Package guix-patches. (Sun, 13 Mar 2022 03:04:01 GMT) Full text and rfc822 format available.

Message #11 received at 54351 <at> debbugs.gnu.org (full text, mbox):

From: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: Xah Lee <xah <at> xahlee.org>, 54351 <54351 <at> debbugs.gnu.org>
Subject: Re: [bug#54351] [PATCH] gnu: Add emacs-xah-fly-keys.
Date: Sun, 13 Mar 2022 08:33:30 +0530
[Message part 1 (text/plain, inline)]
Hello Maxime,

On 2022-03-12, 18:59 +0100, Maxime Devos <maximedevos <at> telenet.be> wrote:

> Emacs is GPL3+ (according to guix show).  This extension of Emacs is
> GPL2-only (according to the package definition). Seems like the author
> intended it to be free software, but accidentally made a license
> incompatibility?

Is there any requirement for third party elisp packages to be /gpl3-or-later/?
<https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg01069.html>
talks only about packages in the ELPA (xah-fly-keys is not a part of any
ELPA). One package in emacs-xyz.scm is /gpl2-only/, which upstream has
updated to /gpl3+/. [1]

My original concern was the second sentence of the license string.

> Additionally, IIRC, the GPL has some requirements about including a
> copy of the GPL.
>
> I assume these issue would be easy to correct by contacting upstream.
>
> I looked a little further and saw
> <https://github.com/xahlee/xah-fly-keys/issues/28>, so I guess that
> the .el is just a little out-of-date.

I have contacted the author off-list regarding clarification on license.

[1] https://github.com/rlister/org-present/pull/39

-- 
Jai Vetrivelan
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#54351; Package guix-patches. (Sun, 13 Mar 2022 09:10:02 GMT) Full text and rfc822 format available.

Message #14 received at 54351 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
Cc: Xah Lee <xah <at> xahlee.org>, 54351 <54351 <at> debbugs.gnu.org>
Subject: Re: [bug#54351] [PATCH] gnu: Add emacs-xah-fly-keys.
Date: Sun, 13 Mar 2022 10:08:59 +0100
[Message part 1 (text/plain, inline)]
Jai Vetrivelan schreef op zo 13-03-2022 om 08:33 [+0530]:
> I have contacted the author off-list regarding clarification on
> license.
> 
> [1] https://github.com/rlister/org-present/pull/39

That's for org-present, not emacs-xah-fly-keys.

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#54351; Package guix-patches. (Sun, 13 Mar 2022 09:21:01 GMT) Full text and rfc822 format available.

Message #17 received at 54351 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
Cc: Xah Lee <xah <at> xahlee.org>, 54351 <54351 <at> debbugs.gnu.org>
Subject: Re: [bug#54351] [PATCH] gnu: Add emacs-xah-fly-keys.
Date: Sun, 13 Mar 2022 10:20:43 +0100
[Message part 1 (text/plain, inline)]
Jai Vetrivelan schreef op zo 13-03-2022 om 08:33 [+0530]:
Is there any requirement for third party elisp packages to be /gpl3-
or-later/?
<https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg01069.html>

GPL-3-only should also be fine I think (at least, as long as the Emacs
in Guix isn't updated to a new Emacs that is GPL4+)).  I guess that
gpl2+ is also fine in Guix (at least for ‘old’ emacs packages that were
written with ‘old’ GPL2+ Emacen in mind, perhaps also for other
packages but I don't know the legalities of that at all) though I
recommend the authors of these packages to update anyway (just in case,
and because of <https://www.gnu.org/licenses/rms-why-gplv3.html>).

Greetings,
Maxime.

[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#54351; Package guix-patches. (Sun, 13 Mar 2022 10:49:01 GMT) Full text and rfc822 format available.

Message #20 received at 54351 <at> debbugs.gnu.org (full text, mbox):

From: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: Xah Lee <xah <at> xahlee.org>, 54351 <54351 <at> debbugs.gnu.org>
Subject: Re: [bug#54351] [PATCH] gnu: Add emacs-xah-fly-keys.
Date: Sun, 13 Mar 2022 16:18:12 +0530
[Message part 1 (text/plain, inline)]
The license of xah-fly-keys has been updated to gpl3 with commit
6e974bd21f2d42aaa6d0b331a162cb554085b72e. I think the patch can now be
applied with commit pointing to current HEAD.

On 2022-03-13, 10:08 +0100, Maxime Devos <maximedevos <at> telenet.be> wrote:

> Jai Vetrivelan schreef op zo 13-03-2022 om 08:33 [+0530]:
>> I have contacted the author off-list regarding clarification on
>> license.
>> 
>> [1] https://github.com/rlister/org-present/pull/39
>
> That's for org-present, not emacs-xah-fly-keys.

I terribly bad at footnotes, that link was meant for

“One package in emacs-xyz.scm is /gpl2-only/, which upstream has
updated to /gpl3+/. [1]”

On 2022-03-13, 10:20 +0100, Maxime Devos <maximedevos <at> telenet.be> wrote:

> Jai Vetrivelan schreef op zo 13-03-2022 om 08:33 [+0530]:
> Is there any requirement for third party elisp packages to be /gpl3-
> or-later/?
> <https://lists.gnu.org/archive/html/emacs-devel/2017-07/msg01069.html>
>
> GPL-3-only should also be fine I think (at least, as long as the Emacs
> in Guix isn't updated to a new Emacs that is GPL4+)).  I guess that
> gpl2+ is also fine in Guix (at least for ‘old’ emacs packages that were
> written with ‘old’ GPL2+ Emacen in mind, perhaps also for other
> packages but I don't know the legalities of that at all) though I
> recommend the authors of these packages to update anyway (just in case,
> and because of <https://www.gnu.org/licenses/rms-why-gplv3.html>).

I'll read the link, thanks.

Here's the updated patch:

[0001-gnu-Add-emacs-xah-fly-keys.patch (text/x-patch, inline)]
From 5448f8ff41ba12dfd5388271ea8aad9e2ff20175 Mon Sep 17 00:00:00 2001
From: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
Date: Sat, 12 Mar 2022 17:01:43 +0530
Subject: [PATCH] gnu: Add emacs-xah-fly-keys.

* gnu/packages/emacs-xyz.scm (emacs-xah-fly-keys): New variable.
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 826c2141a9..eb98fa2ef6 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -14078,6 +14078,29 @@ (define-public emacs-xmlgen
 conversion for Emacs Lisp.")
     (license license:gpl2+)))
 
+(define-public emacs-xah-fly-keys
+  (let ((commit "6e974bd21f2d42aaa6d0b331a162cb554085b72e"))
+    (package
+    (name "emacs-xah-fly-keys")
+    (version "16.14.20220313004708")
+    (source (origin
+             (method git-fetch)
+             (uri (git-reference
+                   (url "https://github.com/xahlee/xah-fly-keys")
+                   (commit commit)))
+             (file-name (git-file-name name version))
+             (sha256
+              (base32
+               "0sk9ppnqgzc1xvqjp0qfw9jm6klxzrj23hapx4y4d0lmy454vbnb"))))
+    (build-system emacs-build-system)
+    (home-page "http://xahlee.info/emacs/misc/ergoemacs_vi_mode.html")
+    (synopsis "Modal keybinding system for emacs, based on command frequency and
+ergonomics.")
+    (description "xah-fly-keys.el is a modal editing mode for emacs, like vi,
+but the design of key/command choice is based on command frequency statistics
+and ease-of-key score. Most frequently used commands have most easy keys.")
+    (license license:gpl3))))
+
 (define-public emacs-cdlatex
   (package
     (name "emacs-cdlatex")

base-commit: 662f1f7bbac54d5762a06862b6174977003f46b9
-- 
2.34.0

[Message part 3 (text/plain, inline)]
-- 
Jai Vetrivelan
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#54351; Package guix-patches. (Sun, 13 Mar 2022 11:10:02 GMT) Full text and rfc822 format available.

Message #23 received at 54351 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
Cc: Xah Lee <xah <at> xahlee.org>, 54351 <54351 <at> debbugs.gnu.org>
Subject: Re: [bug#54351] [PATCH] gnu: Add emacs-xah-fly-keys.
Date: Sun, 13 Mar 2022 12:09:41 +0100
[Message part 1 (text/plain, inline)]
Jai Vetrivelan schreef op zo 13-03-2022 om 16:18 [+0530]:
> +(define-public emacs-xah-fly-keys
> +  (let ((commit "6e974bd21f2d42aaa6d0b331a162cb554085b72e"))
> +    (package
> +    (name "emacs-xah-fly-keys")
> +    (version "16.14.20220313004708")
> +    (source (origin
> +             (method git-fetch)
> +             (uri (git-reference
> +                   (url "https://github.com/xahlee/xah-fly-keys")
> +                   (commit commit)))

'commit' is only used in one place, so the 'let' binding is not
necessary here, you could write

(git-reference
  (url "https://github.com/xahlee/xah-fly-keys")
  (commit ""6e974bd21f2d42aaa6d0b331a162cb554085b72e"))

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Tue, 07 Jun 2022 19:57:02 GMT) Full text and rfc822 format available.

Notification sent to Jai Vetrivelan <jaivetrivelan <at> gmail.com>:
bug acknowledged by developer. (Tue, 07 Jun 2022 19:57:02 GMT) Full text and rfc822 format available.

Message #28 received at 54351-done <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Jai Vetrivelan <jaivetrivelan <at> gmail.com>
Cc: 54351-done <at> debbugs.gnu.org
Subject: Re: [bug#54351] [PATCH] gnu: Add emacs-xah-fly-keys.
Date: Tue, 07 Jun 2022 21:56:29 +0200
Hello,

Jai Vetrivelan <jaivetrivelan <at> gmail.com> writes:

> This patch adds the xah-fly-keys package.

Applied with license fixed and let-binding removed, as Maxime Devos
suggested.

I also bumped it to latest release.

Thank you.

Regards,
-- 
Nicolas Goaziou




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 06 Jul 2022 11:24:08 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 288 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.