From patchwork Sat Jul 25 13:29:26 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "LaFreniere, Joseph" X-Patchwork-Id: 23370 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 D9FEE27BBE1; Sat, 25 Jul 2020 14:30:08 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id ED55327BBE4 for ; Sat, 25 Jul 2020 14:30:07 +0100 (BST) Received: from localhost ([::1]:60604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzKFb-0000ip-HF for patchwork@mira.cbaines.net; Sat, 25 Jul 2020 09:30:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jzKFW-0000ii-ER for guix-patches@gnu.org; Sat, 25 Jul 2020 09:30:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:38002) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jzKFW-0003Ae-5c for guix-patches@gnu.org; Sat, 25 Jul 2020 09:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jzKFW-0000We-1T for guix-patches@gnu.org; Sat, 25 Jul 2020 09:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42526] [PATCH] gnu: Add emacs-shx. Resent-From: "LaFreniere, Joseph" Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 25 Jul 2020 13:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42526 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Oleg Pykhalov Cc: "LaFreniere, Joseph" , 42526@debbugs.gnu.org Received: via spool by 42526-submit@debbugs.gnu.org id=B42526.15956837841966 (code B ref 42526); Sat, 25 Jul 2020 13:30:01 +0000 Received: (at 42526) by debbugs.gnu.org; 25 Jul 2020 13:29:44 +0000 Received: from localhost ([127.0.0.1]:49548 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzKFD-0000Vd-LL for submit@debbugs.gnu.org; Sat, 25 Jul 2020 09:29:44 -0400 Received: from mx.kolabnow.com ([95.128.36.40]:64960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jzKFA-0000VN-LA for 42526@debbugs.gnu.org; Sat, 25 Jul 2020 09:29:41 -0400 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id A9C074053C; Sat, 25 Jul 2020 15:29:34 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:references:received :received:received; s=dkim20160331; t=1595683773; x=1597498174; bh=/UHgAoxErOgRPUMrSW/ju54xDL4DLE6ASXw7YyxD9iM=; b=gYmD+wyoXTv/ 480Bm7fFC4/t9ZNbz4qL/l33kxqXrtJirbol1PpEXuFWekzXSels7J3Kxd0QWucA QQsra2Hi6kGs0ZEvIx/Xz/IbVqOKOcU6MhqV8pwaovzd/so2g7tGfYiiq0GmvdZZ BgTWY35BAJV3EozV0nCuOAYqxbgOc2ThiAhETsECWjgb7KNiEqNTGe+5KTT2ACN1 N52/6nzvQ7maUIXhfW1KbsGecgsOeCWCRo5l3rX/e0ev9oE7eDiSekOVUZtcHQeJ ppw6UKnYpS7NtLayXrTWYVWIwEjDoESr04WFuAR8E0IOrQ0X2h8LrHL/7ddNLRF8 WZokLf3kkResvf4v2t1hYsrmrOCJChCIByWIdneAC1hWaVX3R4dGRbk746bsDNOZ bsaT8td8aIu9DrPGLtpXASPebFDNun/Ue2PxyG+oHaWTAMDLNZHtRdbddbs/BlKM OYmTlwCkPWE6uk5BTM1bOz4/qhNwttmTOLuHNlrhG4yh3tQ3nGITBnMIAJfcW8L8 kshGB22wpuzBRfr4McbYHUUCorSet+EDs3xaXIWee047fI0t2zqxlTd5Fp3uEkWi 7aO8jkfmd8boHCU471xIxXi3SlxjkGnO/sVX5UMqFA8P21PbGp873eLHH2wSiLWh GvwjzMEctah1O15g2jDZ2MWfFFZVNV0= X-Virus-Scanned: amavisd-new at mykolab.com Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ASLdbHF2tf39; Sat, 25 Jul 2020 15:29:33 +0200 (CEST) Received: from int-mx001.mykolab.com (unknown [10.9.13.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id BA33C404C8; Sat, 25 Jul 2020 15:29:33 +0200 (CEST) Received: from ext-subm002.mykolab.com (unknown [10.9.6.2]) by int-mx001.mykolab.com (Postfix) with ESMTPS id 626B83CE; Sat, 25 Jul 2020 15:29:33 +0200 (CEST) References: <87imecgvvz.fsf@odyssey.lafreniere.xyz> <87a6zoau8c.fsf@gmail.com> From: "LaFreniere, Joseph" In-reply-to: <87a6zoau8c.fsf@gmail.com> Date: Sat, 25 Jul 2020 08:29:26 -0500 Message-ID: <87wo2rsoy1.fsf@odyssey.lafreniere.xyz> 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" X-getmail-retrieved-from-mailbox: Patches Oleg Pykhalov writes: > Could you also take a look on running test suite in a package > recipe, please? Thank you for pointing that out. A new patch file is attached with tests enabled and passing: > starting phase `check' > ✔ shx-tokenize works with apostrophes. > ✔ shx-tokenize works with partial apostrophes. > ✔ shx-tokenize returns nil when quoting doesn't match. > ✔ shx-tokenize works with apostrophes and quotation marks. > ✔ shx-tokenize works with escaped spaces. > ✔ shx-tokenize works with escaped quotation marks. > ✔ shx-tokenize works with escaped characters > ✔ shx-tokenize works with a directory specified. > ✔ shx--get-user-cmd returns nil for empty string > ✔ shx--get-user-cmd returns command with correct prefix > ✔ shx--safe-as-markup-p recognizes unsafe command > ✔ shx--safe-as-markup-p recognizes a safe command > ✔ shx--safe-as-markup-p handles undocumented command > ✔ shx--quote-regexp matches escaped regexps correctly > ✔ shx--quote-regexp matches unescaped regexps correctly > ✔ shx--get-timer-list is empty > ✔ shx--shx-timer-list grows by 1 > ✔ shx--get-timer-list becomes empty > ✔ shx.el passes checkdoc > ✔ shx-cat concatenates strings correctly > ✔ shx-cat propertizes text correctly > ✔ shx--shell-command finds the default shell > ✔ shx--replace-from-list acts sequentially > ✔ shx--replace-from-list performs the correct replacements > ✔ shx-el passes check-declare-file > ✔ shx-cmd-syntax recognizes command with arguments > ✔ shx-cmd-syntax recognizes alphabetical command names > ✔ shx-cmd-syntax recognizes hyphenated command names > ✔ shx--shell-quote-no-quotation-marks escapes string > ✔ shx.el passes byte-compilation > ✔ shx-tokenize-filenames works with relative and absolute paths. > ✔ shx--all-commands lists user command functions > phase `check' succeeded after 0.2 seconds --- Joseph LaFreniere From 26be119a3353863b3b66757e319ea82f24b16f38 Mon Sep 17 00:00:00 2001 From: Joseph LaFreniere Date: Fri, 24 Jul 2020 21:38:06 -0500 Subject: [PATCH] gnu: Add emacs-shx. * gnu/packages/emacs-xyz.scm (emacs-shx): New variable. --- gnu/packages/emacs-xyz.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index 836a3950f8..6cc2d4671a 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -3918,6 +3918,38 @@ the speedbar window.") "This package provides commands to quickly switch between shell buffers.") (license license:gpl3+))) +(define-public emacs-shx + (package + (name "emacs-shx") + (version "1.4.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/riscy/shx-for-emacs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "0p9b621rgy34r1hl9xfzxh4xpx9gpsr3n330ypfxhlr0s5754j73")))) + (build-system emacs-build-system) + (arguments + `(#:phases + (modify-phases %standard-phases + ;; A docstring provides examples of mapping hosts to programs in /bin. + ;; These examples are valid as-is. + (delete 'patch-el-files)) + #:tests? #t + #:test-command + '("emacs" "--batch" "--quiet" + "--script" "test/script.el"))) + (home-page "https://github.com/riscy/shx-for-emacs") + (synopsis "Extras for the comint-mode shell") + (description + "This package extends @code{comint-mode}: it parses markup in the output +stream, enabling plots and graphics to be embedded, and adds command-line +functions which plug into Emacs (e.g. use @code{:e } to edit a +file).") + (license license:gpl3+))) + (define-public emacs-names (let ((commit "d8baba5360e5253938a25d3e005455b6d2d86971") (version "20151201.0") -- 2.27.0