From patchwork Sun Mar 23 21:07:38 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Goaziou X-Patchwork-Id: 40758 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 C7D8727BBEA; Sun, 23 Mar 2025 21:09:48 +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 B7C5427BBE9 for ; Sun, 23 Mar 2025 21:09:47 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1twSZC-00020Q-6q; Sun, 23 Mar 2025 17:09:10 -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 1twSZA-00020G-E4 for guix-patches@gnu.org; Sun, 23 Mar 2025 17:09:08 -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 1twSZ6-0004MQ-Ha for guix-patches@gnu.org; Sun, 23 Mar 2025 17:09:08 -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:Subject; bh=kZkx/7RwP9+kNzHZZu1wEtQuufmo5eAbX9iAFJxK22M=; b=GXHL1FLhfP0Zl+vBX/HsOwP6dr/ySA9IJKYzSF8jrsecnGz0slUQIisZ+kfV2Po0pYbAIMXWjyqEKNVX9bMfMFcqnxMOUe7tGmovSQ4UTz5FdtgKqdP6Yp2Ffy3faVZeHs6A3XhZzQCdaLLlkvhTIQ3disS69bE+aIWzScvSwsZTWCh6j0UAawiFztwgr+1t2I+bR3RR+5YC5YrO1nkm9tqx4/sLfQSEXXV7TFJl9hJoefT4nOUrtAmqhA2TduDhJYRQFoOHTYbKLNIwb3kfjBOMDKkY73HRYvRd89WKXsTjACg3PvB6V3N60HLQmdPWMzrxZ4aVSc/MT9bG3SZXfA==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1twSZ4-0005UN-B8; Sun, 23 Mar 2025 17:09:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#77219] [PATCH] gnu: Add emacs-sage-shell-mode. Resent-From: Nicolas Goaziou Original-Sender: "Debbugs-submit" Resent-CC: andrew@trop.in, csantosb@inventati.org, divya@subvertising.org, ian@retrospec.tv, cox.katherine.e+guix@gmail.com, liliana.prikler@gmail.com, guix-patches@gnu.org Resent-Date: Sun, 23 Mar 2025 21:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 77219 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 77219@debbugs.gnu.org Cc: Nicolas Goaziou , Andrew Tropin , Cayetano Santos , Divya Ranjan Pattanaik , Ian Eure , Katherine Cox-Buday , Liliana Marie Prikler X-Debbugs-Original-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Andrew Tropin , Cayetano Santos , Divya Ranjan Pattanaik , Ian Eure , Katherine Cox-Buday , Liliana Marie Prikler Received: via spool by submit@debbugs.gnu.org id=B.174276409821036 (code B ref -1); Sun, 23 Mar 2025 21:09:02 +0000 Received: (at submit) by debbugs.gnu.org; 23 Mar 2025 21:08:18 +0000 Received: from localhost ([127.0.0.1]:52843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1twSYM-0005TE-Dc for submit@debbugs.gnu.org; Sun, 23 Mar 2025 17:08:18 -0400 Received: from lists.gnu.org ([2001:470:142::17]:55582) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1twSYJ-0005Sv-SK for submit@debbugs.gnu.org; Sun, 23 Mar 2025 17:08:16 -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 1twSYD-0001qt-OJ for guix-patches@gnu.org; Sun, 23 Mar 2025 17:08:09 -0400 Received: from msg-4.mailo.com ([213.182.54.15] helo=mailo.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1twSYA-0004JM-Vj for guix-patches@gnu.org; Sun, 23 Mar 2025 17:08:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=nicolasgoaziou.fr; s=mailo; t=1742764084; bh=lA+nNexHpEEo18YQltQ9n0jAqA/NDFuTaG1ak7+kwE0=; h=X-EA-Auth:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; b=SYKCfcqwk1LbSQxZ6951XDyyOA+lz+wQTxJrkO2YR45N8M3J6Ssa7ZAVevU2Yy2L5 2FKiyE6a0B6m4Eb6UCn7ZRoBM61drrOSLmngG4oMpb+a+2uHa8p8Ev2LzS39LRC4Zi aZ4d9knw7D74U+D1dLdv05jyJMcf+IJUGRW0obfE= Received: by b221-9.in.mailobj.net [192.168.90.29] with ESMTP via ip-20.mailobj.net [213.182.54.20] Sun, 23 Mar 2025 22:08:03 +0100 (CET) X-EA-Auth: ujfEc7+Pdls6oLMFiZhyTuM8fRezdG2+/rOZChbeIlWJsIHwBlCSYeCuwcpVQvRstmE8W0d6Ryca3ddhElKX4BUSHiCT65qIlrVD2F8mEns= Date: Sun, 23 Mar 2025 22:07:38 +0100 Message-ID: <1bf346bbbbebd9c277dd63a10c148993be33763c.1742764031.git.mail@nicolasgoaziou.fr> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Received-SPF: pass client-ip=213.182.54.15; envelope-from=mail@nicolasgoaziou.fr; helo=mailo.com 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, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: Nicolas Goaziou X-ACL-Warn: , Nicolas Goaziou via Guix-patches X-Patchwork-Original-From: Nicolas Goaziou via Guix-patches via From: Nicolas Goaziou 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-sage-shell-mode): New variable. Change-Id: I73189f919f0f1a36b0f4826685b8ace4563a9a81 --- gnu/packages/emacs-xyz.scm | 55 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) base-commit: 60e4012dfcbe0df5c7e60f097ae2b11d92f982ff diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index f00c5e4b29..dc36455058 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -6544,6 +6544,61 @@ (define-public emacs-org-pdftools (home-page "https://github.com/fuxialexander/org-pdftools") (license license:gpl3+)))) +(define-public emacs-sage-shell-mode + (let ((commit "4291700e981a2105d55fa56382ba25046d3d268d") + (revision "1")) + (package + (name "emacs-sage-shell-mode") + (version (git-version "0.3" revision commit)) + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/sagemath/sage-shell-mode") + (commit commit))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1dch7cwwslffgnzp1djlhz6a792ci42p4bvazxd9lqzhzal0rsbb")))) + (build-system emacs-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + ;; Test file contains a duplicate test, causing a check + ;; error. Remove the first occurrence. + (add-before 'check 'remove-duplicate-test + (lambda _ + (emacs-batch-edit-file "test/sage-shell-mode-test.el" + '(progn + (search-forward + "(ert-deftest sage-shell:parse-state-func-call-1") + (goto-char (match-beginning 0)) + (kill-sexp) + (basic-save-buffer))))) + ;; The test below is meant to be called from a CI environment + ;; and can be ignored. + (add-before 'check 'skip-failing-test + (lambda _ + (substitute* "test/sage-shell-mode-test.el" + (("\\(ert-deftest sage-shell:development-version-test .*" + all) + (string-append all "(skip-unless nil)\n")))))) + #:tests? #true + ;; The "test" command from the Makefile rebuilds everything. Run + ;; the tests at a lower level. + #:test-command #~(list "emacs" "-Q" "-batch" + "-L" "." + "-l" "test/sage-shell-mode-test.el" + "-f" "ert-run-tests-batch-and-exit"))) + (propagated-inputs (list emacs-deferred)) + (home-page "https://github.com/sagemath/sage-shell-mode") + (synopsis "Emacs front-end for SageMath") + (description + "Sage Shell mode provides an Emacs front-end for SageMath. It can run +the Sage terminal inside Emacs, and allows editing @file{.sage} source files +with a dedicated major mode and sending their contents directly to that +terminal.") + (license license:gpl3+)))) + (define-public emacs-sakura-theme (package (name "emacs-sakura-theme")