[bug#36906,0/2] gnu: Add emacs-mu4e-jump-to-list and emacs-mu4e-patch.
diff mbox

Message ID 87imreibui.fsf@gmx.com
State New
Headers show

Commit Message

Pierre Langlois Aug. 3, 2019, 2:04 p.m. UTC
Hello Guix!

Here are a couple of new packages that extend mu4e, notably, mu4e-patch
makes emails with patches look nice :-).

As a side-note, I wasn't able to run `guix lint`:

~~~
$ ./pre-inst-env guix lint emacs-mu4e-patch
Backtrace:macs-mu4e-patch@0.1.0-1.522da46 [refresh]...
           9 (apply-smob/1 #<catch-closure 1cab900>)
In ice-9/boot-9.scm:
    705:2  8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
    619:8  7 (_ #(#(#<directory (guile-user) 1d36140>)))
In guix/ui.scm:
  1692:12  6 (run-guix-command _ . _)
In srfi/srfi-1.scm:
    640:9  5 (for-each #<procedure 21938a0 at guix/scripts/lint.scm…> …)
In guix/scripts/lint.scm:
     57:4  4 (run-checkers _ _)
In srfi/srfi-1.scm:
    640:9  3 (for-each #<procedure 4003e60 at guix/scripts/lint.scm…> …)
In guix/scripts/lint.scm:
    64:17  2 (_ _)
In guix/lint.scm:
   1010:2  1 (check-for-updates #<package emacs-mu4e-patch@0.1.0-1.5…>)
In ice-9/boot-9.scm:
    829:9  0 (catch srfi-34 #<procedure 6c89570 at guix/lint.scm:93…> …)

ice-9/boot-9.scm:829:9: In procedure catch:
Wrong type (expecting array): ()
~~~

Does this ring any bells? Hopefully there isn't anything wrong the with
the attached emacs-mu4e-patch package definition.

Thanks,
Pierre

Comments

Ludovic Courtès Aug. 22, 2019, 3:57 p.m. UTC | #1
Hello Pierre,

Pierre Langlois <pierre.langlois@gmx.com> skribis:

> Here are a couple of new packages that extend mu4e, notably, mu4e-patch
> makes emails with patches look nice :-).

Neat, applied both!

> As a side-note, I wasn't able to run `guix lint`:
>
> ~~~
> $ ./pre-inst-env guix lint emacs-mu4e-patch
> Backtrace:macs-mu4e-patch@0.1.0-1.522da46 [refresh]...
>            9 (apply-smob/1 #<catch-closure 1cab900>)
> In ice-9/boot-9.scm:
>     705:2  8 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
> In ice-9/eval.scm:
>     619:8  7 (_ #(#(#<directory (guile-user) 1d36140>)))
> In guix/ui.scm:
>   1692:12  6 (run-guix-command _ . _)
> In srfi/srfi-1.scm:
>     640:9  5 (for-each #<procedure 21938a0 at guix/scripts/lint.scm…> …)
> In guix/scripts/lint.scm:
>      57:4  4 (run-checkers _ _)
> In srfi/srfi-1.scm:
>     640:9  3 (for-each #<procedure 4003e60 at guix/scripts/lint.scm…> …)
> In guix/scripts/lint.scm:
>     64:17  2 (_ _)
> In guix/lint.scm:
>    1010:2  1 (check-for-updates #<package emacs-mu4e-patch@0.1.0-1.5…>)
> In ice-9/boot-9.scm:
>     829:9  0 (catch srfi-34 #<procedure 6c89570 at guix/lint.scm:93…> …)
>
> ice-9/boot-9.scm:829:9: In procedure catch:
> Wrong type (expecting array): ()
> ~~~
>
> Does this ring any bells?

Yes: you’re running guile-json@1 whereas Guix now requires guile-json@3.

Thanks,
Ludo’.

Patch
diff mbox

From e037d61848069a1ac6ba5a11e81285c57c120df2 Mon Sep 17 00:00:00 2001
From: Pierre Langlois <pierre.langlois@gmx.com>
Date: Sat, 3 Aug 2019 13:29:15 +0100
Subject: [PATCH 2/2] gnu: Add emacs-mu4e-patch.

* gnu/packages/emacs-xyz.scm (emacs-mu4e-patch): New variable.
---
 gnu/packages/emacs-xyz.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 1217bf7127..4a5bdff969 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -7021,6 +7021,32 @@  automatically using existing List-ID headers in your mu database.  Just press
 automatically discovered and presented in recency order.")
       (license license:gpl3+))))

+(define-public emacs-mu4e-patch
+  (let ((commit "522da46c1653b1cacc79cde91d6534da7ae9517d")
+        (revision "1"))
+    (package
+      (name "emacs-mu4e-patch")
+      (version (git-version "0.1.0" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/seanfarley/mu4e-patch")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "10lzf3b70pk6rzdrgx0ww0gc94v0ydh9zj1gbsa20xw27ds7hmfn"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("mu" ,mu)))
+      (home-page "https://github.com/seanfarley/mu4e-patch")
+      (synopsis "Colorize patch-like emails in mu4e")
+      (description
+        "Extension for mu4e to colorize patch-like emails with diff-mode.
+This is based on Frank Terbeck's @code{gnus-article-treat-patch.el} but has
+been adapted to work with mu4e.")
+      (license license:gpl3+))))
+
 (define-public emacs-pretty-mode
   (package
     (name "emacs-pretty-mode")
--
2.22.0