GNU bug report logs - #40417
Add emacs-magit-annex

Previous Next

Package: guix-patches;

Reported by: Christopher Lemmer Webber <cwebber <at> dustycloud.org>

Date: Fri, 3 Apr 2020 19:42:02 UTC

Severity: normal

Done: Christopher Lemmer Webber <cwebber <at> dustycloud.org>

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 40417 in the body.
You can then email your comments to 40417 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#40417; Package guix-patches. (Fri, 03 Apr 2020 19:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Christopher Lemmer Webber <cwebber <at> dustycloud.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Fri, 03 Apr 2020 19:42:02 GMT) Full text and rfc822 format available.

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

From: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
To: guix-patches <at> gnu.org
Subject: Add emacs-magit-annex
Date: Fri, 03 Apr 2020 15:41:27 -0400
[0001-gnu-Add-emacs-magit-annex.patch (text/x-patch, inline)]
From 5d6e5c4bd7809756cba5c9f317b7814052d940ae Mon Sep 17 00:00:00 2001
From: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
Date: Thu, 2 Apr 2020 15:03:27 -0400
Subject: [PATCH] gnu: Add emacs-magit-annex.

* gnu/packages/emacs-xyz.scm (emacs-magit-annex): New variable.
---
 gnu/packages/emacs-xyz.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 8fcc686613..5800b32084 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -448,6 +448,30 @@ these arguments.  The prototypical use is for the command to call an external
 process, passing on the arguments as command line arguments.")
     (license license:gpl3+)))
 
+(define-public emacs-magit-annex
+  (package
+    (name "emacs-magit-annex")
+    (version "1.7.1")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url "https://github.com/magit/magit-annex.git")
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "07r0d2i1hws63wfv1jys63r3lmrl4ywwi76gi7srwhzhqdr1af0n"))))
+    (build-system emacs-build-system)
+    (propagated-inputs
+     `(("emacs-magit" ,emacs-magit)
+       ("emacs-magit-popup" ,emacs-magit-popup)
+       ("transient" ,emacs-transient)))
+    (home-page "https://github.com/magit/magit-annex/")
+    (synopsis "Git-annex support for Magit")
+    (description
+     "Magit-annex adds a few git-annex operations to the Magit interface.")
+    (license license:gpl3+)))
+
 (define-public emacs-minions
   (package
     (name "emacs-minions")
-- 
2.26.0

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

Information forwarded to guix-patches <at> gnu.org:
bug#40417; Package guix-patches. (Fri, 03 Apr 2020 22:53:02 GMT) Full text and rfc822 format available.

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

From: Kyle Meyer <kyle <at> kyleam.com>
To: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
Cc: 40417 <at> debbugs.gnu.org
Subject: Re: [bug#40417] Add emacs-magit-annex
Date: Fri, 03 Apr 2020 22:52:30 +0000
Christopher Lemmer Webber <cwebber <at> dustycloud.org> writes:

> +(define-public emacs-magit-annex
> +  (package
> +    (name "emacs-magit-annex")
> +    (version "1.7.1")
> +    (source (origin
> +              (method git-fetch)
> +              (uri (git-reference
> +                    (url "https://github.com/magit/magit-annex.git")
> +                    (commit (string-append "v" version))))
> +              (file-name (git-file-name name version))
> +              (sha256
> +               (base32
> +                "07r0d2i1hws63wfv1jys63r3lmrl4ywwi76gi7srwhzhqdr1af0n"))))
> +    (build-system emacs-build-system)
> +    (propagated-inputs
> +     `(("emacs-magit" ,emacs-magit)
> +       ("emacs-magit-popup" ,emacs-magit-popup)
> +       ("transient" ,emacs-transient)))

It looks like emacs-magit uses a revision that follows the popup to
transient switch that happened after the 2.90.1 release.  Magit-annex's
master branch has been updated to work with transient and will be
released along with the next release of Magit.

So, perhaps it'd make sense to drop the emacs-magit-popup input and use
an unreleased revision here until the next release of Magit and
Magit-annex.

Thanks for packaging Magit-annex!




Information forwarded to guix-patches <at> gnu.org:
bug#40417; Package guix-patches. (Sun, 05 Apr 2020 15:52:02 GMT) Full text and rfc822 format available.

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

From: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
To: Kyle Meyer <kyle <at> kyleam.com>
Cc: 40417 <at> debbugs.gnu.org
Subject: Re: [bug#40417] Add emacs-magit-annex
Date: Sun, 05 Apr 2020 11:51:57 -0400
Kyle Meyer writes:

> Christopher Lemmer Webber <cwebber <at> dustycloud.org> writes:
>
>> +(define-public emacs-magit-annex
>> +  (package
>> +    (name "emacs-magit-annex")
>> +    (version "1.7.1")
>> +    (source (origin
>> +              (method git-fetch)
>> +              (uri (git-reference
>> +                    (url "https://github.com/magit/magit-annex.git")
>> +                    (commit (string-append "v" version))))
>> +              (file-name (git-file-name name version))
>> +              (sha256
>> +               (base32
>> +                "07r0d2i1hws63wfv1jys63r3lmrl4ywwi76gi7srwhzhqdr1af0n"))))
>> +    (build-system emacs-build-system)
>> +    (propagated-inputs
>> +     `(("emacs-magit" ,emacs-magit)
>> +       ("emacs-magit-popup" ,emacs-magit-popup)
>> +       ("transient" ,emacs-transient)))
>
> It looks like emacs-magit uses a revision that follows the popup to
> transient switch that happened after the 2.90.1 release.  Magit-annex's
> master branch has been updated to work with transient and will be
> released along with the next release of Magit.

That may explain why I had to manually insert the @ keybinding it
supposedly should have done automatically.

I'm a little confused since I haven't been following magit though.
"popup to transient switch"?

> So, perhaps it'd make sense to drop the emacs-magit-popup input and use
> an unreleased revision here until the next release of Magit and
> Magit-annex.

I think once I am unconfused I can probably do this. :)

> Thanks for packaging Magit-annex!





Information forwarded to guix-patches <at> gnu.org:
bug#40417; Package guix-patches. (Sun, 05 Apr 2020 16:14:01 GMT) Full text and rfc822 format available.

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

From: Kyle Meyer <kyle <at> kyleam.com>
To: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
Cc: 40417 <at> debbugs.gnu.org
Subject: Re: [bug#40417] Add emacs-magit-annex
Date: Sun, 05 Apr 2020 16:13:40 +0000
Christopher Lemmer Webber <cwebber <at> dustycloud.org> writes:

> Kyle Meyer writes:

>> It looks like emacs-magit uses a revision that follows the popup to
>> transient switch that happened after the 2.90.1 release.  Magit-annex's
>> master branch has been updated to work with transient and will be
>> released along with the next release of Magit.
>
> That may explain why I had to manually insert the @ keybinding it
> supposedly should have done automatically.

Correct.

> I'm a little confused since I haven't been following magit though.
> "popup to transient switch"?

Sorry, here's more context: Magit's popup interface used to be defined
with Magit-Popup.  Jonas Bernoulli wrote Transient to replace
Magit-Popup [^1].  As of 1ed3febf (Merge branch 'transient' [#3728],
2019-02-14), all of Magit's popups have been rewritten with Transient.
That change hasn't made it into a release yet, but it happened before
the revision that emacs-magit is built from.

[^1]: https://emacsair.me/2019/02/14/transient-0.1/




Information forwarded to guix-patches <at> gnu.org:
bug#40417; Package guix-patches. (Mon, 27 Apr 2020 19:12:02 GMT) Full text and rfc822 format available.

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

From: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
To: Kyle Meyer <kyle <at> kyleam.com>
Cc: 40417 <at> debbugs.gnu.org
Subject: Re: [bug#40417] Add emacs-magit-annex
Date: Mon, 27 Apr 2020 15:11:19 -0400
[Message part 1 (text/plain, inline)]
Kyle Meyer writes:

> Christopher Lemmer Webber <cwebber <at> dustycloud.org> writes:
>
>> Kyle Meyer writes:
>
>>> It looks like emacs-magit uses a revision that follows the popup to
>>> transient switch that happened after the 2.90.1 release.  Magit-annex's
>>> master branch has been updated to work with transient and will be
>>> released along with the next release of Magit.
>>
>> That may explain why I had to manually insert the @ keybinding it
>> supposedly should have done automatically.
>
> Correct.
>
>> I'm a little confused since I haven't been following magit though.
>> "popup to transient switch"?
>
> Sorry, here's more context: Magit's popup interface used to be defined
> with Magit-Popup.  Jonas Bernoulli wrote Transient to replace
> Magit-Popup [^1].  As of 1ed3febf (Merge branch 'transient' [#3728],
> 2019-02-14), all of Magit's popups have been rewritten with Transient.
> That change hasn't made it into a release yet, but it happened before
> the revision that emacs-magit is built from.
>
> [^1]: https://emacsair.me/2019/02/14/transient-0.1/

Ok, revised patch.  It works fine, though I am getting these errors:

  Compiling /gnu/store/3lc8vna2n2nhcdkfiqldg426ngjmzjnm-emacs-magit-annex-1.7.1-1.0bc9673/share/emacs/site-lisp/magit-annex-autoloads.el...

  In toplevel form:
  magit-annex-autoloads.el:10:45:Warning: reference to free variable
      ‘magit-mode-map’
  
  In end of data:
  magit-annex-autoloads.el:60:1:Warning: the function ‘transient-append-suffix’
      is not known to be defined.
  Compiling /gnu/store/3lc8vna2n2nhcdkfiqldg426ngjmzjnm-emacs-magit-annex-1.7.1-1.0bc9673/share/emacs/site-lisp/magit-annex.el...
  Loading /gnu/store/h9ihmqaf15vw70p6hxfqb4s48wwl5cn1-emacs-magit-2.90.1-3.c761d28/share/emacs/site-lisp/magit-version.el (source)...
  
  In end of data:
  magit-annex.el:834:1:Warning: the function ‘magit-log-setup-buffer’ is not
      known to be defined.
  Done (Total of 2 files compiled)

That seems strange/alarming.

Nonetheless, it seems to work fine... so not sure why we're getting that
error then.

One more question... emacs-xyz.scm seems inconsistent.  We have both of
these input styles:

      (propagated-inputs
       `(("magit" ,emacs-magit)
         ("transient" ,emacs-transient)))

      (propagated-inputs
       `(("emacs-magit" ,emacs-magit)
         ("emacs-transient" ,emacs-transient)))

The latter is more common amongst the rest of Guix... anyone have a
guess as to why we've got this variant of package input styles across
Guix's Emacs packages tho?

[0001-gnu-Add-emacs-magit-annex.patch (text/x-patch, inline)]
From 82f83b5ca6d955130f6e4a3324d54229d225556b Mon Sep 17 00:00:00 2001
From: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
Date: Thu, 2 Apr 2020 15:03:27 -0400
Subject: [PATCH] gnu: Add emacs-magit-annex.

* gnu/packages/emacs-xyz.scm (emacs-magit-annex): New variable.
---
 gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a0275cbe18..c56766047d 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -475,6 +475,31 @@ these arguments.  The prototypical use is for the command to call an external
 process, passing on the arguments as command line arguments.")
     (license license:gpl3+)))
 
+(define-public emacs-magit-annex
+  (let ((commit "0bc96737634e78ac7c7f8a3f73190531c0890914")
+        (revision "1"))
+    (package
+      (name "emacs-magit-annex")
+      (version (git-version "1.7.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/magit/magit-annex.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1lm8412n2046fz8n7rfbadyww2074lsxq0w4gm1x1alraz5im5h4"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("magit" ,emacs-magit)
+         ("transient" ,emacs-transient)))
+      (home-page "https://github.com/magit/magit-annex/")
+      (synopsis "Git-annex support for Magit")
+      (description
+       "Magit-annex adds a few git-annex operations to the Magit interface.")
+      (license license:gpl3+))))
+
 (define-public emacs-minions
   (package
     (name "emacs-minions")
-- 
2.26.0

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

Information forwarded to guix-patches <at> gnu.org:
bug#40417; Package guix-patches. (Tue, 28 Apr 2020 00:38:02 GMT) Full text and rfc822 format available.

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

From: Kyle Meyer <kyle <at> kyleam.com>
To: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
Cc: 40417 <at> debbugs.gnu.org
Subject: Re: [bug#40417] Add emacs-magit-annex
Date: Tue, 28 Apr 2020 00:37:06 +0000
Christopher Lemmer Webber <cwebber <at> dustycloud.org> writes:

> Ok, revised patch.  It works fine, though I am getting these errors:
>
>   Compiling /gnu/store/3lc8vna2n2nhcdkfiqldg426ngjmzjnm-emacs-magit-annex-1.7.1-1.0bc9673/share/emacs/site-lisp/magit-annex-autoloads.el...
>
>   In toplevel form:
>   magit-annex-autoloads.el:10:45:Warning: reference to free variable
>       ‘magit-mode-map’
>   
>   In end of data:
>   magit-annex-autoloads.el:60:1:Warning: the function ‘transient-append-suffix’
>       is not known to be defined.

Hmm, I'm not sure about these.  I thought generated -autoloads.el files
typically have a "no-byte-compile: t" in their ";; Local Variables: "
trailer.  Anyway, despite being unsightly, functionally these are fine;
those expressions are within an (eval-after-load 'magit ...), and the
referenced items will be loaded with magit.el.

>   In end of data:
>   magit-annex.el:834:1:Warning: the function ‘magit-log-setup-buffer’ is not
>       known to be defined.
>   Done (Total of 2 files compiled)
>
> That seems strange/alarming.

This one points to a real problem, though you'd only see it when calling
the command magit-annex-unused-log.  Magit renamed magit-git-log to
magit-log-setup-buffer.  Magit-annex's master tracks Magit's, so it uses
the new name, but the former is what is in the commit that Guix's Magit
is built from.  I've pushed a compatibility kludge to Magit-annex so
that it will fall back to the old name.

Could you squash this commit into your commit?

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c56766047d..b4c12f57ea 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -476,7 +476,7 @@ (define-public emacs-magit-popup
     (license license:gpl3+)))
 
 (define-public emacs-magit-annex
-  (let ((commit "0bc96737634e78ac7c7f8a3f73190531c0890914")
+  (let ((commit "ef5dce6267e9118a5eca82a22bcad0b67826c23a")
         (revision "1"))
     (package
       (name "emacs-magit-annex")
@@ -489,7 +489,7 @@ (define-public emacs-magit-annex
                 (file-name (git-file-name name version))
                 (sha256
                  (base32
-                  "1lm8412n2046fz8n7rfbadyww2074lsxq0w4gm1x1alraz5im5h4"))))
+                  "0vzkydgl889cq173zjl89g2vrddb9abc4a8gljiz3b4a7n5b1nrd"))))
       (build-system emacs-build-system)
       (propagated-inputs
        `(("magit" ,emacs-magit)




Information forwarded to guix-patches <at> gnu.org:
bug#40417; Package guix-patches. (Tue, 28 Apr 2020 14:34:01 GMT) Full text and rfc822 format available.

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

From: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
To: Kyle Meyer <kyle <at> kyleam.com>
Cc: 40417 <at> debbugs.gnu.org
Subject: Re: [bug#40417] Add emacs-magit-annex
Date: Tue, 28 Apr 2020 10:33:48 -0400
[Message part 1 (text/plain, inline)]
Kyle Meyer writes:

> This one points to a real problem, though you'd only see it when calling
> the command magit-annex-unused-log.  Magit renamed magit-git-log to
> magit-log-setup-buffer.  Magit-annex's master tracks Magit's, so it uses
> the new name, but the former is what is in the commit that Guix's Magit
> is built from.  I've pushed a compatibility kludge to Magit-annex so
> that it will fall back to the old name.
>
> Could you squash this commit into your commit?
>
> diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
> index c56766047d..b4c12f57ea 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -476,7 +476,7 @@ (define-public emacs-magit-popup
>      (license license:gpl3+)))
>  
>  (define-public emacs-magit-annex
> -  (let ((commit "0bc96737634e78ac7c7f8a3f73190531c0890914")
> +  (let ((commit "ef5dce6267e9118a5eca82a22bcad0b67826c23a")
>          (revision "1"))
>      (package
>        (name "emacs-magit-annex")
> @@ -489,7 +489,7 @@ (define-public emacs-magit-annex
>                  (file-name (git-file-name name version))
>                  (sha256
>                   (base32
> -                  "1lm8412n2046fz8n7rfbadyww2074lsxq0w4gm1x1alraz5im5h4"))))
> +                  "0vzkydgl889cq173zjl89g2vrddb9abc4a8gljiz3b4a7n5b1nrd"))))
>        (build-system emacs-build-system)
>        (propagated-inputs
>         `(("magit" ,emacs-magit)

Done.  The messages are gone, yay!

Is it good to push now then, I'd assume?

 - Chris

PS: I didn't realize you were a (the?) developer of the package I'm
submitting to Guix, and doing the review!  That's wonderful!

[0001-gnu-Add-emacs-magit-annex.patch (text/x-patch, inline)]
From 0e7c9c1236a60dbe96c7a9bc19c9e1cf2ba342e7 Mon Sep 17 00:00:00 2001
From: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
Date: Thu, 2 Apr 2020 15:03:27 -0400
Subject: [PATCH] gnu: Add emacs-magit-annex.

* gnu/packages/emacs-xyz.scm (emacs-magit-annex): New variable.
---
 gnu/packages/emacs-xyz.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a0275cbe18..b4c12f57ea 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -475,6 +475,31 @@ these arguments.  The prototypical use is for the command to call an external
 process, passing on the arguments as command line arguments.")
     (license license:gpl3+)))
 
+(define-public emacs-magit-annex
+  (let ((commit "ef5dce6267e9118a5eca82a22bcad0b67826c23a")
+        (revision "1"))
+    (package
+      (name "emacs-magit-annex")
+      (version (git-version "1.7.1" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/magit/magit-annex.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "0vzkydgl889cq173zjl89g2vrddb9abc4a8gljiz3b4a7n5b1nrd"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("magit" ,emacs-magit)
+         ("transient" ,emacs-transient)))
+      (home-page "https://github.com/magit/magit-annex/")
+      (synopsis "Git-annex support for Magit")
+      (description
+       "Magit-annex adds a few git-annex operations to the Magit interface.")
+      (license license:gpl3+))))
+
 (define-public emacs-minions
   (package
     (name "emacs-minions")
-- 
2.26.0


Information forwarded to guix-patches <at> gnu.org:
bug#40417; Package guix-patches. (Tue, 28 Apr 2020 14:48:01 GMT) Full text and rfc822 format available.

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

From: Kyle Meyer <kyle <at> kyleam.com>
To: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
Cc: 40417 <at> debbugs.gnu.org
Subject: Re: [bug#40417] Add emacs-magit-annex
Date: Tue, 28 Apr 2020 14:47:20 +0000
Christopher Lemmer Webber <cwebber <at> dustycloud.org> writes:

> Is it good to push now then, I'd assume?

Thanks for the update.  All good from my point of view.

> PS: I didn't realize you were a (the?) developer of the package I'm
> submitting to Guix, and doing the review!  That's wonderful!

:>




Reply sent to Christopher Lemmer Webber <cwebber <at> dustycloud.org>:
You have taken responsibility. (Tue, 28 Apr 2020 16:32:01 GMT) Full text and rfc822 format available.

Notification sent to Christopher Lemmer Webber <cwebber <at> dustycloud.org>:
bug acknowledged by developer. (Tue, 28 Apr 2020 16:32:02 GMT) Full text and rfc822 format available.

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

From: Christopher Lemmer Webber <cwebber <at> dustycloud.org>
To: Kyle Meyer <kyle <at> kyleam.com>
Cc: 40417-done <at> debbugs.gnu.org
Subject: Re: [bug#40417] Add emacs-magit-annex
Date: Tue, 28 Apr 2020 12:31:23 -0400
Kyle Meyer writes:

> Christopher Lemmer Webber <cwebber <at> dustycloud.org> writes:
>
>> Is it good to push now then, I'd assume?
>
> Thanks for the update.  All good from my point of view.

Yay, it's in!

>> PS: I didn't realize you were a (the?) developer of the package I'm
>> submitting to Guix, and doing the review!  That's wonderful!
>
> :>

:> :D




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

This bug report was last modified 5 years and 81 days ago.

Previous Next


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