From unknown Mon Aug 18 17:53:35 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#57482] [PATCH] gnu: Add emacs-org-fc. Resent-From: iyzsong@envs.net Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 30 Aug 2022 06:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57482 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57482@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166184116914239 (code B ref -1); Tue, 30 Aug 2022 06:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Aug 2022 06:32:49 +0000 Received: from localhost ([127.0.0.1]:34511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSuno-0003ha-S7 for submit@debbugs.gnu.org; Tue, 30 Aug 2022 02:32:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:39708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSunn-0003hT-Je for submit@debbugs.gnu.org; Tue, 30 Aug 2022 02:32:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSunl-0005c3-U3 for guix-patches@gnu.org; Tue, 30 Aug 2022 02:32:45 -0400 Received: from envs.net ([89.163.145.170]:34168 helo=mail.envs.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSunj-0002S1-NP for guix-patches@gnu.org; Tue, 30 Aug 2022 02:32:45 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 4A3D538A0E02; Tue, 30 Aug 2022 06:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1661841142; bh=SYoYh1eXwUcAxlhGp8ah85WkThjqOTRoVX8aLt4Lmkk=; h=From:To:Cc:Subject:Date:From; b=P92JpTbM30cj/irj962fYNnAJd/athdkHDGeW93EtxvRMSVXjHCvD15OZ1VpSAB0F AjVyZ5nCZGyWTUVdfjwmuJSz52UlBU8564q8GfAliTbMtQKYqgiQ+6qfMqupaL83Zz qziYKvBpt9r28WCuKAacuv06Bcwccxlp6tA1WxUoLVaobXmVtD4l2UIzsph/a2/GOW 25ew07ejmW2+sN6l7pJs/UyDC6dAVebYzV0u39bKs/4sO5JS6RJ1yE3WOrvn6OjE0u gp2amvlQuFQLFJquBUSHC1ywQzqpqO8WbVeIccn13jPZtQ0BcG/QL+bfSM+wD7neTy mcFTo5NxHgC6KT3ggGWip7d9DcLhIiI/yKQc2CoGXGn6/PErT/yiaLp3Mhp840DtUg kmpz2A1/xxO5THgvlIhL+1yFavFU/SwWAwi0Bus1Xx4T95F1LUZ8MgPK17DE4WKxTH zEnCLB5fcRUp79dIoJ+h0wj5GW04P9EbXugit3/1z665J4tuqPPxToBh4A6nFgTnsO vxhqCaHI0qRsf/+9Ksoz77WvcOGzwz8zMcN6PiLRVj4/0cWTUPKM0hJAF8Y0erSO1c v5jure/nRCYy/XglZORMufU2TIenu1D0vcfbmw+9cvn+z5AZ9jpdDRT4TZyeWG3dCq mYKy5G0TCtnJhG2Hi1W50SZo= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id S5MgepoR6_kq; Tue, 30 Aug 2022 06:32:19 +0000 (UTC) Received: from localhost (unknown [182.150.116.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: iyzsong@envs.net) by mail.envs.net (Postfix) with ESMTPSA; Tue, 30 Aug 2022 06:32:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 7392d543; Tue, 30 Aug 2022 06:32:16 +0000 (UTC) From: iyzsong@envs.net Date: Tue, 30 Aug 2022 14:32:13 +0800 Message-Id: <20220830063213.6058-1-iyzsong@envs.net> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=89.163.145.170; envelope-from=iyzsong@envs.net; helo=mail.envs.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) From: 宋文武 * gnu/packages/emacs-xyz.scm (emacs-org-fc): New variable. --- gnu/packages/emacs-xyz.scm | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 90ee485f1e..90d817527b 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -166,6 +166,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (gnu packages fonts) #:use-module (gnu packages freedesktop) #:use-module (gnu packages games) + #:use-module (gnu packages gawk) #:use-module (gnu packages golang) #:use-module (gnu packages guile) #:use-module (gnu packages gtk) @@ -32410,3 +32411,46 @@ (define-public emacs-vertico-posframe a Vertico extension which provides a way to pop up a frame at point to show a vertical completion UI.") (license license:gpl3+))) + +(define-public emacs-org-fc + (let ((commit "f64b5336485a42be91cfe77850c02a41575f5984") + (revision "0")) + (package + (name "emacs-org-fc") + (version (git-version "0.1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~l3kn/org-fc") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1d0a3vr09zkplclypcgpfbfd6r0h0i3g3zsqb4pcz6x239d59gd5")))) + (build-system emacs-build-system) + (propagated-inputs (list emacs-hydra)) + (inputs (list findutils gawk)) + (arguments + (list + #:include #~(list "\\.el$" "\\.awk$" "\\.org$") + #:exclude #~(list "^tests/") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'qualify-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((find (search-input-file inputs "/bin/find")) + (gawk (search-input-file inputs "/bin/gawk")) + (xargs (search-input-file inputs "/bin/xargs"))) + (substitute* "org-fc-awk.el" + (("\"find ") (string-append "\"" find " ")) + (("\"gawk ") (string-append "\"" gawk " ")) + (("\"xargs ") (string-append "\"" xargs " "))))))))) + (home-page "https://www.leonrische.me/fc/index.html") + (synopsis "Spaced Repetition System for Emacs org-mode") + (description + "Org-fc is a spaced-repetition system for Emacs' org-mode. +It allows you to mark headlines in a file as flashcards, turning pieces of +knowledge you want to learn into a question-answer test. These cards are +reviewed at regular interval. After each review, the next review interval is +calculated based on how well you remembered the contents of the card.") + (license license:gpl3+)))) -- 2.37.2 From unknown Mon Aug 18 17:53:35 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#57482] [PATCH] gnu: Add emacs-org-fc. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 03 Sep 2022 08:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57482 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57482@debbugs.gnu.org Cc: =?UTF-8?Q?=E5=AE=8B=E6=96=87=E6=AD=A6?= , 57482-done@debbugs.gnu.org, iyzsong@envs.net X-Debbugs-Original-To: iyzsong--- via Guix-patches via Received: via spool by submit@debbugs.gnu.org id=B.16621927882653 (code B ref -1); Sat, 03 Sep 2022 08:14:02 +0000 Received: (at submit) by debbugs.gnu.org; 3 Sep 2022 08:13:08 +0000 Received: from localhost ([127.0.0.1]:40915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUOH6-0000gi-HK for submit@debbugs.gnu.org; Sat, 03 Sep 2022 04:13:08 -0400 Received: from lists.gnu.org ([209.51.188.17]:51080) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUOH5-0000gV-8o for submit@debbugs.gnu.org; Sat, 03 Sep 2022 04:13:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34650) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUOH4-0004cj-Pu for guix-patches@gnu.org; Sat, 03 Sep 2022 04:13:07 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:35603) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oUOH2-0000EO-KT for guix-patches@gnu.org; Sat, 03 Sep 2022 04:13:06 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 1D513240005; Sat, 3 Sep 2022 08:12:55 +0000 (UTC) From: Nicolas Goaziou References: <20220830063213.6058-1-iyzsong@envs.net> Date: Sat, 03 Sep 2022 10:12:55 +0200 In-Reply-To: <20220830063213.6058-1-iyzsong@envs.net> (iyzsong's message of "Tue, 30 Aug 2022 14:32:13 +0800") Message-ID: <87fsh8vptk.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.193; envelope-from=mail@nicolasgoaziou.fr; helo=relay1-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.7 (--) Hello, iyzsong--- via Guix-patches via writes: > * gnu/packages/emacs-xyz.scm (emacs-org-fc): New variable. I applied your patch with the changes below. Thank you. > + (arguments > + (list > + #:include #~(list "\\.el$" "\\.awk$" "\\.org$") I used #~(cons* ... %default-include) instead. > + #:exclude #~(list "^tests/") Likewise, I used #~(cons ... %default-exclude) > + #:phases > + #~(modify-phases %standard-phases > + (add-after 'unpack 'qualify-paths > + (lambda* (#:key inputs #:allow-other-keys) > + (let ((find (search-input-file inputs "/bin/find")) > + (gawk (search-input-file inputs "/bin/gawk")) > + (xargs (search-input-file inputs "/bin/xargs"))) > + (substitute* "org-fc-awk.el" > + (("\"find ") (string-append "\"" find " ")) > + (("\"gawk ") (string-append "\"" gawk " ")) > + (("\"xargs ") (string-append "\"" xargs " "))))))))) I also activated check phase. > + (home-page "https://www.leonrische.me/fc/index.html") > + (synopsis "Spaced Repetition System for Emacs org-mode") I removed over-capitalization. Also (nitpick), I replaced org-mode with Org mode. > + (description > + "Org-fc is a spaced-repetition system for Emacs' org-mode. Ditto. Regards, -- Nicolas Goaziou From unknown Mon Aug 18 17:53:35 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: iyzsong@envs.net Subject: bug#57482: closed (Re: [bug#57482] [PATCH] gnu: Add emacs-org-fc.) Message-ID: References: <87fsh8vptk.fsf@nicolasgoaziou.fr> <20220830063213.6058-1-iyzsong@envs.net> X-Gnu-PR-Message: they-closed 57482 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 57482@debbugs.gnu.org Date: Sat, 03 Sep 2022 08:14:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1662192843-2765-1" This is a multi-part message in MIME format... ------------=_1662192843-2765-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #57482: [PATCH] gnu: Add emacs-org-fc. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 57482@debbugs.gnu.org. --=20 57482: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D57482 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1662192843-2765-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 57482-done) by debbugs.gnu.org; 3 Sep 2022 08:13:07 +0000 Received: from localhost ([127.0.0.1]:40912 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUOH5-0000gU-50 for submit@debbugs.gnu.org; Sat, 03 Sep 2022 04:13:07 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:34747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oUOH3-0000fz-Ls for 57482-done@debbugs.gnu.org; Sat, 03 Sep 2022 04:13:06 -0400 Received: (Authenticated sender: admin@nicolasgoaziou.fr) by mail.gandi.net (Postfix) with ESMTPSA id 1D513240005; Sat, 3 Sep 2022 08:12:55 +0000 (UTC) From: Nicolas Goaziou To: iyzsong--- via Guix-patches via Subject: Re: [bug#57482] [PATCH] gnu: Add emacs-org-fc. References: <20220830063213.6058-1-iyzsong@envs.net> Date: Sat, 03 Sep 2022 10:12:55 +0200 In-Reply-To: <20220830063213.6058-1-iyzsong@envs.net> (iyzsong's message of "Tue, 30 Aug 2022 14:32:13 +0800") Message-ID: <87fsh8vptk.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 57482-done Cc: =?utf-8?B?5a6L5paH5q2m?= , 57482-done@debbugs.gnu.org, iyzsong@envs.net X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Hello, iyzsong--- via Guix-patches via writes: > * gnu/packages/emacs-xyz.scm (emacs-org-fc): New variable. I applied your patch with the changes below. Thank you. > + (arguments > + (list > + #:include #~(list "\\.el$" "\\.awk$" "\\.org$") I used #~(cons* ... %default-include) instead. > + #:exclude #~(list "^tests/") Likewise, I used #~(cons ... %default-exclude) > + #:phases > + #~(modify-phases %standard-phases > + (add-after 'unpack 'qualify-paths > + (lambda* (#:key inputs #:allow-other-keys) > + (let ((find (search-input-file inputs "/bin/find")) > + (gawk (search-input-file inputs "/bin/gawk")) > + (xargs (search-input-file inputs "/bin/xargs"))) > + (substitute* "org-fc-awk.el" > + (("\"find ") (string-append "\"" find " ")) > + (("\"gawk ") (string-append "\"" gawk " ")) > + (("\"xargs ") (string-append "\"" xargs " "))))))))) I also activated check phase. > + (home-page "https://www.leonrische.me/fc/index.html") > + (synopsis "Spaced Repetition System for Emacs org-mode") I removed over-capitalization. Also (nitpick), I replaced org-mode with Org mode. > + (description > + "Org-fc is a spaced-repetition system for Emacs' org-mode. Ditto. Regards, -- Nicolas Goaziou ------------=_1662192843-2765-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 30 Aug 2022 06:32:49 +0000 Received: from localhost ([127.0.0.1]:34511 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSuno-0003ha-S7 for submit@debbugs.gnu.org; Tue, 30 Aug 2022 02:32:49 -0400 Received: from lists.gnu.org ([209.51.188.17]:39708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oSunn-0003hT-Je for submit@debbugs.gnu.org; Tue, 30 Aug 2022 02:32:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSunl-0005c3-U3 for guix-patches@gnu.org; Tue, 30 Aug 2022 02:32:45 -0400 Received: from envs.net ([89.163.145.170]:34168 helo=mail.envs.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oSunj-0002S1-NP for guix-patches@gnu.org; Tue, 30 Aug 2022 02:32:45 -0400 Received: from localhost (mail.envs.net [127.0.0.1]) by mail.envs.net (Postfix) with ESMTP id 4A3D538A0E02; Tue, 30 Aug 2022 06:32:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=envs.net; s=modoboa; t=1661841142; bh=SYoYh1eXwUcAxlhGp8ah85WkThjqOTRoVX8aLt4Lmkk=; h=From:To:Cc:Subject:Date:From; b=P92JpTbM30cj/irj962fYNnAJd/athdkHDGeW93EtxvRMSVXjHCvD15OZ1VpSAB0F AjVyZ5nCZGyWTUVdfjwmuJSz52UlBU8564q8GfAliTbMtQKYqgiQ+6qfMqupaL83Zz qziYKvBpt9r28WCuKAacuv06Bcwccxlp6tA1WxUoLVaobXmVtD4l2UIzsph/a2/GOW 25ew07ejmW2+sN6l7pJs/UyDC6dAVebYzV0u39bKs/4sO5JS6RJ1yE3WOrvn6OjE0u gp2amvlQuFQLFJquBUSHC1ywQzqpqO8WbVeIccn13jPZtQ0BcG/QL+bfSM+wD7neTy mcFTo5NxHgC6KT3ggGWip7d9DcLhIiI/yKQc2CoGXGn6/PErT/yiaLp3Mhp840DtUg kmpz2A1/xxO5THgvlIhL+1yFavFU/SwWAwi0Bus1Xx4T95F1LUZ8MgPK17DE4WKxTH zEnCLB5fcRUp79dIoJ+h0wj5GW04P9EbXugit3/1z665J4tuqPPxToBh4A6nFgTnsO vxhqCaHI0qRsf/+9Ksoz77WvcOGzwz8zMcN6PiLRVj4/0cWTUPKM0hJAF8Y0erSO1c v5jure/nRCYy/XglZORMufU2TIenu1D0vcfbmw+9cvn+z5AZ9jpdDRT4TZyeWG3dCq mYKy5G0TCtnJhG2Hi1W50SZo= X-Virus-Scanned: Debian amavisd-new at mail.envs.net Received: from mail.envs.net ([127.0.0.1]) by localhost (mail.envs.net [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id S5MgepoR6_kq; Tue, 30 Aug 2022 06:32:19 +0000 (UTC) Received: from localhost (unknown [182.150.116.135]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: iyzsong@envs.net) by mail.envs.net (Postfix) with ESMTPSA; Tue, 30 Aug 2022 06:32:19 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 7392d543; Tue, 30 Aug 2022 06:32:16 +0000 (UTC) From: iyzsong@envs.net To: guix-patches@gnu.org Subject: [PATCH] gnu: Add emacs-org-fc. Date: Tue, 30 Aug 2022 14:32:13 +0800 Message-Id: <20220830063213.6058-1-iyzsong@envs.net> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=89.163.145.170; envelope-from=iyzsong@envs.net; helo=mail.envs.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.4 (-) X-Debbugs-Envelope-To: submit Cc: =?UTF-8?q?=E5=AE=8B=E6=96=87=E6=AD=A6?= X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.4 (--) From: 宋文武 * gnu/packages/emacs-xyz.scm (emacs-org-fc): New variable. --- gnu/packages/emacs-xyz.scm | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 90ee485f1e..90d817527b 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -166,6 +166,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (gnu packages fonts) #:use-module (gnu packages freedesktop) #:use-module (gnu packages games) + #:use-module (gnu packages gawk) #:use-module (gnu packages golang) #:use-module (gnu packages guile) #:use-module (gnu packages gtk) @@ -32410,3 +32411,46 @@ (define-public emacs-vertico-posframe a Vertico extension which provides a way to pop up a frame at point to show a vertical completion UI.") (license license:gpl3+))) + +(define-public emacs-org-fc + (let ((commit "f64b5336485a42be91cfe77850c02a41575f5984") + (revision "0")) + (package + (name "emacs-org-fc") + (version (git-version "0.1.0" revision commit)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://git.sr.ht/~l3kn/org-fc") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1d0a3vr09zkplclypcgpfbfd6r0h0i3g3zsqb4pcz6x239d59gd5")))) + (build-system emacs-build-system) + (propagated-inputs (list emacs-hydra)) + (inputs (list findutils gawk)) + (arguments + (list + #:include #~(list "\\.el$" "\\.awk$" "\\.org$") + #:exclude #~(list "^tests/") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'qualify-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((find (search-input-file inputs "/bin/find")) + (gawk (search-input-file inputs "/bin/gawk")) + (xargs (search-input-file inputs "/bin/xargs"))) + (substitute* "org-fc-awk.el" + (("\"find ") (string-append "\"" find " ")) + (("\"gawk ") (string-append "\"" gawk " ")) + (("\"xargs ") (string-append "\"" xargs " "))))))))) + (home-page "https://www.leonrische.me/fc/index.html") + (synopsis "Spaced Repetition System for Emacs org-mode") + (description + "Org-fc is a spaced-repetition system for Emacs' org-mode. +It allows you to mark headlines in a file as flashcards, turning pieces of +knowledge you want to learn into a question-answer test. These cards are +reviewed at regular interval. After each review, the next review interval is +calculated based on how well you remembered the contents of the card.") + (license license:gpl3+)))) -- 2.37.2 ------------=_1662192843-2765-1--