GNU bug report logs - #53290
[PATCH] gnu: Add emacs-fennel-mode.

Previous Next

Package: guix-patches;

Reported by: Brandon Lucas <br <at> ndon.dk>

Date: Sat, 15 Jan 2022 22:24:01 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

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 53290 in the body.
You can then email your comments to 53290 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#53290; Package guix-patches. (Sat, 15 Jan 2022 22:24:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Brandon Lucas <br <at> ndon.dk>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sat, 15 Jan 2022 22:24:02 GMT) Full text and rfc822 format available.

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

From: Brandon Lucas <br <at> ndon.dk>
To: guix-patches <at> gnu.org
Cc: Brandon Lucas <br <at> ndon.dk>
Subject: [PATCH] gnu: Add emacs-fennel-mode.
Date: Sat, 15 Jan 2022 22:00:02 +0000
* gnu/packages/emacs-xyz.scm (emacs-fennel-mode): New variable.
---
 gnu/packages/emacs-xyz.scm | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c5cb07e16e..8175c48478 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -106,6 +106,7 @@
 ;;; Copyright © 2021 la snesne <lasnesne <at> lagunposprasihopre.org>
 ;;; Copyright © 2021 Brian Kubisiak <brian <at> kubisiak.com>
 ;;; Copyright © 2021, 2022 Taiju HIGASHI <higashi <at> taiju.info>
+;;; Copyright © 2022 Brandon Lucas <br <at> ndon.dk>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -29754,3 +29755,25 @@ (define-public emacs-global-tags
 wraps GNU Global calls and integration to editor using this API with
 project.el and xref.el.")
       (license license:gpl3+))))
+
+(define-public emacs-fennel-mode
+  (let ((commit "54ed0792d0ac43a2d5db39741cf070c627368419")
+        (revision "0"))
+    (package
+      (name "emacs-fennel-mode")
+      (version (git-version "0.4.1" revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://gitlab.com/technomancy/fennel-mode.git")
+               (commit commit)))
+         (sha256
+          (base32 "0dwas3ivhxdyw6njkcadc8c17cirq325cmby04qls8zkmrvlil1w"))))
+      (build-system emacs-build-system)
+      (home-page "https://gitlab.com/technomancy/fennel-mode")
+      (synopsis "Emacs major-mode for editing Fennel code")
+      (description
+       "Provides font-lock, indentation, navigation, and repl for Fennel code
+ within Emacs.")
+      (license license:gpl3+))))
--
2.34.0






Information forwarded to guix-patches <at> gnu.org:
bug#53290; Package guix-patches. (Sun, 16 Jan 2022 09:18:01 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Brandon Lucas <br <at> ndon.dk>
Cc: 53290 <at> debbugs.gnu.org
Subject: Re: [bug#53290] [PATCH] gnu: Add emacs-fennel-mode.
Date: Sun, 16 Jan 2022 10:17:16 +0100
Hello,

Brandon Lucas <br <at> ndon.dk> writes:

> * gnu/packages/emacs-xyz.scm (emacs-fennel-mode): New variable.

Thank you for this. Some comments follow.

> +(define-public emacs-fennel-mode
> +  (let ((commit "54ed0792d0ac43a2d5db39741cf070c627368419")
> +        (revision "0"))
> +    (package
> +      (name "emacs-fennel-mode")
> +      (version (git-version "0.4.1" revision commit))

The commit hash you use matches the "0.4.1" version bump. Therefore you
can drop commit and revision binding, and use "0.4.1" in the version
field.

> +      (source
> +       (origin
> +         (method git-fetch)
> +         (uri (git-reference
> +               (url "https://gitlab.com/technomancy/fennel-mode.git")

You can drop the ".git" suffix here. I think "./pre-inst-env guix lint
emacs-fennel-mode" should warn you about it.

> +               (commit commit)))

Since you dropped commit binding, this should be (commit version)

> +      (description
> +       "Provides font-lock, indentation, navigation, and repl for Fennel code
> + within Emacs.")

Descriptions are expected to be full sentences. I suggest:

  Fennel mode provides font-lock, indentation, navigation and REPL for
  Fennel code within Emacs.

Could you send an updated patch?

Regards,
-- 
Nicolas Goaziou




Information forwarded to guix-patches <at> gnu.org:
bug#53290; Package guix-patches. (Sun, 16 Jan 2022 17:08:02 GMT) Full text and rfc822 format available.

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

From: Brandon Lucas <br <at> ndon.dk>
To: 53290 <at> debbugs.gnu.org
Cc: Brandon Lucas <br <at> ndon.dk>
Subject: [PATCH v2] gnu: Add emacs-fennel-mode.
Date: Sun, 16 Jan 2022 10:50:33 +0000
* gnu/packages/emacs-xyz.scm (emacs-fennel-mode): New variable.
---

Thanks for the review. :) Here's a better commit.

 gnu/packages/emacs-xyz.scm | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c5cb07e16e..27b5c14fc5 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -106,6 +106,7 @@
 ;;; Copyright © 2021 la snesne <lasnesne <at> lagunposprasihopre.org>
 ;;; Copyright © 2021 Brian Kubisiak <brian <at> kubisiak.com>
 ;;; Copyright © 2021, 2022 Taiju HIGASHI <higashi <at> taiju.info>
+;;; Copyright © 2022 Brandon Lucas <br <at> ndon.dk>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -29754,3 +29755,23 @@ (define-public emacs-global-tags
 wraps GNU Global calls and integration to editor using this API with
 project.el and xref.el.")
       (license license:gpl3+))))
+
+(define-public emacs-fennel-mode
+  (package
+    (name "emacs-fennel-mode")
+    (version "0.4.1")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url "https://gitlab.com/technomancy/fennel-mode")
+             (commit version)))
+       (sha256
+        (base32 "0dwas3ivhxdyw6njkcadc8c17cirq325cmby04qls8zkmrvlil1w"))))
+    (build-system emacs-build-system)
+    (home-page "https://gitlab.com/technomancy/fennel-mode")
+    (synopsis "Emacs major-mode for editing Fennel code")
+    (description
+     "Fennel mode provides font-lock, indentation, navigation, and REPL for
+ Fennel code within Emacs.")
+    (license license:gpl3+)))
--
2.34.0






Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Sun, 16 Jan 2022 22:38:02 GMT) Full text and rfc822 format available.

Notification sent to Brandon Lucas <br <at> ndon.dk>:
bug acknowledged by developer. (Sun, 16 Jan 2022 22:38:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Brandon Lucas <br <at> ndon.dk>
Cc: 53290-done <at> debbugs.gnu.org
Subject: Re: [bug#53290] [PATCH v2] gnu: Add emacs-fennel-mode.
Date: Sun, 16 Jan 2022 23:37:09 +0100
Hello,

Brandon Lucas <br <at> ndon.dk> writes:

> * gnu/packages/emacs-xyz.scm (emacs-fennel-mode): New variable.

Applied, thank you!

As a side note, it is usually a bad idea to add a new package at the end
of a file, because this location is likely to introduce merge conflicts.

Regards,
-- 
Nicolas Goaziou




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 14 Feb 2022 12:24:10 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 65 days ago.

Previous Next


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