GNU bug report logs - #40635
[PATCH] gnu: Add emacs-moody.

Previous Next

Package: guix-patches;

Reported by: Alberto Eleuterio Flores Guerrero <barbanegra+guix <at> posteo.mx>

Date: Wed, 15 Apr 2020 05:06:02 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.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 40635 in the body.
You can then email your comments to 40635 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#40635; Package guix-patches. (Wed, 15 Apr 2020 05:06:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alberto Eleuterio Flores Guerrero <barbanegra+guix <at> posteo.mx>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Wed, 15 Apr 2020 05:06:02 GMT) Full text and rfc822 format available.

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

From: Alberto Eleuterio Flores Guerrero <barbanegra+guix <at> posteo.mx>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add emacs-moody.
Date: Wed, 15 Apr 2020 00:04:47 -0500
* gnu/packages/emacs-xyz.scm (emacs-moody): New variable.
---
 gnu/packages/emacs-xyz.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index a9550ee112..364cec47da 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -507,6 +507,33 @@ Alternatively the menu can be bound globally, for example:
 @code{(global-set-key [S-down-mouse-3] 'minions-minor-modes-menu)}.")
     (license license:gpl3+)))
 
+(define-public emacs-moody
+  (let ((commit "2751d36152abcc2ac1479225392182b53f1e02dd")
+        (revision "1"))
+    (package
+      (name "emacs-moody")
+      ;; version 4.0 is a bit old (2018)
+      (version (git-version "0.5.3" revision commit))
+      (source (origin
+                (method git-fetch)
+                (uri (git-reference
+                      (url "https://github.com/tarsius/moody.git")
+                      (commit commit)))
+                (file-name (git-file-name name version))
+                (sha256
+                 (base32
+                  "1xyw4l42053595r76lj8safsx6pj25as0107wd96by3h7dg9m586"))))
+      (build-system emacs-build-system)
+      (home-page "https://github.com/tarsius/moody")
+      (synopsis "Tabs and ribbons for Emacs mode-line")
+      (description
+       "@code{emacs-moody} provides utilities for displaying elements of
+the mode line as tabs and ribbons.  It also provides replacements for a few
+built-in elements.  The biggest differences to similar packages is that
+this one is much simpler and much more consistent.  When using this package,
+then only the color of the mode line changes when a window becomes in-/active.")
+      (license license:gpl3+))))
+
 (define-public emacs-treepy
   (package
     (name "emacs-treepy")
-- 
2.26.0





Information forwarded to guix-patches <at> gnu.org:
bug#40635; Package guix-patches. (Wed, 15 Apr 2020 21:19:02 GMT) Full text and rfc822 format available.

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

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: 40635 <at> debbugs.gnu.org
Subject: Re: [bug#40635] [PATCH] gnu: Add emacs-moody.
Date: Wed, 15 Apr 2020 23:18:26 +0200
[Message part 1 (text/plain, inline)]
Alberto,

Alberto Eleuterio Flores Guerrero 写道:
> * gnu/packages/emacs-xyz.scm (emacs-moody): New variable.
> ---
>  gnu/packages/emacs-xyz.scm | 27 +++++++++++++++++++++++++++
>  1 file changed, 27 insertions(+)
>
> diff --git a/gnu/packages/emacs-xyz.scm 
> b/gnu/packages/emacs-xyz.scm
> index a9550ee112..364cec47da 100644
> --- a/gnu/packages/emacs-xyz.scm
> +++ b/gnu/packages/emacs-xyz.scm
> @@ -507,6 +507,33 @@ Alternatively the menu can be bound 
> globally, for example:
>  @code{(global-set-key [S-down-mouse-3] 
>  'minions-minor-modes-menu)}.")
>      (license license:gpl3+)))
>  
> +(define-public emacs-moody
> +  (let ((commit "2751d36152abcc2ac1479225392182b53f1e02dd")
> +        (revision "1"))

There's a ‘v0.5.3’ tag so we can just use that:

 (version "0.5.3")
 (source
  (origin
    (method git-fetch)
    (uri (git-reference
          (url "https://…")
          ;; ‘Commit’ can really be any git identifier.
          (commit (string-append "v" version))))
    …))

and drop the (let …).

> +    (package
> +      (name "emacs-moody")
> +      ;; version 4.0 is a bit old (2018)

Nitpick: ;;-comments are sentences, so capitalise and end with a 
full stop.

However, IMO no comment is needed.  The top release at 
<https://github.com/tarsius/moody/releases> is 0.5.3, and I've 
grown to ignore the ‘latest release’ badge on GitHub unless there 
are reasons not to.  Too many upstreams forget to move it.

> +      (version (git-version "0.5.3" revision commit))
> +      (source (origin
> +                (method git-fetch)
> +                (uri (git-reference
> +                      (url 
> "https://github.com/tarsius/moody.git")
> +                      (commit commit)))
> +                (file-name (git-file-name name version))
> +                (sha256
> +                 (base32
> + 
> "1xyw4l42053595r76lj8safsx6pj25as0107wd96by3h7dg9m586"))))
> +      (build-system emacs-build-system)
> +      (home-page "https://github.com/tarsius/moody")
> +      (synopsis "Tabs and ribbons for Emacs mode-line")

More nitpicks: ‘…the Emacs mode line’.

> +      (description
> +       "@code{emacs-moody} provides utilities for displaying 
> elements of
> +the mode line as tabs and ribbons.  It also provides 
> replacements for a few
> +built-in elements.  The biggest differences to similar packages 
> is that

‘…difference[singular] with…’.

> +this one is much simpler and much more consistent.  When using 
> this package,

I don't know enough about other extensions to judge whether that's 
true, so I'll give it the benefit of the doubt.

In general: feel free to remove content-free marketing from 
upstream descriptions.

> +then only the color of the mode line changes when a window 
> becomes in-/active.")

You can drop ‘then’ here.  I'd write ‘(in)active’ but that might 
be purely a matter of taste.

No need to send an updated patch; I'll make above changes and push 
if that's all right with you.  I might give others time to chime 
in if I'm feeling laz^Wgenerous.

Kind regards,

T G-R

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

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Thu, 10 Sep 2020 06:51:01 GMT) Full text and rfc822 format available.

Notification sent to Alberto Eleuterio Flores Guerrero <barbanegra+guix <at> posteo.mx>:
bug acknowledged by developer. (Thu, 10 Sep 2020 06:51:02 GMT) Full text and rfc822 format available.

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

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 40635-done <at> debbugs.gnu.org
Subject: Re: [bug#40635] [PATCH] gnu: Add emacs-moody.
Date: Thu, 10 Sep 2020 08:50:18 +0200
Hi!

I went ahead and pushed the patch with the changes you proposed, Tobias
(though I just noticed I have forgotten a couple of them, oops!).

Ludo’.




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

This bug report was last modified 3 years and 198 days ago.

Previous Next


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