GNU bug report logs - #45754
[PATCH] gnu: Add emacs-anki-editor

Previous Next

Package: guix-patches;

Reported by: Noah Evans <clonex100 <at> protonmail.com>

Date: Sun, 10 Jan 2021 06:08:02 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 45754 in the body.
You can then email your comments to 45754 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#45754; Package guix-patches. (Sun, 10 Jan 2021 06:08:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Noah Evans <clonex100 <at> protonmail.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Sun, 10 Jan 2021 06:08:02 GMT) Full text and rfc822 format available.

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

From: Noah Evans <clonex100 <at> protonmail.com>
To: "guix-patches <at> gnu.org" <guix-patches <at> gnu.org>
Subject: [PATCH] gnu: Add emacs-anki-editor
Date: Sun, 10 Jan 2021 06:07:42 +0000
[Message part 1 (text/plain, inline)]
---
gnu/packages/emacs-xyz.scm | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index c86452fe2b..f1fabd4f17 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -26423,3 +26423,32 @@ to pastebin-like services. It supports more than one service and will
failover if one service fails. More services can easily be added over time
and prefered services can easily be configured.")
(license license:gpl3+)))
+
+(define-public emacs-anki-editor
+ (let ((commit "546774a453ef4617b1bcb0d1626e415c67cc88df")
+ (revision "0")
+ (version "0.3.3"))
+ (package
+ (name "emacs-anki-editor")
+ (version (git-version version revision commit))
+ (source
+ (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/louietan/anki-editor")
+ (commit commit)))
+ (sha256
+ (base32
+ "1if610hq5j8rbjh1caw5bwbgnsn231awwxqbpwvrh966kdxzl4qf"))))
+ (build-system emacs-build-system)
+ (propagated-inputs
+ `(("emacs-request" ,emacs-request)
+ ("emacs-dash" ,emacs-dash)))
+ (home-page
+ "https://github.com/louietan/anki-editor")
+ (synopsis
+ "Minor mode for making Anki cards with org-mode")
+ (description
+ "This package is for people who use Anki as SRS but would like to
+make cards in @code{org-mode}.")
+ (license license:gpl3+))))
--
2.30.0
[Message part 2 (text/html, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#45754; Package guix-patches. (Sun, 10 Jan 2021 18:54:01 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Noah Evans via Guix-patches via <guix-patches <at> gnu.org>
Cc: 45754 <at> debbugs.gnu.org, Noah Evans <clonex100 <at> protonmail.com>
Subject: Re: [bug#45754] [PATCH] gnu: Add emacs-anki-editor
Date: Sun, 10 Jan 2021 19:53:07 +0100
Hello,

Noah Evans via Guix-patches via <guix-patches <at> gnu.org> writes:

> +(define-public emacs-anki-editor

Thank you. Some comments follow.

You did not provide a commit message. Could you provide one? For
example,

    gnu: Add emacs-anki-editor

    * gnu/packages/emacs-xyz.scm (emacs-anki-editor): New variable.

is enough.

Also, your indentation is off. Could you use, e.g., M-q in Emacs to fix
it?

> + (let ((commit "546774a453ef4617b1bcb0d1626e415c67cc88df")
> + (revision "0")
> + (version "0.3.3"))

Could you explain why you chose the latest commit instead "0.3.3"
release? It might be because that release is more than two years old.

> + (package
> + (name "emacs-anki-editor")
> + (version (git-version version revision commit))
> + (source
> + (origin
> + (method git-fetch)
> + (uri (git-reference
> + (url "https://github.com/louietan/anki-editor")
> + (commit commit)))

There's a

  (file-name (git-file-name name version))

missing here.

> + (sha256
> + (base32
> + "1if610hq5j8rbjh1caw5bwbgnsn231awwxqbpwvrh966kdxzl4qf"))))
> + (build-system emacs-build-system)
> + (propagated-inputs
> + `(("emacs-request" ,emacs-request)
> + ("emacs-dash" ,emacs-dash)))

Could you order inputs alphabetically?

> + (synopsis
> + "Minor mode for making Anki cards with org-mode")

Could you replace org-mode with Org mode?

> + (description
> + "This package is for people who use Anki as SRS but would like to
> +make cards in @code{org-mode}.")

Could you explain in the description what is a "SRS"? Also,
@code{org-mode} should become Org mode.

You can also update your copyright line at the beginning of the file.

As the last point, could you move the package elsewhere than at the end
of the file. There, it is likely to introduce a merge conflict, e.g., if
someone also submits a package there while yours is being reviewed.

Could you send an updated patch?

Regards,
-- 
Nicolas Goaziou




Information forwarded to guix-patches <at> gnu.org:
bug#45754; Package guix-patches. (Sun, 10 Jan 2021 18:54:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#45754; Package guix-patches. (Sun, 10 Jan 2021 20:34:02 GMT) Full text and rfc822 format available.

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

From: Noah Evans <clonex100 <at> protonmail.com>
To: "45754 <at> debbugs.gnu.org" <45754 <at> debbugs.gnu.org>
Subject: Re: [bug#45754] [PATCH] gnu: Add emacs-anki-editor
Date: Sun, 10 Jan 2021 20:33:49 +0000
Thank you for the feedback, here is an updated patch.

From 197ef9f0ebd4473cd9590bcbfd7d77781191c308 Mon Sep 17 00:00:00 2001
From: Noah Evans <noah <at> nevans.me>
Date: Sun, 10 Jan 2021 15:25:02 -0500
Subject: [PATCH] gnu: Add emacs-anki-editor

* gnu/packages/emacs-xyz.scm (emacs-anki-editor): New variable.
---
 gnu/packages/emacs-xyz.scm | 33 ++++++++++++++++++++++++++++++++-
 1 file changed, 32 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm
index 76cbe7e075..2a94939a3e 100644
--- a/gnu/packages/emacs-xyz.scm
+++ b/gnu/packages/emacs-xyz.scm
@@ -88,7 +88,7 @@
 ;;; Copyright © 2020 Nicolò Balzarotti <nicolo <at> nixo.xyz>
 ;;; Copyright © 2020 André A. Gomes <andremegafone <at> gmail.com>
 ;;; Copyright © 2020 Jonathan Rostran <rostranjj <at> gmail.com>
-;;; Copyright © 2020 Noah Evans <noah <at> nevans.me>
+;;; Copyright © 2020, 2021 Noah Evans <noah <at> nevans.me>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -6344,6 +6344,37 @@ drill sessions to aid in memorization.  In these sessions you are shown flash
 cards created in Org mode.")
     (license license:gpl3+)))

+(define-public emacs-anki-editor
+  ;; Last release was in 2018
+  (let ((commit "546774a453ef4617b1bcb0d1626e415c67cc88df")
+        (revision "0")
+        (version "0.3.3"))
+    (package
+      (name "emacs-anki-editor")
+      (version (git-version version revision commit))
+      (source
+       (origin
+         (method git-fetch)
+         (uri (git-reference
+               (url "https://github.com/louietan/anki-editor")
+               (commit commit)))
+         (file-name (git-file-name name version))
+         (sha256
+          (base32
+           "1if610hq5j8rbjh1caw5bwbgnsn231awwxqbpwvrh966kdxzl4qf"))))
+      (build-system emacs-build-system)
+      (propagated-inputs
+       `(("emacs-dash" ,emacs-dash)
+         ("emacs-request" ,emacs-request)))
+      (home-page
+       "https://github.com/louietan/anki-editor")
+      (synopsis
+       "Minor mode for making Anki cards with Org mode")
+      (description
+       "This package is for people who use Anki as a spaced repetition system
+(SRS) but would like to make cards in Org mode.")
+      (license license:gpl3+))))
+
 (define-public emacs-org-superstar
   (package
     (name "emacs-org-superstar")
--
2.30.0





Information forwarded to guix-patches <at> gnu.org:
bug#45754; Package guix-patches. (Tue, 12 Jan 2021 08:42:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Noah Evans via Guix-patches via <guix-patches <at> gnu.org>
Cc: 45754-done <at> debbugs.gnu.org, Noah Evans <clonex100 <at> protonmail.com>
Subject: Re: [bug#45754] [PATCH] gnu: Add emacs-anki-editor
Date: Tue, 12 Jan 2021 09:41:16 +0100
Hello,

Noah Evans via Guix-patches via <guix-patches <at> gnu.org> writes:

> Thank you for the feedback, here is an updated patch.

I applied your patch with the following changes.
> +          (base32
> +           "1if610hq5j8rbjh1caw5bwbgnsn231awwxqbpwvrh966kdxzl4qf"))))

I moved the string on the line above.

> +      (home-page
> +       "https://github.com/louietan/anki-editor")
> +      (synopsis
> +       "Minor mode for making Anki cards with Org mode")

Same in the two cases above.

Thank you!

Regards,
-- 
Nicolas Goaziou




Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Tue, 12 Jan 2021 08:42:02 GMT) Full text and rfc822 format available.

Notification sent to Noah Evans <clonex100 <at> protonmail.com>:
bug acknowledged by developer. (Tue, 12 Jan 2021 08:42:03 GMT) Full text and rfc822 format available.

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

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

Previous Next


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