From patchwork Tue Mar 25 10:13:54 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Cayetano Santos X-Patchwork-Id: 40811 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 048A827BBE9; Tue, 25 Mar 2025 10:15:22 +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=unavailable 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 7448927BBE2 for ; Tue, 25 Mar 2025 10:15:20 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tx1JU-0003rC-6y; Tue, 25 Mar 2025 06:15:17 -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 1tx1JH-0003m2-1j for guix-patches@gnu.org; Tue, 25 Mar 2025 06:15:06 -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 1tx1JG-0003L4-LF for guix-patches@gnu.org; Tue, 25 Mar 2025 06:15:02 -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=2hxv3LYmlPrIyMbZfgWiI1XmwMAIPKhy4qEvJNhPd+k=; b=tcliiPHgBWd1NkRm66PEI12vkDhrAKVucFhy5HOScWA5fMTAmkN1HFBh/8pdlHF2STbL19QBzi9CGv94wh6/gYLjdZYxg1KUgSZtUQric0ZWv5w13vDm9KTEYlbRPyjyV7j6gv/Lnr94njlZzX4p7G7VRq5eIh1QfJYgW7KJMSzhvzJtgiJGh18SS/bEUOepv1R10W8sdtMKa3mVDfY101G3b4GqpPuoVWGUCy+M07pr0fU0uTLfdzFg+49HfxgU0hI/yyA2HihERhzLEKPp99G5zXF8+8DQ9vZN/Sw6Dkxqe3QUVUkz16yw53hEeYO0G5xNj/Fsv7h5Sh6dZ/j9vw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tx1JG-00049e-GN for guix-patches@gnu.org; Tue, 25 Mar 2025 06:15:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77185] [PATCH v5] 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 10:15: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.174289765615867 (code B ref 77185); Tue, 25 Mar 2025 10:15:02 +0000 Received: (at 77185) by debbugs.gnu.org; 25 Mar 2025 10:14:16 +0000 Received: from localhost ([127.0.0.1]:36373 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tx1IW-00047r-B1 for submit@debbugs.gnu.org; Tue, 25 Mar 2025 06:14:16 -0400 Received: from latitanza.investici.org ([82.94.249.234]:53081) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tx1IS-00047a-Ld for 77185@debbugs.gnu.org; Tue, 25 Mar 2025 06:14:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1742897650; bh=2hxv3LYmlPrIyMbZfgWiI1XmwMAIPKhy4qEvJNhPd+k=; h=From:To:Cc:Subject:Date:From; b=FXWgtBHQKzUdNSRS3cou3B+M1XGg4CIb+fyGCork6j41HUONHd88zntP67jnnNuwe zcKa2iM0CxtTQZM+e+fSLhnc1i1J+SPgyEsXr6PDd3JcNY967m/+w3PmJQVG45hcfE AqfRE2TwhhLxt9Wu3MFq/0VtwDEI7TeYQRH6uG4I= Received: from mx3.investici.org (unknown [127.0.0.1]) by latitanza.investici.org (Postfix) with ESMTP id 4ZMQkV6zjbzGp3x; Tue, 25 Mar 2025 10:14:10 +0000 (UTC) Received: from [82.94.249.234] (mx3.investici.org [82.94.249.234]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4ZMQkV5wxNzGp3C; Tue, 25 Mar 2025 10:14:10 +0000 (UTC) Date: Tue, 25 Mar 2025 11:13:54 +0100 Message-ID: <567e9614f766b1711a019276be0d218a786982bf.1742897634.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 --- gnu/packages/emacs-xyz.scm | 46 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) base-commit: ce086e31f0f5c78be76fd228dfd7718ff6df584e diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index f00c5e4b29..27e29e9628 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")