From unknown Sun Jun 22 03:57:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53568: Keyword "setx" in `bat-mode` Resent-From: Arni Magnusson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jan 2022 04:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 53568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 53568@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16432575823622 (code B ref -1); Thu, 27 Jan 2022 04:27:02 +0000 Received: (at submit) by debbugs.gnu.org; 27 Jan 2022 04:26:22 +0000 Received: from localhost ([127.0.0.1]:54017 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCwMX-0000wL-P8 for submit@debbugs.gnu.org; Wed, 26 Jan 2022 23:26:22 -0500 Received: from lists.gnu.org ([209.51.188.17]:38600) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nCwEX-0000j4-VW for submit@debbugs.gnu.org; Wed, 26 Jan 2022 23:18:06 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nCwEX-0006Wq-LB for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 23:18:05 -0500 Received: from [2607:f8b0:4864:20::22c] (port=45017 helo=mail-oi1-x22c.google.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nCwEW-0004FX-1L for bug-gnu-emacs@gnu.org; Wed, 26 Jan 2022 23:18:05 -0500 Received: by mail-oi1-x22c.google.com with SMTP id s9so3604672oib.11 for ; Wed, 26 Jan 2022 20:18:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:from:date:message-id:subject:to; bh=eYX0uwMpA5UmHHjQb7+VAi2KMKkS8Hez8gOVAOYc1As=; b=p6+lpxbaPxlII53Rq/AXDWY0ZQ8G/+kThsDp31sp1tutW6owtNybRL86pxUbJJIRjS idAkW7Rl3K7CtADTLPD781Xn77hV+yq721Dlw07Fu2yoHWyhNEm2qcjkx0a1WJIpOf07 QHxTtiWFl8KE8lk+Ugc4Cr9eL7TpmWHo4tE7NXTZEwaSD75w5gVwc11IQWTtRKsy4qiI nKvpHYJrKjFxgR/RCTnB+dxq2bXkGoD4Fyq0/vh421h6sabE1L+judpFlxWZMhz8/tf5 oRu2eC2TMUALJ9453gR8mH3ymu6IV00cQc3cbmncRNDX7Vt4OpWUBwCUJf5VTKNG/6iN UwXA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=eYX0uwMpA5UmHHjQb7+VAi2KMKkS8Hez8gOVAOYc1As=; b=3rndRR229wil0/gpZ4Gkk+/ciC38oYb8WZInf6fIxAPpg6Q2uo/Ww9YoQg2Plfpgg0 y5hkDS44cufY/51s2RgVLQjqTNfuc1RZ+jA6anYCZKDCIP81FPifeoge5wXt9KgYQC9G KO43U+YJKnOVI49htFeLyXE2apaQPWO/h8kjXJl+56Jf3fsrLBb1GDVSKL88dayAgHqv xpq6oxJPTjwoaRM8qxAEVPkuzDCIK3qNtzpE62FXOOUatmLctqbSV066zvETI3qObK5K hlj7UKDw5z8UyqUJOe+HTooVibahDpzW7392NR+eXXvQHY/FnVx29wYkUZ+r8GL77WjP zz2Q== X-Gm-Message-State: AOAM5310VwRvYn2ftqZZ/JkHiAiSPSRLNAqyn1MWKZEc8AmJRaX87Ymt qv2UjUriefzpqKeGrou5FWjjpMBhm5kDETFIKA8NHVOA1YOW2mOK X-Google-Smtp-Source: ABdhPJxnaoY+P2P885lNTdjXERE9joXyYJNU2PL/Sxx1eOLRon9/NmmyuMYTWljpOFBHlNbXyz9AV13MqjQk/sfdMow= X-Received: by 2002:a05:6808:f86:: with SMTP id o6mr3363305oiw.311.1643257080454; Wed, 26 Jan 2022 20:18:00 -0800 (PST) MIME-Version: 1.0 From: Arni Magnusson Date: Thu, 27 Jan 2022 15:17:48 +1100 Message-ID: Content-Type: multipart/mixed; boundary="0000000000008e4afd05d6889a4d" X-Host-Lookup-Failed: Reverse DNS lookup failed for 2607:f8b0:4864:20::22c (failed) Received-SPF: pass client-ip=2607:f8b0:4864:20::22c; envelope-from=thisisarni@gmail.com; helo=mail-oi1-x22c.google.com X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, PDS_HP_HELO_NORDNS=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.1 (/) X-Mailman-Approved-At: Wed, 26 Jan 2022 23:26:20 -0500 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 (--) --0000000000008e4afd05d6889a4d Content-Type: multipart/alternative; boundary="0000000000008e4afc05d6889a4b" --0000000000008e4afc05d6889a4b Content-Type: text/plain; charset="UTF-8" Hi, As the author of bat-mode, I'd like to suggest adding syntax highlighting support for the 'setx' command and the subsequent variable name. Working from bat-mode.el in the current git repository, I added "setx" to the list of commands and also tweaked the matcher for `font-lock-variable-name-face`. See the attached patch. To see the improved syntax highlighting, this example code can be used: xcopy sty c:\home\latex\sty\spc /s /y setx TEXINPUTS .\\;c:\home\latex\\; echo Installation completed Cheers, Arni --0000000000008e4afc05d6889a4b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi,=

As the author of bat-mod= e, I'd like to suggest adding syntax highlighting support for the '= setx' command and the subsequent variable name.

Working from bat-mode.el in the current git repo= sitory, I added "setx" to the list of commands and also tweaked t= he matcher for `font-lock-variable-name-face`. See the attached patch.

To see the improved=C2=A0synt= ax highlighting, this example code can be used:

xcopy sty c:\home\la= tex\sty\spc /s /y
setx TEXINPUTS .\\;c:\home\latex\\;
echo Installati= on completed

C= heers,
Arni


--0000000000008e4afc05d6889a4b-- --0000000000008e4afd05d6889a4d Content-Type: text/x-patch; charset="US-ASCII"; name="bat-mode.el.patch" Content-Disposition: attachment; filename="bat-mode.el.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kywghf7j0 ZGlmZiAtLWdpdCBhL2xpc3AvcHJvZ21vZGVzL2JhdC1tb2RlLmVsIGIvbGlzcC9wcm9nbW9kZXMv YmF0LW1vZGUuZWwKaW5kZXggN2VmMjUwMGU0Ni4uNmJhYzI5N2EyOSAxMDA2NDQKLS0tIGEvbGlz cC9wcm9nbW9kZXMvYmF0LW1vZGUuZWwKKysrIGIvbGlzcC9wcm9nbW9kZXMvYmF0LW1vZGUuZWwK QEAgLTcxLDggKzcxLDggQEAKICAgICAgICAgICAgICAiZG9za2V5IiAiZWNobyIgImVuZGxvY2Fs IiAiZXJhc2UiICJmYyIgImZpbmQiICJmaW5kc3RyIiAiZm9ybWF0IgogICAgICAgICAgICAgICJm dHlwZSIgImxhYmVsIiAibWQiICJta2RpciIgIm1vcmUiICJtb3ZlIiAibmV0IiAicGF0aCIgInBh dXNlIgogICAgICAgICAgICAgICJwb3BkIiAicHJvbXB0IiAicHVzaGQiICJyZCIgInJlbiIgInJl bmFtZSIgInJlcGxhY2UiICJybWRpciIgInNldCIKLSAgICAgICAgICAgICAic2V0bG9jYWwiICJz aGlmdCIgInNvcnQiICJzdWJzdCIgInRpbWUiICJ0aXRsZSIgInRyZWUiICJ0eXBlIgotICAgICAg ICAgICAgICJ2ZXIiICJ2b2wiICJ4Y29weSIpKQorICAgICAgICAgICAgICJzZXRsb2NhbCIgInNl dHgiICJzaGlmdCIgInNvcnQiICJzdWJzdCIgInRpbWUiICJ0aXRsZSIgInRyZWUiCisgICAgICAg ICAgICAgInR5cGUiICJ2ZXIiICJ2b2wiICJ4Y29weSIpKQogICAgICAgICAgIChDT05UUk9MRkxP VwogICAgICAgICAgICAnKCJjYWxsIiAiY21kIiAiZGVmaW5lZCIgImRvIiAiZWxzZSIgImVxdSIg ImV4aXN0IiAiZXhpdCIgImZvciIgImdlcSIKICAgICAgICAgICAgICAiZ290byIgImd0ciIgImlm IiAiaW4iICJsZXEiICJsc3MiICJuZXEiICJub3QiICJzdGFydCIpKQpAQCAtODIsNyArODIsNyBA QAogICAgICAgICAgKDIgZm9udC1sb2NrLWNvbnN0YW50LWZhY2UgdCkpCiAgICAgICAgICgiXjpb XjpdLioiCiAgICAgICAgICAuICdiYXQtbGFiZWwtZmFjZSkKLSAgICAgICAgKCJcXF88XFwoZGVm aW5lZFxcfHNldFxcKVxcXz5bIFx0XSpcXChcXChcXHN3XFx8XFxzX1xcKStcXCkiCisgICAgICAg ICgiXFxfPFxcKGRlZmluZWRcXHxzZXRcXHxzZXR4XFwpXFxfPlsgXHRdKlxcKFxcKFxcc3dcXHxc XHNfXFwpK1xcKSIKICAgICAgICAgICgyIGZvbnQtbG9jay12YXJpYWJsZS1uYW1lLWZhY2UpKQog ICAgICAgICAoIiV+XFwoWzAtOV1cXCkiCiAgICAgICAgICAoMSBmb250LWxvY2stdmFyaWFibGUt bmFtZS1mYWNlKSkK --0000000000008e4afd05d6889a4d-- From unknown Sun Jun 22 03:57:50 2025 X-Loop: help-debbugs@gnu.org Subject: bug#53568: Keyword "setx" in `bat-mode` Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 27 Jan 2022 16:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53568 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Arni Magnusson Cc: 53568@debbugs.gnu.org Received: via spool by 53568-submit@debbugs.gnu.org id=B53568.164329997421967 (code B ref 53568); Thu, 27 Jan 2022 16:13:02 +0000 Received: (at 53568) by debbugs.gnu.org; 27 Jan 2022 16:12:54 +0000 Received: from localhost ([127.0.0.1]:56259 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nD7OH-0005iF-Q2 for submit@debbugs.gnu.org; Thu, 27 Jan 2022 11:12:53 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60304) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nD7OG-0005i1-Kp for 53568@debbugs.gnu.org; Thu, 27 Jan 2022 11:12:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=d2eUZLtgGlcIh+gr9FQsmk4cyxlzW+iqBBStDfcp3bs=; b=HOoEmV9e6ctxNmsjrzS5zhIJKV 69sCwoPRcYD0IsfUtiOz1FU7NY9u8wJe3SiqtE2Mr4gpuZ9kVk+zhk/Ccs3+TBZfDB+KsGV613azS cq3BmdjiSLM6AJPa/VotJZvM32GmfIBTGe2OZMY/ZefxKhlT+TFKpiTS/yU8MztHfZSQ=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nD7O7-0008OG-LW; Thu, 27 Jan 2022 17:12:46 +0100 From: Lars Ingebrigtsen References: X-Now-Playing: David Sylvian's _Secrets of the Beehive_: "Promise (The Cult of Eurydice)" Date: Thu, 27 Jan 2022 17:12:42 +0100 In-Reply-To: (Arni Magnusson's message of "Thu, 27 Jan 2022 15:17:48 +1100") Message-ID: <87bkzxma2t.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: Arni Magnusson writes: > As the author of bat-mode, I'd like to suggest adding syntax highlighting support > for the 'setx' command and the subsequent variable name. > > Working from bat-mode.el in the current git repositor [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) 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 (---) Arni Magnusson writes: > As the author of bat-mode, I'd like to suggest adding syntax highlighting support > for the 'setx' command and the subsequent variable name. > > Working from bat-mode.el in the current git repository, I added "setx" to the list of > commands and also tweaked the matcher for `font-lock-variable-name-face`. See > the attached patch. Thanks; pushed to Emacs 29 (with an added ChangeLog-style commit message). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 27 11:13:07 2022 Received: (at control) by debbugs.gnu.org; 27 Jan 2022 16:13:07 +0000 Received: from localhost ([127.0.0.1]:56263 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nD7OV-0005j9-0U for submit@debbugs.gnu.org; Thu, 27 Jan 2022 11:13:07 -0500 Received: from quimby.gnus.org ([95.216.78.240]:60318) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nD7OT-0005iX-Q2 for control@debbugs.gnu.org; Thu, 27 Jan 2022 11:13:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=Hg11/azIifl6lVBM5+2HXm6xbV+pGDgSPSnOGN1Psxc=; b=qF9AI7VfMqwCcfF7MjFQas71J7 Hbwyzh4Q9D7LOWWTvCYRyHa9f40A5U6wzGENrP4Wxgk/pfK/c12mcXOJdOSXwZoVgX9EhEo8gaPLN ea246NkkBu5ydAD1nqwcuP3lxkvLozVPxaCogbXIkGRjWFIl6mhdZSqhXdevEcJE1gvM=; Received: from [84.212.220.105] (helo=giant) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nD7OL-0008OR-Pf for control@debbugs.gnu.org; Thu, 27 Jan 2022 17:12:59 +0100 Date: Thu, 27 Jan 2022 17:12:55 +0100 Message-Id: <87a6fhma2g.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #53568 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.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 @@CONTACT_ADDRESS@@ for details. Content preview: close 53568 29.1 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: control 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 (---) close 53568 29.1 quit