unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#40417] Add emacs-magit-annex
@ 2020-04-03 19:41 Christopher Lemmer Webber
  2020-04-03 22:52 ` Kyle Meyer
  0 siblings, 1 reply; 3+ messages in thread
From: Christopher Lemmer Webber @ 2020-04-03 19:41 UTC (permalink / raw)
  To: 40417


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.1: 0001-gnu-Add-emacs-magit-annex.patch --]
[-- Type: text/x-patch, Size: 1790 bytes --]

From 5d6e5c4bd7809756cba5c9f317b7814052d940ae Mon Sep 17 00:00:00 2001
From: Christopher Lemmer Webber <cwebber@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


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [bug#40417] Add emacs-magit-annex
  2020-04-03 19:41 [bug#40417] Add emacs-magit-annex Christopher Lemmer Webber
@ 2020-04-03 22:52 ` Kyle Meyer
       [not found]   ` <874ktyc4ma.fsf@dustycloud.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Meyer @ 2020-04-03 22:52 UTC (permalink / raw)
  To: Christopher Lemmer Webber; +Cc: 40417

Christopher Lemmer Webber <cwebber@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!

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [bug#40417] Add emacs-magit-annex
       [not found]   ` <874ktyc4ma.fsf@dustycloud.org>
@ 2020-04-05 16:13     ` Kyle Meyer
  0 siblings, 0 replies; 3+ messages in thread
From: Kyle Meyer @ 2020-04-05 16:13 UTC (permalink / raw)
  To: Christopher Lemmer Webber; +Cc: 40417

Christopher Lemmer Webber <cwebber@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/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-05 16:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-03 19:41 [bug#40417] Add emacs-magit-annex Christopher Lemmer Webber
2020-04-03 22:52 ` Kyle Meyer
     [not found]   ` <874ktyc4ma.fsf@dustycloud.org>
2020-04-05 16:13     ` Kyle Meyer

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).