From patchwork Mon Nov 11 13:49:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Thompson X-Patchwork-Id: 70260 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 D5AA427BBEA; Mon, 11 Nov 2024 13:51:21 +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.6 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,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 65EA627BBE2 for ; Mon, 11 Nov 2024 13:51:21 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tAUoq-0007hA-AR; Mon, 11 Nov 2024 08:51:04 -0500 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 1tAUoo-0007gU-KT for guix-patches@gnu.org; Mon, 11 Nov 2024 08:51:02 -0500 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 1tAUoo-0004O5-Bz for guix-patches@gnu.org; Mon, 11 Nov 2024 08:51:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=WOMh25oMDODO2FB/f3GYN5mB2/tW06OehgWcJYXxIVo=; b=pI5QE9ODfB1OxaBA1KF9cNudbJrdBJW4tlhOqWZM2gtT7htG1jLXU51HM9ywxS8sdvd8q8w0jEgoxoOOcbFF0PXCsr5euGDrJgZM8Hg25BxzdXHQ0pRqhP5st7xg4TZNhn9kt7jDNmtEzXxZlGLrhFFbqH8lmblXcRisnmNMaa2HcDFSMvr27y+RQwFJoDDFk43bk4AA5O42yVOEfQKXmUhjjUId0iZQKR3LN7IF0nWiVwUzhCe+ALv6gADg9rRvb6CbiT7YDBfwL5RMZs35rNDPbdE9LJE9uza1hdsQkenpr+qNRrHMpV6WGPS5tNfK+5VSJzhR1eM+OEsdSomOVA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tAUon-00013j-R6; Mon, 11 Nov 2024 08:51:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74158] [PATCH v3 4/4] gnu: Add emacs-parinfer-rust-mode. Resent-From: Lee Thompson Original-Sender: "Debbugs-submit" Resent-CC: andrew@trop.in, cox.katherine.e+guix@gmail.com, liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Mon, 11 Nov 2024 13:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74158 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74158@debbugs.gnu.org Cc: Lee Thompson , Andrew Tropin , Katherine Cox-Buday , Liliana Marie Prikler X-Debbugs-Original-Xcc: Andrew Tropin , Katherine Cox-Buday , Liliana Marie Prikler Received: via spool by 74158-submit@debbugs.gnu.org id=B74158.17313330404038 (code B ref 74158); Mon, 11 Nov 2024 13:51:01 +0000 Received: (at 74158) by debbugs.gnu.org; 11 Nov 2024 13:50:40 +0000 Received: from localhost ([127.0.0.1]:58695 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAUoS-000134-E3 for submit@debbugs.gnu.org; Mon, 11 Nov 2024 08:50:40 -0500 Received: from mail-ej1-f41.google.com ([209.85.218.41]:43046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tAUoQ-00012r-H2 for 74158@debbugs.gnu.org; Mon, 11 Nov 2024 08:50:39 -0500 Received: by mail-ej1-f41.google.com with SMTP id a640c23a62f3a-a99e3b3a411so960145966b.0 for <74158@debbugs.gnu.org>; Mon, 11 Nov 2024 05:50:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1731332973; x=1731937773; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WOMh25oMDODO2FB/f3GYN5mB2/tW06OehgWcJYXxIVo=; b=bCJqKImNuYTus2oO5xFtYw2Lwx0gj+SV+OxJCS5nTSaLcXll2XXLa/8RwPw2FQtv+T z2XlTwm9qoRO1xS+xUYBZQoI+CCSCdHfdyNW9HJFZO6kXD0Z7nR7fR0C/B/2BY4Lw+gj hyAQriL0yVYJp0X9d3qkcQZliwXJszNKxqutNDkN7nNIVnzKpdcRWLy4gxyTOGyutGhU m9r2EYojAClqSA2Hk846nmytcy93WjSVM6d7wgeBRhUFeZmUomCCq0zO6YokekpVGTg/ CyTqveJWmecSUSiduLJVpHa/xaV+vazvywcLPF4PO75qQVLVnFi1RjelHaU90PMa8tmY ciow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731332973; x=1731937773; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WOMh25oMDODO2FB/f3GYN5mB2/tW06OehgWcJYXxIVo=; b=Co52FCxQtCfWA89a4d2SKfLu7IwJgwDqq8IonuNBJZGJHO+HdFEx/IB6n+7CE6kUOR Wd3H4F4GahrdlRlDNA/kZ6mt/kbLuBDRnaOG00Xvg7/nt1Qf7kJtHPHUkTsZr7Z9w51S yMACsrVN+3XemKZRKEkLMvuXyKh6+coR5DQCVqR7F8jDc7sFkJbakLxuz5NWkG6DCw5u HA9zGq6SH32rrmcxpLOW6QqMd150LidrB6mHxhZjkxK5/ptLa0O5QUkuD3/DAjU0sSTU dQKmlIhtSidy24AbxXOd0pbeyKhkcp3aDHF/H+IQvIHRrji4oCl4auw37f6LqIk/68sH ZYAA== X-Gm-Message-State: AOJu0YwtDpDDwAe7EEj5Qj/p2yme31d8+07O3ANVuggHGM9IdlDuaD9D eu+L/ZAAAZfADRfSL3G2in+YVGwTWqMCV+ZH/Wvtv5FI5Ed59DfDTfgPmA== X-Google-Smtp-Source: AGHT+IHJDTCfhiTO5q5DK32hNsXf6mTBtYfLy6r8w2ADJA8av3xrKjTVjaX8URrolqjorZBwjHlElg== X-Received: by 2002:a17:907:7e83:b0:a9a:170d:67b2 with SMTP id a640c23a62f3a-a9eeffe72a4mr1150099966b.29.1731332972307; Mon, 11 Nov 2024 05:49:32 -0800 (PST) Received: from LD00001.sitehop.local ([88.98.252.138]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a9ee0dc4c55sm595333366b.130.2024.11.11.05.49.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 05:49:31 -0800 (PST) From: Lee Thompson Date: Mon, 11 Nov 2024 13:49:12 +0000 Message-ID: <7bb45a68f4af369885da12b7a03d2d331dce02db.1731332805.git.lee.p.thomp@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <167eeffc87478d1ab022c0c707ec5cf897a5f355.1731332805.git.lee.p.thomp@gmail.com> References: <167eeffc87478d1ab022c0c707ec5cf897a5f355.1731332805.git.lee.p.thomp@gmail.com> 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: , 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 * gnu/packages/emacs-xyz.scm (emacs-parinfer-rust-mode): New variable. Change-Id: I3508c5fd2d6c787ff9ef737e3f6a207d9b852ada --- 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 e7a75d51a3..ef8bd5a8b8 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -290,6 +290,7 @@ (define-module (gnu packages emacs-xyz) #:use-module (gnu packages virtualization) #:use-module (gnu packages web-browsers) #:use-module (gnu packages wget) + #:use-module (gnu packages text-editors) #:use-module (guix utils) #:use-module (srfi srfi-1) #:use-module (ice-9 match)) @@ -27457,6 +27458,49 @@ (define-public emacs-track-changes to react to them.") (license license:gpl3+))) +(define-public emacs-parinfer-rust-mode + (package + (name "emacs-parinfer-rust-mode") + (version "0.9.3") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/justinbarclay/parinfer-rust-mode") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1p00m757maw6dxig0x45gry1l7vm9dm6wg1anfm2rwl6hw1f5q25")))) + (propagated-inputs (list emacs-track-changes)) + (inputs (list parinfer-rust-emacs)) + (build-system emacs-build-system) + (arguments + `(#:phases (modify-phases %standard-phases + (add-after 'unpack 'configure + (lambda* (#:key inputs #:allow-other-keys) + (let ((parinfer-lib (dirname (search-input-file inputs + "lib/libparinfer_rust.so")))) + ;; Specify the absolute file names of the parinfer shared + ;; library. + (make-file-writable "parinfer-rust-mode.el") + (emacs-substitute-variables "parinfer-rust-mode.el" + ("parinfer-rust--lib-name" + "libparinfer_rust.so") + ("parinfer-rust-library-dir" + parinfer-lib)) + (emacs-substitute-sexps "parinfer-rust-mode.el" + ("defcustom parinfer-rust-library-directory" + parinfer-lib) + ("defconst parinfer-rust--lib-name" + "libparinfer_rust.so")))))))) + (home-page "https://github.com/justinbarclay/parinfer-rust-mode") + (synopsis "Lisp structure editing mode leveraging parinfer-rust") + (description + "@command{parinfer-rust-mode} aims to be a simple implementation of +Parinfer that leverages the parinfer-rust-emacs library to do most of the +heavy lifting.") + (license license:gpl3+))) + (define-public emacs-helm-eww (package (name "emacs-helm-eww")