From patchwork Fri Sep 23 18:34:32 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Nicolas Graves X-Patchwork-Id: 42894 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 64BB427BBEA; Fri, 23 Sep 2022 19:53:14 +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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, SPF_HELO_PASS 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 E33FD27BBE9 for ; Fri, 23 Sep 2022 19:53:13 +0100 (BST) Received: from localhost ([::1]:58022 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1obnnU-0004rG-0G for patchwork@mira.cbaines.net; Fri, 23 Sep 2022 14:53:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57150) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1obnVz-0001IX-OK for guix-patches@gnu.org; Fri, 23 Sep 2022 14:35:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1obnVu-0004hC-MH for guix-patches@gnu.org; Fri, 23 Sep 2022 14:35:07 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1obnVu-00022v-9l for guix-patches@gnu.org; Fri, 23 Sep 2022 14:35:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57737] [PATCH v5 1/6] gnu: Add emacs-eval-in-repl. References: <874jxdlrez.fsf@ngraves.fr> In-Reply-To: <874jxdlrez.fsf@ngraves.fr> Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 23 Sep 2022 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 57737 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 57737@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 57737-submit@debbugs.gnu.org id=B57737.16639580937828 (code B ref 57737); Fri, 23 Sep 2022 18:35:02 +0000 Received: (at 57737) by debbugs.gnu.org; 23 Sep 2022 18:34:53 +0000 Received: from localhost ([127.0.0.1]:41745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obnVk-00022B-FT for submit@debbugs.gnu.org; Fri, 23 Sep 2022 14:34:53 -0400 Received: from 6.mo576.mail-out.ovh.net ([46.105.50.107]:46155) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1obnVe-00021z-Qh for 57737@debbugs.gnu.org; Fri, 23 Sep 2022 14:34:51 -0400 Received: from player791.ha.ovh.net (unknown [10.110.103.129]) by mo576.mail-out.ovh.net (Postfix) with ESMTP id 9292624602 for <57737@debbugs.gnu.org>; Fri, 23 Sep 2022 18:34:45 +0000 (UTC) Received: from ngraves.fr (lfbn-lil-1-1001-57.w86-192.abo.wanadoo.fr [86.192.232.57]) (Authenticated sender: ngraves@ngraves.fr) by player791.ha.ovh.net (Postfix) with ESMTPSA id 162602ED8DF38; Fri, 23 Sep 2022 18:34:42 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-98R002a60c9cb1-d537-4c47-be55-4097e6cf27f4, C170D6256EB7351A68EA9DF4E384453EB758DD3D) smtp.auth=ngraves@ngraves.fr X-OVh-ClientIp: 86.192.232.57 Date: Fri, 23 Sep 2022 20:34:32 +0200 Message-Id: <20220923183437.18059-1-ngraves@ngraves.fr> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 X-Ovh-Tracer-Id: 18177935475009118946 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvfedrfeefiedgudeftdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecunecujfgurhephffvvefufffkofggtgfgsehtkeertdertdejnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepleeuhefgveefvefhffdtteegudegveevheetieelueeujefhgeffteetfffhhfdvnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpkeeirdduledvrddvfedvrdehjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepphhlrgihvghrjeeluddrhhgrrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehnghhrrghvvghssehnghhrrghvvghsrdhfrhdpnhgspghrtghpthhtohepuddprhgtphhtthhopeehjeejfeejseguvggssghughhsrdhgnhhurdhorhhgpdfovfetjfhoshhtpehmohehjeei 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" Reply-to: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches X-Patchwork-Original-From: Nicolas Graves via Guix-patches via From: Nicolas Graves X-getmail-retrieved-from-mailbox: Patches * gnu/packages/emacs-xyz.scm (emacs-eval-in-repl): New variable. --- gnu/packages/emacs-xyz.scm | 57 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 074d4d1c4c..47a834f91f 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -116,6 +116,7 @@ ;;; Copyright © 2022 Haider Mirza ;;; Copyright © 2022 Jose G Perez Taveras ;;; Copyright © 2022 Hilton Chain +;;; Copyright © 2022 Nicolas Graves ;;; ;;; This file is part of GNU Guix. ;;; @@ -27038,6 +27039,62 @@ (define-public emacs-info-plus nodes, and more.") (license license:gpl2+)))) +(define-public emacs-eval-in-repl + (package + (name "emacs-eval-in-repl") + (version "0.9.7") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/kaz-yos/eval-in-repl") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "1mrssbl0wyc6iij8zk1y3h9bd3rv53nnrxsij7fn67l1m4z0clyn")))) + (build-system emacs-build-system) + (arguments + `(#:include + (list "eval-in-repl\\.el" "eval-in-repl-test\\.el" "README\\.md"))) + (propagated-inputs (list emacs-dash emacs-paredit emacs-ace-window)) + (home-page "https://github.com/kaz-yos/eval-in-repl") + (synopsis "Consistent evaluation interface for various REPLs for emacs") + (description"\ +This package provides a consistent ESS-like evaluation interface for +various REPLs. Emacs Speaks Statistics (ESS) package has a nice function +called @code{ess-eval-region-or-line-and-step}, which is assigned to +C-RET. This function sends a line or a selected region to the corresponding +shell (R, Julia, Stata, etc) visibly. It also start up a shell if there is +none. + +This package along with REPL/shell specific packages implement similar work flow +for various REPLs. + +This package alone is not functional. It also requires the following packages +depending on your needs : +@itemize +@item eval-in-repl-ielm for Emacs Lisp +@item eval-in-repl-cider for Clojure +@item eval-in-repl-slime for Common Lisp +@item eval-in-repl-sly for Common Lisp +@item eval-in-repl-geiser for Racket/Scheme +@item eval-in-repl-racket for Racket +@item eval-in-repl-scheme for Scheme +@item eval-in-repl-hy for Hy +@item eval-in-repl-python for Python +@item eval-in-repl-ruby for Ruby +@item eval-in-repl-sml for Standard ML +@item eval-in-repl-ocaml for OCaml +@item eval-in-repl-prolog for Prolog +@item eval-in-repl-javascript for Javascript +@item eval-in-repl-shell for Shell +@item eval-in-repl-iex for Elixir +@item eval-in-repl-erlang for Erlang +@item eval-in-repl-elm for Elm +@item eval-in-repl-lua for Lua +@end itemize") + (license license:expat))) + (define-public emacs-eval-sexp-fu-el (package (name "emacs-eval-sexp-fu-el")