From patchwork Wed Apr 9 14:32:53 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Cayetano Santos X-Patchwork-Id: 41502 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 0EE5E27BC4A; Wed, 9 Apr 2025 15:34:25 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, 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 AA6E227BC49 for ; Wed, 9 Apr 2025 15:34:22 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1u2WVE-0006G0-Ox; Wed, 09 Apr 2025 10:34:09 -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 1u2WVC-0006Fi-2b for guix-patches@gnu.org; Wed, 09 Apr 2025 10:34: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 1u2WVB-0004M0-EQ for guix-patches@gnu.org; Wed, 09 Apr 2025 10:34:05 -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=eOZRmmlRm4gfZMgmsMQ59zEOQ2rOb3vHAWuNmV3IPGY=; b=mALpYn+vcDx5/A9aqTWtXC1D5RpgzfwDaBWEpyNmDfKg91y/wBsDAK4hStPL6Pj7flRnseUEaGKTeQhG//qwNiVdwUxqqK3msWeg1VS9tQlnDrj1QrDOuMq1Jn11Ogo4nP9kqRCG5IyDtHqNrt0zxp320l6YPGP9gCnqCOfJkuAzLItUxGgadRgiJtrzeM+q34sbbvVOdgtifU4lFF7JONCn6VvHdJs76Xf9S/7kcgQyynHckXxGqvdPhG8V+jicMHMLXI2uSVczkyCSI/0iWXU/PMnjwHqAYik5voHGAuYev+NX/8JRC1PE4ylI5lcFShuscT0hEyV2Uw+uuIHZvA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1u2WV7-0008HA-T7; Wed, 09 Apr 2025 10:34:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77185] [PATCH v6] 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: andrew@trop.in, csantosb@inventati.org, divya@subvertising.org, hako@ultrarare.space, ian@retrospec.tv, cox.katherine.e+guix@gmail.com, liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Wed, 09 Apr 2025 14:34:01 +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 , Cayetano Santos , Andrew Tropin , Cayetano Santos , Divya Ranjan Pattanaik , Hilton Chain , Ian Eure , Katherine Cox-Buday , Liliana Marie Prikler X-Debbugs-Original-Xcc: Andrew Tropin , Cayetano Santos , Divya Ranjan Pattanaik , Hilton Chain , Ian Eure , Katherine Cox-Buday , Liliana Marie Prikler Received: via spool by 77185-submit@debbugs.gnu.org id=B77185.174420922731738 (code B ref 77185); Wed, 09 Apr 2025 14:34:01 +0000 Received: (at 77185) by debbugs.gnu.org; 9 Apr 2025 14:33:47 +0000 Received: from localhost ([127.0.0.1]:40984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1u2WUs-0008Fq-Ks for submit@debbugs.gnu.org; Wed, 09 Apr 2025 10:33:47 -0400 Received: from devianza.investici.org ([2c0f:f930:0:4::108]:46787) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1u2WUn-0008Em-FP for 77185@debbugs.gnu.org; Wed, 09 Apr 2025 10:33:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inventati.org; s=stigmate; t=1744209217; bh=eOZRmmlRm4gfZMgmsMQ59zEOQ2rOb3vHAWuNmV3IPGY=; h=From:To:Cc:Subject:Date:From; b=S2ob/SQ+67sG7yb2mcMrDCq+GtIgbTkLhZlyGVOO+yBUMwjWDyR5CK7j5vN7JaaAE p+a0UhYwr2wFccSZ6axvu26oDFV9K49LqsHUOJ2hJ0y6IsHHp2XAgquqzWMzKXU1pQ juihO33Q8O/h4lHlvDODLx09iwSCQfj6/4jSZdEw= Received: from mx2.investici.org (unknown [127.0.0.1]) by devianza.investici.org (Postfix) with ESMTP id 4ZXlmx1nv1z6vJj; Wed, 9 Apr 2025 14:33:37 +0000 (UTC) Received: from [198.167.222.108] (mx2.investici.org [198.167.222.108]) (Authenticated sender: cayetano.santos@inventati.org) by localhost (Postfix) with ESMTPSA id 4ZXlmw6z2yz6vJR; Wed, 9 Apr 2025 14:33:36 +0000 (UTC) Date: Wed, 9 Apr 2025 16:32:53 +0200 Message-ID: <839b031bb91ab25e67eba5ea87d1e94990a22046.1744209173.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 Signed-off-by: Cayetano Santos --- V5 doesn't apply anymore. gnu/packages/emacs-xyz.scm | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) base-commit: 90357c6090de8c6befec232996dbc7415112a081 -- 2.49.0 diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 486cb24321..b342c6e4b9 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -489,6 +489,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")