all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#55165] [PATCH]: Add emacs-git-email.
@ 2022-04-28 15:30 Niklas Eklund
  2022-05-02 12:48 ` bug#55165: " Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Niklas Eklund @ 2022-04-28 15:30 UTC (permalink / raw)
  To: 55165

[-- Attachment #1: Type: text/plain, Size: 78 bytes --]

Hello,

here is a patch containing the git-email package for Emacs.

/Niklas


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: patch --]
[-- Type: text/x-patch, Size: 2246 bytes --]

From c38510bb98aae349878d63e609b1777a307221e3 Mon Sep 17 00:00:00 2001
From: Niklas Eklund <niklas.eklund@posteo.net>
Date: Thu, 28 Apr 2022 17:28:16 +0200
Subject: [PATCH] gnu: Add emacs-git-email.

* gnu/packages/emacs-xyz.scm (emacs-git-email): New variable.
---
 gnu/packages/emacs-xyz.scm | 41 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index db1663c677..5454c9e416 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -15745,6 +15745,47 @@ (define-public emacs-gitpatch
 @code{ibuffer} buffers.")
     (license license:gpl3+)))
 
+(define-public emacs-git-email
+  ;; Use latest commit since latest tagged release is missing important
+  ;; changes.
+  (let ((commit "b5ebade3a48dc0ce0c85699f25800808233c73be")
+        (revision "0"))
+    (package
+      (name "emacs-git-email")
+      (version (git-version "0.2.0" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://git.sr.ht/~yoctocell/git-email")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32 "1lk1yds7idgawnair8l3s72rgjmh80qmy4kl5wrnqvpmjrmdgvnx"))))
+      (build-system emacs-build-system)
+      (arguments
+       `(#:phases
+         (modify-phases %standard-phases
+           ;; piem is not yet packaged in Guix.
+           (add-after 'unpack 'remove-piem
+             (lambda _
+               (delete-file "git-email-piem.el")))
+           (add-before 'install 'makeinfo
+             (lambda _
+               (invoke "makeinfo" "doc/git-email.texi")))
+           )))
+      (native-inputs
+       `(("texinfo" ,texinfo)))
+      (propagated-inputs
+       `(,mu
+         ,emacs-magit
+         ,emacs-notmuch))
+      (license license:gpl3+)
+      (home-page "https://sr.ht/~yoctocell/git-email")
+      (synopsis "Format and send Git patches in Emacs")
+      (description "This package provides utilities for formatting and
+sending Git patches via Email, without leaving Emacs."))))
+
 (define-public emacs-erc-hl-nicks
   (package
     (name "emacs-erc-hl-nicks")
-- 
2.34.0


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

* bug#55165: [PATCH]: Add emacs-git-email.
  2022-04-28 15:30 [bug#55165] [PATCH]: Add emacs-git-email Niklas Eklund
@ 2022-05-02 12:48 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2022-05-02 12:48 UTC (permalink / raw)
  To: Niklas Eklund; +Cc: 55165-done

[-- Attachment #1: Type: text/plain, Size: 408 bytes --]

Hi,

Niklas Eklund <niklas.eklund@posteo.net> skribis:

>>From c38510bb98aae349878d63e609b1777a307221e3 Mon Sep 17 00:00:00 2001
> From: Niklas Eklund <niklas.eklund@posteo.net>
> Date: Thu, 28 Apr 2022 17:28:16 +0200
> Subject: [PATCH] gnu: Add emacs-git-email.
>
> * gnu/packages/emacs-xyz.scm (emacs-git-email): New variable.

Applied with the cosmetic changes below.

Thanks!

Ludo’.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 842 bytes --]

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 5454c9e416..a928ac72f1 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -15772,14 +15772,11 @@ (define-public emacs-git-email
                (delete-file "git-email-piem.el")))
            (add-before 'install 'makeinfo
              (lambda _
-               (invoke "makeinfo" "doc/git-email.texi")))
-           )))
+               (invoke "makeinfo" "doc/git-email.texi"))))))
       (native-inputs
-       `(("texinfo" ,texinfo)))
+       (list texinfo))
       (propagated-inputs
-       `(,mu
-         ,emacs-magit
-         ,emacs-notmuch))
+       (list mu emacs-magit emacs-notmuch))
       (license license:gpl3+)
       (home-page "https://sr.ht/~yoctocell/git-email")
       (synopsis "Format and send Git patches in Emacs")

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

end of thread, other threads:[~2022-05-02 12:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-28 15:30 [bug#55165] [PATCH]: Add emacs-git-email Niklas Eklund
2022-05-02 12:48 ` bug#55165: " Ludovic Courtès

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.