From patchwork Tue Mar 25 08:10:34 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cayetano Santos X-Patchwork-Id: 40809 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 7F93D27BBEA; Tue, 25 Mar 2025 08:12:36 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_VALIDITY_CERTIFIED,RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE, SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 765AC27BBE9 for ; Tue, 25 Mar 2025 08:12:35 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1twzOJ-000446-8q; Tue, 25 Mar 2025 04:12:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1twzOF-00043g-FZ for guix-patches@gnu.org; Tue, 25 Mar 2025 04:12:03 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1twzOF-0003mo-79 for guix-patches@gnu.org; Tue, 25 Mar 2025 04:12:03 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:In-Reply-To:References:Subject; bh=U8d0cOND9WywO3UM7/wQYF8uENo1rznXRJlm+zo3Qus=; b=vsH5JO1YtFz7mdVwOeAECk/ZOt/laKRgsGNBIP9/8LGslgG8PfGdbMWNOn82//WIG6IwIy97UXa+jjKxF17IlmSX2IzvreIZDu4WPui6LD+dtMQHs/lC6bVfSmp1DjDQYKixvl+2XR2dsvsPgpKgv9n99CnGF/sBNNwItmmBJmW2FCUWoC9AUBD5x8UaTqBMJcMiI0BeUU9sCPuHQI9vebkraXLV4wSLRXVvcrvvByOV1IMk6aRTjwuaLmz1thngfZcAH8e3wneDlMoEjH331FxKTlK9VKcr7Vh9AnqNqIZ0EWVmqkexDFbhI7fDTEPy1MJSp9OJB3ocxFax8gnIiQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1twzOE-0006x9-2B for guix-patches@gnu.org; Tue, 25 Mar 2025 04:12:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77185] [PATCH v4] gnu: Add emacs-bqn-mode. References: <20250322162557.9873-2-lee.p.thomp@gmail.com> In-Reply-To: <20250322162557.9873-2-lee.p.thomp@gmail.com> Resent-From: Cayetano Santos Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 Mar 2025 08:12:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 77185 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77185@debbugs.gnu.org Cc: Lee Thompson Received: via spool by 77185-submit@debbugs.gnu.org id=B77185.174289027026644 (code B ref 77185); Tue, 25 Mar 2025 08:12:02 +0000 Received: (at 77185) by debbugs.gnu.org; 25 Mar 2025 08:11:10 +0000 Received: from localhost ([127.0.0.1]:36111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1twzNM-0006ve-0K for submit@debbugs.gnu.org; Tue, 25 Mar 2025 04:11:10 -0400 Received: from confino.investici.org ([93.190.126.19]:35971) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1twzNG-0006v6-5o for 77185@debbugs.gnu.org; Tue, 25 Mar 2025 04:11:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1742890260; bh=U8d0cOND9WywO3UM7/wQYF8uENo1rznXRJlm+zo3Qus=; h=From:To:Cc:Subject:Date:From; b=u8nbTLFpHiJBykON3hS4h/sKP3ydQfgLS/aWmfG8KtQuECIRl0+JFBKfm1A0YWZT+ V5dqOnPLq1UdbA3FZvvyN34IeIG8qRzDE1kunIdm3hMGjCjVuhr4G9SfPzXGlnyyTI DdO326O8Shnl8QIPSdvwuZ1IURgC56LYlo5qAzuk= Received: from mx1.investici.org (unknown [127.0.0.1]) by confino.investici.org (Postfix) with ESMTP id 4ZMN0N0dWqz111G; Tue, 25 Mar 2025 08:11:00 +0000 (UTC) Received: from [93.190.126.19] (mx1.investici.org [93.190.126.19]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4ZMN0M6n8kz1111; Tue, 25 Mar 2025 08:10:59 +0000 (UTC) Date: Tue, 25 Mar 2025 09:10:34 +0100 Message-ID: <57141d63f3ba5a0907ba24175e74b6f3ea065ff6.1742890234.git.csantosb@inventati.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Cayetano Santos X-ACL-Warn: , Cayetano Santos via Guix-patches X-Patchwork-Original-From: Cayetano Santos via Guix-patches via From: Cayetano Santos Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches From: Lee Thompson * gnu/packages/emacs-xyz.scm (emacs-bqn-mode): New variable. Change-Id: Ibe9a32c4f8414dbc5d3bb350aa684a8f3e15c567 --- Upstream project uses dates as releases, and guix privilege releases, so no need to use revisions. gnu/packages/emacs-xyz.scm | 96 ++++++++++++++++++++++++++++---------- 1 file changed, 71 insertions(+), 25 deletions(-) base-commit: ce086e31f0f5c78be76fd228dfd7718ff6df584e -- 2.49.0 diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index f00c5e4b29..b73b6666c0 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -155,6 +155,7 @@ ;;; Copyright © 2025 Remco van 't Veer ;;; Copyright © 2025 Skylar Hill ;;; Copyright © 2025 Cayetano Santos +;;; Copyright © 2025 Lee Thompson ;;; ;;; This file is part of GNU Guix. ;;; @@ -487,6 +488,51 @@ (define-public emacs-bookmark-plus reading the extensive documentation about BookmarkPlus on the Emacs Wiki.") (license license:gpl3+))) +(define-public emacs-bqn-mode + (package + (name "emacs-bqn-mode") + ;; upstream releases are tagged by date + (version "2024-09-10") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/museoa/bqn-mode/") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0a4whlx8065c15nfyqy8176mwysnc13z4q7mmdfnf6skdnvi2pk6")))) + (build-system emacs-build-system) + (arguments + (list + #:tests? #f ;No tests found in source + #:phases + #~(modify-phases %standard-phases + ;; `bqn-comint-bring' in `bqn-mode.el' uses the macro + ;; `thread-last', defined in `subr-x.el' but not autoloaded. + ;; `emacs-build-system' will happily byte-compile `bqn-mode.el' + ;; but interactively calling `bqn-comint-bring' will cause an + ;; error. An explicit call to `(require 'subr-x)' remedies the + ;; issue until it is fixed upstream. + (add-after 'unpack 'require-subr-x + (lambda _ + (emacs-batch-edit-file "bqn-mode.el" + '(progn (goto-char (point-min)) + (re-search-forward + "(require 'pulse)") + (forward-line) + (insert "(require 'subr-x)\n") + (basic-save-buffer)))))))) + (propagated-inputs (list emacs-compat)) + (synopsis "Emacs major mode for the BQN programming language") + (description + "This package provides a major mode for editing and executing BQN code. +It can be used to interactively evaluate BQN code in buffer or can be used to +launch BQN REPL sessions. For evaluating BQN code or spawning interpreters an +executable implementation is required such as @code{cbqn} or @code{dbqn}.") + (home-page "https://github.com/museoa/bqn-mode/") + (license license:gpl3))) + (define-public emacs-cfrs (package (name "emacs-cfrs") @@ -3142,13 +3188,13 @@ (define-public emacs-fb2-reader (version "0.1.1") (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/jumper047/fb2-reader") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "0vx4b9wnmx1bng8wak5r7yryyvgib4m46l6b877xzkdhsjr3rbsi")))) + (method git-fetch) + (uri (git-reference + (url "https://github.com/jumper047/fb2-reader") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0vx4b9wnmx1bng8wak5r7yryyvgib4m46l6b877xzkdhsjr3rbsi")))) (build-system emacs-build-system) (arguments (list @@ -26583,19 +26629,19 @@ (define-public emacs-pulseaudio-control (define-public emacs-smudge (let ((commit "4a9c5b34e9bc0a694d0faf8c2f83dc244b8b6a2f") - (revision "1")) + (revision "1")) (package (name "emacs-smudge") (version (git-version "1.0.0" revision commit)) (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/danielfm/smudge") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 - "1xiqxw87sdk9mgy7fdbmzqaf58dc1grhkigirg1bd0b2q5kbnbwx")))) + (method git-fetch) + (uri (git-reference + (url "https://github.com/danielfm/smudge") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1xiqxw87sdk9mgy7fdbmzqaf58dc1grhkigirg1bd0b2q5kbnbwx")))) (build-system emacs-build-system) (propagated-inputs (list emacs-oauth2 emacs-request emacs-simple-httpd)) (home-page "https://github.com/danielfm/smudge") @@ -37239,7 +37285,7 @@ (define-public emacs-ssh-deploy (uri (string-append "https://elpa.gnu.org/packages/ssh-deploy-" version ".tar")) (sha256 - (base32 "0fb88l3270d7l808q8x16zcvjgsjbyhgifgv17syfsj0ja63x28p")))) + (base32 "0fb88l3270d7l808q8x16zcvjgsjbyhgifgv17syfsj0ja63x28p")))) (build-system emacs-build-system) (home-page "https://github.com/cjohansson/emacs-ssh-deploy") (synopsis "Deployment via Tramp, global or per directory") @@ -43112,19 +43158,19 @@ (define-public emacs-window-tool-bar (define-public emacs-tintin-mode (let ((commit "82e71e1db92ee3d94c7d0208bafc5de337193de8") - (revision "1")) + (revision "1")) (package (name "emacs-tintin-mode") (version (git-version "1.0.1" revision commit)) (source (origin - (method git-fetch) - (uri (git-reference - (url "https://github.com/sunwayforever/tintin-mode") - (commit commit))) - (file-name (git-file-name name version)) - (sha256 - (base32 "1p6ryqb8m30cp0zyawb6bs8wy3ga7gm60lcan0xx1fy3wx8qip33")))) + (method git-fetch) + (uri (git-reference + (url "https://github.com/sunwayforever/tintin-mode") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1p6ryqb8m30cp0zyawb6bs8wy3ga7gm60lcan0xx1fy3wx8qip33")))) (build-system emacs-build-system) (home-page "https://github.com/sunwayforever/tintin-mode") (synopsis "Emacs major mode for TinTin++ scripts")