From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id XiM4FOIzHF+WTwAA0tVLHw (envelope-from ) for ; Sat, 25 Jul 2020 13:30:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yHfTD+IzHF8FFwAAB5/wlQ (envelope-from ) for ; Sat, 25 Jul 2020 13:30:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 777D99403C7 for ; Sat, 25 Jul 2020 13:30:09 +0000 (UTC) Received: from localhost ([::1]:60604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jzKFc-0000ip-GN for larch@yhetil.org; Sat, 25 Jul 2020 09:30:08 -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 X-Spam-Score: -1.9 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 Content-Type: multipart/mixed; boundary="=-=-=" X-Spam-Score: 0.5 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Spam-Score: 0.5 (/) X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=kolabnow.com header.s=dkim20160331 header.b=gYmD+wyo; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Spam-Score: -0.01 X-TUID: R79NkRHlgj7g --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Oleg Pykhalov writes: > Could you also take a look on running test suite in a package=20 > recipe, please? Thank you for pointing that out. A new patch file is attached=20 with tests enabled and passing: > starting phase `check' > =E2=9C=94 shx-tokenize works with apostrophes. > =E2=9C=94 shx-tokenize works with partial apostrophes. > =E2=9C=94 shx-tokenize returns nil when quoting doesn't match. > =E2=9C=94 shx-tokenize works with apostrophes and quotation marks. > =E2=9C=94 shx-tokenize works with escaped spaces. > =E2=9C=94 shx-tokenize works with escaped quotation marks. > =E2=9C=94 shx-tokenize works with escaped characters > =E2=9C=94 shx-tokenize works with a directory specified. > =E2=9C=94 shx--get-user-cmd returns nil for empty string > =E2=9C=94 shx--get-user-cmd returns command with correct prefix > =E2=9C=94 shx--safe-as-markup-p recognizes unsafe command > =E2=9C=94 shx--safe-as-markup-p recognizes a safe command > =E2=9C=94 shx--safe-as-markup-p handles undocumented command > =E2=9C=94 shx--quote-regexp matches escaped regexps correctly > =E2=9C=94 shx--quote-regexp matches unescaped regexps correctly > =E2=9C=94 shx--get-timer-list is empty > =E2=9C=94 shx--shx-timer-list grows by 1 > =E2=9C=94 shx--get-timer-list becomes empty > =E2=9C=94 shx.el passes checkdoc > =E2=9C=94 shx-cat concatenates strings correctly > =E2=9C=94 shx-cat propertizes text correctly > =E2=9C=94 shx--shell-command finds the default shell > =E2=9C=94 shx--replace-from-list acts sequentially > =E2=9C=94 shx--replace-from-list performs the correct replacements > =E2=9C=94 shx-el passes check-declare-file > =E2=9C=94 shx-cmd-syntax recognizes command with arguments > =E2=9C=94 shx-cmd-syntax recognizes alphabetical command names > =E2=9C=94 shx-cmd-syntax recognizes hyphenated command names > =E2=9C=94 shx--shell-quote-no-quotation-marks escapes string > =E2=9C=94 shx.el passes byte-compilation > =E2=9C=94 shx-tokenize-filenames works with relative and absolute paths. > =E2=9C=94 shx--all-commands lists user command functions > phase `check' succeeded after 0.2 seconds -- Joseph LaFreniere --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-emacs-shx.patch >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 --=-=-=--