From unknown Wed Jun 18 00:27:22 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#50709 <50709@debbugs.gnu.org> To: bug#50709 <50709@debbugs.gnu.org> Subject: Status: [PATCH] gnu: Add zsh-syntax-highlighting. Reply-To: bug#50709 <50709@debbugs.gnu.org> Date: Wed, 18 Jun 2025 07:27:22 +0000 retitle 50709 [PATCH] gnu: Add zsh-syntax-highlighting. reassign 50709 guix-patches submitter 50709 Alexandr Vityazev severity 50709 normal tag 50709 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 20 19:03:25 2021 Received: (at submit) by debbugs.gnu.org; 20 Sep 2021 23:03:25 +0000 Received: from localhost ([127.0.0.1]:44260 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSSJp-0001vE-Ck for submit@debbugs.gnu.org; Mon, 20 Sep 2021 19:03:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:50152) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSSJo-0001v7-BR for submit@debbugs.gnu.org; Mon, 20 Sep 2021 19:03:24 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:48414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSSJm-0007ng-OX for guix-patches@gnu.org; Mon, 20 Sep 2021 19:03:24 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40785) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mSSJk-0005MX-8U for guix-patches@gnu.org; Mon, 20 Sep 2021 19:03:22 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id B6885240101 for ; Tue, 21 Sep 2021 01:03:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1632178995; bh=AD2g80CuwahhhTiHPc2Z0t0EjLNTj3TZ5/RGLbtXwC0=; h=From:To:Subject:Date:From; b=JGd3+AyW0RMb8dMo8ZGtNwEHAsBn0SqiZyR2U3lPVTnXMivpzvsh+JbPeckhYOtY6 LCEwG7szIGjx5XcLpw+N6xv8mrtw/+JeS4plGjOIzHAix7pp5k7ToaaunAOOS0iLp3 7AM6N74BOQbBoeKu7hI868BNhl5HOUzN38YcZPnlMKvL7053BAzqKladg4B3/h0Y3X 9RnnZGaeZbK8CQxAZWmdaLLhLRQahG0vKR2AK6bFuDS8TY4/vewXyny8etzO9h3/Ss 8uLxp2v6VfyWdZ+OI/pVY4035x1ZtdFkguxIhkaldWZ/s5UQIWsBb4z9PjQBDY/pPK hclh8pY+aM/gA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HD0TZ5zJYz9rxG for ; Tue, 21 Sep 2021 01:03:14 +0200 (CEST) From: Alexandr Vityazev To: guix-patches@gnu.org Subject: [PATCH] gnu: Add zsh-syntax-highlighting. Date: Mon, 20 Sep 2021 23:03:29 +0000 Message-ID: <87sfxy4zpa.fsf@posteo.org> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=avityazev@posteo.org; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) * gnu/packages/shellutils.scm (zsh-syntax-highlighting): New variable. --- gnu/packages/shellutils.scm | 55 +++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 94b5536df7..69e1d0d069 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -138,6 +138,61 @@ text.") as you type.") (license license:expat))) +(define-public zsh-syntax-highlighting + (package + (name "zsh-syntax-highlighting") + (version "0.7.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zsh-users/zsh-syntax-highlighting") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "039g3n59drk818ylcyvkciv8k9mf739cv6v4vis1h9fv9whbcmwl")))) + (build-system gnu-build-system) + (native-inputs + `(("zsh" ,zsh))) + (arguments + ;; FIXME: Tests fail when running test regexp + ;; there is no pcre module in the Guix zsh package + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-before 'build 'add-all-md + (lambda _ + (copy-file "docs/highlighters.md" "docs/all.md") + (make-file-writable "docs/all.md") + #t)) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test") + (invoke "make" "perf")) + #t)) + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (zsh-plugins + (string-append out "/share/zsh/plugins/zsh-syntax-highlighting")) + (highlighters-dir (string-append zsh-plugins "/highlighters"))) + (invoke "make" "all") + (install-file "zsh-syntax-highlighting.zsh" zsh-plugins) + (install-file ".version" zsh-plugins) + (install-file ".revision-hash" zsh-plugins) + (copy-recursively "highlighters" highlighters-dir) + #t)))))) + (home-page "https://github.com/zsh-users/zsh-syntax-highlighting") + (synopsis "Fish shell-like syntax highlighting for zsh") + (description + "This package provides syntax highlighting for the shell zsh. +It enables highlighting of commands whilst they are typed at a zsh +prompt into an interactive terminal. This helps in reviewing commands +before running them, particularly in catching syntax errors.") + (license license:expat))) + (define-public sh-z (package (name "sh-z") -- 2.33.0 -- Alexandr Vityazev From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 20 19:25:09 2021 Received: (at 50709) by debbugs.gnu.org; 20 Sep 2021 23:25:09 +0000 Received: from localhost ([127.0.0.1]:44266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSSer-0002ba-9J for submit@debbugs.gnu.org; Mon, 20 Sep 2021 19:25:09 -0400 Received: from mout01.posteo.de ([185.67.36.65]:55455) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mSSeo-0002at-KV for 50709@debbugs.gnu.org; Mon, 20 Sep 2021 19:25:07 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 47745240028 for <50709@debbugs.gnu.org>; Tue, 21 Sep 2021 01:24:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1632180300; bh=p6O4ejHV+EYlvsxENlT7TA3byIbqXh18S4uV7m2t4jg=; h=From:To:Subject:Date:From; b=NdejafEek6rj+tH6mXgrKzXIolZv8Xd7drorhzUqczYOe0SQSDD0L5ZIGJyDfqcOM 70Y2ssxPFDjcG2ru3c+6F5Zp6Zw2/wjdi9gS0bmE1yffuz+39db9DXf2jHg9/fo2Vd Mln17Pdpi5ZGeXnr1YcTOgA/MQWCmNHXK9Wi2ZLAmFSC/ZwBzI1urhLo5YXzlNWfaW et84Szny62fq39sIcJNmzh7EK81xe3SNs0UZXa2OqWuLLLjRKcMuWgC4g75ezifSx8 TlrZ8cdhz06liPFHcF62CHPcwUNAUS5bDbalStPPLHeBC38PEt4RSIUg+0eUvdGJD4 XkT7pGu8aB9Dw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HD0yf1wKqz9rxN for <50709@debbugs.gnu.org>; Tue, 21 Sep 2021 01:24:57 +0200 (CEST) From: Alexandr Vityazev To: 50709@debbugs.gnu.org Subject: [PATCH] gnu: shellutils: Add copyright. Date: Mon, 20 Sep 2021 23:25:12 +0000 Message-ID: <87o88m4yp3.fsf@posteo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50709 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) --- gnu/packages/shellutils.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 69e1d0d069..9091e9155f 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -10,6 +10,7 @@ ;;; Copyright =C2=A9 2020 aecepoglu ;;; Copyright =C2=A9 2020 Dion Mendel ;;; Copyright =C2=A9 2021 Brice Waegeneire +;;; Copyright =C2=A9 2021 Alexandr Vityazev ;;; ;;; This file is part of GNU Guix. ;;; --=20 2.33.0 --=20 Alexandr Vityazev From debbugs-submit-bounces@debbugs.gnu.org Sun Sep 26 06:13:16 2021 Received: (at 50709) by debbugs.gnu.org; 26 Sep 2021 10:13:16 +0000 Received: from localhost ([127.0.0.1]:35966 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUR9h-0006vp-HV for submit@debbugs.gnu.org; Sun, 26 Sep 2021 06:13:16 -0400 Received: from h87-96-130-155.cust.a3fiber.se ([87.96.130.155]:45112 helo=mail.yoctocell.xyz) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUR9e-0006vI-H0 for 50709@debbugs.gnu.org; Sun, 26 Sep 2021 06:13:08 -0400 From: Xinglu Chen DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yoctocell.xyz; s=mail; t=1632651176; bh=eBBqjYpk41bnHKOZPn7Ziy4DUGZi+Rz4rlYKufu6aFs=; h=From:To:Subject:In-Reply-To:References:Date; b=NZX8+rVAGXx79vZk81LiEbcJ1ogK5Huua00BNwkCsVgW7REE2XU5FQkQ2kctrRh6r ddbHOoez+R7WH+vAswLSvyPZZiYT8jyZz5Rll6ulUGLF8ier6vLplUXDyEfg/M+K+b N0hPXMjsa/fSSJ9Xt56bh4rucBIhL7hvZvDVzKtU= To: Alexandr Vityazev , 50709@debbugs.gnu.org Subject: Re: [bug#50709] [PATCH] gnu: Add zsh-syntax-highlighting. In-Reply-To: <87sfxy4zpa.fsf@posteo.org> References: <87sfxy4zpa.fsf@posteo.org> Date: Sun, 26 Sep 2021 12:12:51 +0200 Message-ID: <8735prk5lo.fsf@yoctocell.xyz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, Sep 20 2021, Alexandr Vityazev wrote: > * gnu/packages/shellutils.scm (zsh-syntax-highlighting): New variable. > --- > gnu/packages/shellutils.scm | 55 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 55 insertions(+) > > diff --gi [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 0.0 PDS_RDNS_DYNAMIC_FP RDNS_DYNAMIC with FP steps X-Debbugs-Envelope-To: 50709 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.9 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: On Mon, Sep 20 2021, Alexandr Vityazev wrote: > * gnu/packages/shellutils.scm (zsh-syntax-highlighting): New variable. > --- > gnu/packages/shellutils.scm | 55 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 55 insertions(+) > > diff --gi [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 2.0 PDS_OTHER_BAD_TLD Untrustworthy TLDs [URI: yoctocell.xyz (xyz)] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.5 FROM_SUSPICIOUS_NTLD From abused NTLD 0.4 RDNS_DYNAMIC Delivered to internal network by host with dynamic-looking rDNS 1.0 BULK_RE_SUSP_NTLD Precedence bulk and RE: from a suspicious TLD -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager 0.0 PDS_RDNS_DYNAMIC_FP RDNS_DYNAMIC with FP steps --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On Mon, Sep 20 2021, Alexandr Vityazev wrote: > * gnu/packages/shellutils.scm (zsh-syntax-highlighting): New variable. > --- > gnu/packages/shellutils.scm | 55 +++++++++++++++++++++++++++++++++++++ > 1 file changed, 55 insertions(+) > > diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm > index 94b5536df7..69e1d0d069 100644 > --- a/gnu/packages/shellutils.scm > +++ b/gnu/packages/shellutils.scm > @@ -138,6 +138,61 @@ text.") > as you type.") > (license license:expat))) >=20=20 > +(define-public zsh-syntax-highlighting > + (package > + (name "zsh-syntax-highlighting") > + (version "0.7.1") > + (source (origin > + (method git-fetch) > + (uri (git-reference > + (url "https://github.com/zsh-users/zsh-syntax-highli= ghting") > + (commit version))) > + (file-name (git-file-name name version)) > + (sha256 > + (base32 > + "039g3n59drk818ylcyvkciv8k9mf739cv6v4vis1h9fv9whbcmwl"))= )) > + (build-system gnu-build-system) > + (native-inputs > + `(("zsh" ,zsh))) > + (arguments > + ;; FIXME: Tests fail when running test regexp > + ;; there is no pcre module in the Guix zsh package > + `(#:tests? #f > + #:phases > + (modify-phases %standard-phases > + (delete 'configure) > + (add-before 'build 'add-all-md > + (lambda _ > + (copy-file "docs/highlighters.md" "docs/all.md") > + (make-file-writable "docs/all.md") > + #t)) Why not just invoke =E2=80=98make all=E2=80=99? Also, phases no longer have to return #t > + (replace 'check > + (lambda* (#:key tests? #:allow-other-keys) > + (when tests? > + (invoke "make" "test") > + (invoke "make" "perf")) > + #t)) > + (replace 'install > + (lambda* (#:key outputs #:allow-other-keys) > + (let* ((out (assoc-ref outputs "out")) > + (zsh-plugins > + (string-append out "/share/zsh/plugins/zsh-syntax-h= ighlighting")) > + (highlighters-dir (string-append zsh-plugins "/highl= ighters"))) > + (invoke "make" "all") Why is =E2=80=98make all=E2=80=99 invoked in the =E2=80=98install=E2=80=99 = phase? > + (install-file "zsh-syntax-highlighting.zsh" zsh-plugins) > + (install-file ".version" zsh-plugins) > + (install-file ".revision-hash" zsh-plugins) > + (copy-recursively "highlighters" highlighters-dir) Wouldn=E2=80=99t these things be handled by =E2=80=98make install=E2=80=99,= assuming that =E2=80=98PREFIX=E2=80=99 and =E2=80=98SHARE_DIR=E2=80=99 are set correctly. > + #t)))))) > + (home-page "https://github.com/zsh-users/zsh-syntax-highlighting") > + (synopsis "Fish shell-like syntax highlighting for zsh") =E2=80=9CZsh=E2=80=9D should be capitalized. > + (description > + "This package provides syntax highlighting for the shell zsh. =E2=80=9CThis package provides syntax highlighting for Zsh.=E2=80=9D > +It enables highlighting of commands whilst they are typed at a zsh Capitalize =E2=80=9CZsh=E2=80=9D. > +prompt into an interactive terminal. This helps in reviewing commands > +before running them, particularly in catching syntax errors.") > + (license license:expat))) =E2=80=98COPYING.md=E2=80=99 says BSD-3. And I couldn=E2=80=99t resist, so I just went ahead and made those changes= =E2=80=A6 :-) --=-=-= Content-Type: text/x-patch; charset=utf-8 Content-Disposition: attachment; filename=0001-gnu-Add-zsh-syntax-highlighting.patch Content-Transfer-Encoding: quoted-printable From=202cb00a93974f7efc7891e8f77fff1a3d96c7f692 Mon Sep 17 00:00:00 2001 Message-Id: <2cb00a93974f7efc7891e8f77fff1a3d96c7f692.1632651051.git.public= @yoctocell.xyz> From: Alexandr Vityazev Date: Mon, 20 Sep 2021 23:03:29 +0000 Subject: [PATCH] gnu: Add zsh-syntax-highlighting. * gnu/packages/shellutils.scm (zsh-syntax-highlighting): New variable. Co-authored-by: Xinglu Chen =2D-- gnu/packages/shellutils.scm | 56 ++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 94b5536df7..8726020ab3 100644 =2D-- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -10,6 +10,8 @@ ;;; Copyright =C2=A9 2020 aecepoglu ;;; Copyright =C2=A9 2020 Dion Mendel ;;; Copyright =C2=A9 2021 Brice Waegeneire +;;; Copyright =C2=A9 2021 Alexandr Vityazev +;;; Copyright =C2=A9 2021 Xinglu Chen ;;; ;;; This file is part of GNU Guix. ;;; @@ -46,7 +48,8 @@ (define-module (gnu packages shellutils) #:use-module (gnu packages readline) #:use-module (gnu packages ruby) #:use-module (gnu packages shells) =2D #:use-module (gnu packages tmux)) + #:use-module (gnu packages tmux) + #:use-module (ice-9 regex)) =20 (define-public boxes (package @@ -138,6 +141,57 @@ (define-public zsh-autosuggestions as you type.") (license license:expat))) =20 +(define-public zsh-syntax-highlighting + (package + (name "zsh-syntax-highlighting") + (version "0.7.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zsh-users/zsh-syntax-highligh= ting") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "039g3n59drk818ylcyvkciv8k9mf739cv6v4vis1h9fv9whbcmwl")))) + (build-system gnu-build-system) + (native-inputs + `(("zsh" ,zsh))) + (arguments + ;; FIXME: Tests fail when running test regexp + ;; there is no pcre module in the Guix zsh package + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'patch-paths + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* "Makefile" + (("/usr/local") out) + ((,(regexp-quote "share/$(NAME)")) "share/zsh/plugins/$(N= AME)"))))) + (add-after 'patch-paths 'make-writable + (lambda _ + (for-each make-file-writable + '("docs/highlighters.md" + "README.md")))) + (add-before 'build 'add-all-md + (lambda _ + (invoke "make" "all"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test") + (invoke "make" "perf"))))))) + (home-page "https://github.com/zsh-users/zsh-syntax-highlighting") + (synopsis "Fish shell-like syntax highlighting for Zsh") + (description + "This package provides syntax highlighting for Zsh. It enables +highlighting of commands whilst they are typed at a Zsh prompt into an +interactive terminal. This helps in reviewing commands before running the= m, +particularly in catching syntax errors.") + (license license:bsd-3))) + (define-public sh-z (package (name "sh-z") base-commit: c1bc2a43200d6c6016c2a4154799c73c86a54021 =2D-=20 2.33.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJJBAEBCAAzFiEEAVhh4yyK5+SEykIzrPUJmaL7XHkFAmFQR6MVHHB1YmxpY0B5 b2N0b2NlbGwueHl6AAoJEKz1CZmi+1x5oTcP/0MNgMiqasAbPnHfcRzFxp8Y6OpR hxDZKnK/aswOLqVkkXWPHJ5ANkQoU72RCjw1YvcdL44OqV4PI54bVEsKhOUbLMuk nLVPu9jtvrl+OWeCzAhPNuY2itvIIlHq+ftMzAdE4L/47dCV9V+z93qkofLTMjJY e6PCPfsPiedNczqU78L5Bhcqz0vJ+jeojDabhrfleVIDlR8bjRf4wDqaVoHJeg/y GHUoN6DlwWgFAmFNQfoBq+a4acS6G94viOvypRFe00yVKRQUlKFaCpIDkfgWY3zL 7scjjfQXXJDrVU3B1VpKvtZuaSZ3NIKg/Y/22Paq029RpTeQng4GoFSNl7++tvX2 cXXt8mKtEB8czdsTM6ZdrUgEF9FnnHDPC12D55jySRUmsjoJQljAErSy3cN+K2Xw XZhZs5pnM8VsaCoEDnQ7hgszBdvicK0UDJjvrUZ2lR+DGu8E4tWE2DjDRtCCi/P9 vaGe+RM+X6RK9sWQnCoNiNqZMkJtHHtZvf/PGt2XXcZPZlFpWgMtmNKTX0HT/xC6 nC9XDWtIKY283zMi/AZLX7kVt99toJ/ebT31CDBVlwlLxp7DuOKcKBOhIqc68/To +mTqOxCEQKVyZHuihe3cd1dXnDUCIR7chS0App98ZXm0Bx24Pcyc00K+VJSJVc1G Zu8pxIQTpUIIPqZn =YhX2 -----END PGP SIGNATURE----- --==-=-=-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 27 10:09:31 2021 Received: (at 50709) by debbugs.gnu.org; 27 Sep 2021 14:09:31 +0000 Received: from localhost ([127.0.0.1]:42174 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUrJz-00077Q-4R for submit@debbugs.gnu.org; Mon, 27 Sep 2021 10:09:31 -0400 Received: from mout01.posteo.de ([185.67.36.65]:36503) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUrJw-000779-GA for 50709@debbugs.gnu.org; Mon, 27 Sep 2021 10:09:29 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 3930D240027 for <50709@debbugs.gnu.org>; Mon, 27 Sep 2021 16:09:22 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1632751762; bh=aPMPq50+lSWJwaOCINZKgi+U6UYD1W91OxdnDx5Rbg8=; h=From:To:Cc:Subject:Date:From; b=nGExw4zhIZH2GVfvERvVVe+4XDXsr2j25FgcL5ycgMzYQ6RclZD59t72GhVOzyq1g p7wt7o9EPzh/56avB/zWgcF1/Bdi4XBVjlyAj2FTuHkt1aA55VNMqkj8wVy9mO+MNA qNbBFwFBnVL7CY4v17HLdT726CkTB6Qd+BpdM/0N1dEqeepoCx0mtipMGl1bxl8tQg ud/H0ULFfydj+7sHpro9B7HtLqaBgVjekmO8haII/WrcmoJ0XlJlK4Sa7NHcmwaHjQ Xx/sjK12JRazwu6g6TmBJS2XClLdowscV6ROgO9uW3KSdAdF+J32v3zhPndcaUyzSB rLc2lc6xOmcgg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HJ4JJ6ZvZz6tmL; Mon, 27 Sep 2021 16:09:20 +0200 (CEST) From: Alexandr Vityazev To: Xinglu Chen Subject: Re: bug#50709: [PATCH] gnu: Add zsh-syntax-highlighting. References: <87sfxy4zpa.fsf@posteo.org> <8735prk5lo.fsf@yoctocell.xyz> Date: Mon, 27 Sep 2021 14:09:26 +0000 In-Reply-To: <8735prk5lo.fsf@yoctocell.xyz> (Xinglu Chen's message of "Sun, 26 Sep 2021 12:12:51 +0200") Message-ID: <87ilymrtyh.fsf_-_@posteo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 50709 Cc: 50709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) On 2021-09-26, 12:12 +0200, Xinglu Chen wrote: > > Why is =E2=80=98make all=E2=80=99 invoked in the =E2=80=98install=E2=80= =99 phase? > Looks like carelessness and delirium. I agree with all the comments, the attached patch is much better, thanks for the corrections! --=20 Alexandr Vityazev From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 02 11:19:07 2021 Received: (at 50709) by debbugs.gnu.org; 2 Oct 2021 15:19:07 +0000 Received: from localhost ([127.0.0.1]:60297 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWgn5-00065M-8j for submit@debbugs.gnu.org; Sat, 02 Oct 2021 11:19:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50490) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWgn3-00064L-Qx for 50709@debbugs.gnu.org; Sat, 02 Oct 2021 11:19:06 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:55070) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mWgmy-0002ux-1W; Sat, 02 Oct 2021 11:19:00 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36502 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mWgmx-000193-Oc; Sat, 02 Oct 2021 11:18:59 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Alexandr Vityazev Subject: Re: bug#50709: [PATCH] gnu: Add zsh-syntax-highlighting. References: <87sfxy4zpa.fsf@posteo.org> <8735prk5lo.fsf@yoctocell.xyz> <87ilymrtyh.fsf_-_@posteo.org> Date: Sat, 02 Oct 2021 17:18:58 +0200 In-Reply-To: <87ilymrtyh.fsf_-_@posteo.org> (Alexandr Vityazev's message of "Mon, 27 Sep 2021 14:09:26 +0000") Message-ID: <87y27bv4il.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 50709 Cc: 50709@debbugs.gnu.org, Xinglu Chen X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) Hi Alexandr, Alexandr Vityazev skribis: > On 2021-09-26, 12:12 +0200, Xinglu Chen wrote: > >> >> Why is =E2=80=98make all=E2=80=99 invoked in the =E2=80=98install=E2=80= =99 phase? >> > Looks like carelessness and delirium. > > I agree with all the comments, the attached patch is much better, > thanks for the corrections! Looks like you forgot to attach the patch. :-) Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 02 14:52:15 2021 Received: (at 50709) by debbugs.gnu.org; 2 Oct 2021 18:52:15 +0000 Received: from localhost ([127.0.0.1]:60575 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWk7F-0007oL-Ng for submit@debbugs.gnu.org; Sat, 02 Oct 2021 14:52:15 -0400 Received: from mout01.posteo.de ([185.67.36.65]:56869) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWk7C-0007nn-Na for 50709@debbugs.gnu.org; Sat, 02 Oct 2021 14:52:08 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 16CB2240026 for <50709@debbugs.gnu.org>; Sat, 2 Oct 2021 20:51:59 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1633200720; bh=iGi6HrEU6kTr5EiXAWkyz8zNbrExUCbOVoiluTtRAuA=; h=From:To:Subject:Date:From; b=XNydfVpkXqR7gGpQLWgHmLCrVHTj9p+cGEcFYnCXqxc1izUZeDTpPMv6qKvOXCNO+ VYoku4w4f+TVa1nL3st30Mh93+Ccb+g9KkAtdcTDCnGyfKaynwbX/B9NQhkF55Cjkk 4DSF1Nk+oMNZIo7yJEJU7cnt8UL6i//41TqwvuOF0m6q5y+imFuFf2ammzP5FqtwwU EV57tzT6gJ7Yg5Dd9a/PfS/XUqlFgmnq2/vbBpb+ZbzhVeWcF09oovCsfv3DF+G8Gc jOHjVeOnsxweg+rTTFJUwG5Jhn8+cVRF+YHaO1inlZW9Z/N9Yc+997K4KjmqtYF0rp HFmGKmiO73e4w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HMGL66X6Fz6tm5 for <50709@debbugs.gnu.org>; Sat, 2 Oct 2021 20:51:58 +0200 (CEST) From: Alexandr Vityazev To: 50709@debbugs.gnu.org Subject: [PATCH] v2 gnu: Add zsh-syntax-highlighting. Date: Sat, 02 Oct 2021 18:52:00 +0000 Message-ID: <8735pj5kfj.fsf@posteo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 50709 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) * gnu/packages/shellutils.scm (zsh-syntax-highlighting): New variable. --- gnu/packages/shellutils.scm | 56 ++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 94b5536df7..8726020ab3 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -10,6 +10,8 @@ ;;; Copyright =C2=A9 2020 aecepoglu ;;; Copyright =C2=A9 2020 Dion Mendel ;;; Copyright =C2=A9 2021 Brice Waegeneire +;;; Copyright =C2=A9 2021 Alexandr Vityazev +;;; Copyright =C2=A9 2021 Xinglu Chen ;;; ;;; This file is part of GNU Guix. ;;; @@ -46,7 +48,8 @@ #:use-module (gnu packages readline) #:use-module (gnu packages ruby) #:use-module (gnu packages shells) - #:use-module (gnu packages tmux)) + #:use-module (gnu packages tmux) + #:use-module (ice-9 regex)) =20 (define-public boxes (package @@ -138,6 +141,57 @@ text.") as you type.") (license license:expat))) =20 +(define-public zsh-syntax-highlighting + (package + (name "zsh-syntax-highlighting") + (version "0.7.1") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/zsh-users/zsh-syntax-highligh= ting") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "039g3n59drk818ylcyvkciv8k9mf739cv6v4vis1h9fv9whbcmwl")))) + (build-system gnu-build-system) + (native-inputs + `(("zsh" ,zsh))) + (arguments + ;; FIXME: Tests fail when running test regexp + ;; there is no pcre module in the Guix zsh package + `(#:tests? #f + #:phases + (modify-phases %standard-phases + (delete 'configure) + (add-after 'unpack 'patch-paths + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (substitute* "Makefile" + (("/usr/local") out) + ((,(regexp-quote "share/$(NAME)")) "share/zsh/plugins/$(N= AME)"))))) + (add-after 'patch-paths 'make-writable + (lambda _ + (for-each make-file-writable + '("docs/highlighters.md" + "README.md")))) + (add-before 'build 'add-all-md + (lambda _ + (invoke "make" "all"))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "make" "test") + (invoke "make" "perf"))))))) + (home-page "https://github.com/zsh-users/zsh-syntax-highlighting") + (synopsis "Fish shell-like syntax highlighting for Zsh") + (description + "This package provides syntax highlighting for Zsh. It enables +highlighting of commands whilst they are typed at a Zsh prompt into an +interactive terminal. This helps in reviewing commands before running the= m, +particularly in catching syntax errors.") + (license license:bsd-3))) + (define-public sh-z (package (name "sh-z") --=20 2.33.0 --=20 Alexandr Vityazev From debbugs-submit-bounces@debbugs.gnu.org Sat Oct 02 14:54:53 2021 Received: (at 50709) by debbugs.gnu.org; 2 Oct 2021 18:54:53 +0000 Received: from localhost ([127.0.0.1]:60582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWk9t-0007uD-9J for submit@debbugs.gnu.org; Sat, 02 Oct 2021 14:54:53 -0400 Received: from mout02.posteo.de ([185.67.36.66]:40097) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mWk9r-0007tx-MA for 50709@debbugs.gnu.org; Sat, 02 Oct 2021 14:54:52 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 7A4D2240104 for <50709@debbugs.gnu.org>; Sat, 2 Oct 2021 20:54:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1633200885; bh=MRMs9ACqSFbKPYDy4YRB35lgeFsC9n2wlg/KYt1gNi8=; h=From:To:Cc:Subject:Date:From; b=VZyr4twwCx7pBknuxHOJ2U13V+Q7typjHx+Fi4seWWgQ3HCsEmvjk/SBIqyWaL4Q8 Z8xhJlQEHVcf0qHv0ZQta1vCc/zf9DiW6RfnhlCzTnl0uwSFvAApYpJpFHZ1QQSDyo /rpTT26rFJq788z+FQx79wMyuzEsfjcjrASptfPi02i7RtPFBNlUb7dhSxwdNQ4VRC 0l+qUfizGluRwuHpsb1ISAxH2gC5mFIwJ/zXzkkNJ0JR6FelruyzV8URNRt8DAxQTN YbOEq5tyvBbRJ8kYLMTDQpO/cNAhU1I01cGQflcvgGhdy98UE4/4V2yPnv9KJjmvaY VrtlOgOJawOmg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HMGPJ0M9Qz6tmF; Sat, 2 Oct 2021 20:54:43 +0200 (CEST) From: Alexandr Vityazev To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#50709: [PATCH] gnu: Add zsh-syntax-highlighting. References: <87sfxy4zpa.fsf@posteo.org> <8735prk5lo.fsf@yoctocell.xyz> <87ilymrtyh.fsf_-_@posteo.org> <87y27bv4il.fsf_-_@gnu.org> Date: Sat, 02 Oct 2021 18:54:46 +0000 In-Reply-To: <87y27bv4il.fsf_-_@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s?= =?utf-8?Q?=22's?= message of "Sat, 02 Oct 2021 17:18:58 +0200") Message-ID: <87y27b45qh.fsf_-_@posteo.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: 50709 Cc: Xinglu Chen , 50709@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.3 (-) Hi Ludo=E2=80=99, On 2021-10-02, 17:18 +0200, Ludovic Court=C3=A8s wrote: > Hi Alexandr, > > Alexandr Vityazev skribis: > >> On 2021-09-26, 12:12 +0200, Xinglu Chen wrote: >> >>> >>> Why is =E2=80=98make all=E2=80=99 invoked in the =E2=80=98install=E2=80= =99 phase? >>> >> Looks like carelessness and delirium. >> >> I agree with all the comments, the attached patch is much better, >> thanks for the corrections! > > Looks like you forgot to attach the patch. :-) > Oh, sorry about that. I sent it. --=20 Alexandr Vityazev From debbugs-submit-bounces@debbugs.gnu.org Wed Oct 13 04:41:09 2021 Received: (at 50709-done) by debbugs.gnu.org; 13 Oct 2021 08:41:09 +0000 Received: from localhost ([127.0.0.1]:58023 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maZoy-0001Gv-Pl for submit@debbugs.gnu.org; Wed, 13 Oct 2021 04:41:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37286) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maZot-0001GH-RZ for 50709-done@debbugs.gnu.org; Wed, 13 Oct 2021 04:41:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:49838) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maZom-0003XO-PV; Wed, 13 Oct 2021 04:40:56 -0400 Received: from 91-160-117-201.subs.proxad.net ([91.160.117.201]:50093 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maZol-0006n8-Uy; Wed, 13 Oct 2021 04:40:56 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Alexandr Vityazev Subject: Re: bug#50709: [PATCH] gnu: Add zsh-syntax-highlighting. References: <87sfxy4zpa.fsf@posteo.org> <8735pj5kfj.fsf@posteo.org> Date: Wed, 13 Oct 2021 10:40:52 +0200 In-Reply-To: <8735pj5kfj.fsf@posteo.org> (Alexandr Vityazev's message of "Sat, 02 Oct 2021 18:52:00 +0000") Message-ID: <87a6jdtizv.fsf_-_@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 50709-done Cc: 50709-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Hi, Alexandr Vityazev skribis: > * gnu/packages/shellutils.scm (zsh-syntax-highlighting): New variable. Applied! I took the liberty to remove the =E2=80=98regexp-quote=E2=80=99 c= all, which I think did not help readability. Thanks, Ludo=E2=80=99. From unknown Wed Jun 18 00:27:22 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 Nov 2021 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator