GNU bug report logs - #60794
[PATCH] (rainbow.el) Add matching option to rainbow-colorize-hexadecimal-without-sharp

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Severity: wishlist; Reported by: Dimitri Belopopsky <dimitri@HIDDEN>; Keywords: patch; dated Fri, 13 Jan 2023 23:40:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefankangas@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 13 Jan 2023 23:39:27 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 13 18:39:26 2023
Received: from localhost ([127.0.0.1]:52703 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1pGTdu-0000DD-GX
	for submit <at> debbugs.gnu.org; Fri, 13 Jan 2023 18:39:26 -0500
Received: from lists.gnu.org ([209.51.188.17]:40530)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <dimitribelo@HIDDEN>) id 1pGQbE-0001DI-AF
 for submit <at> debbugs.gnu.org; Fri, 13 Jan 2023 15:24:28 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <dimitribelo@HIDDEN>)
 id 1pGQbE-0003GH-59
 for bug-gnu-emacs@HIDDEN; Fri, 13 Jan 2023 15:24:28 -0500
Received: from mail-qt1-f169.google.com ([209.85.160.169])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <dimitribelo@HIDDEN>)
 id 1pGQbC-0002Zu-OG
 for bug-gnu-emacs@HIDDEN; Fri, 13 Jan 2023 15:24:27 -0500
Received: by mail-qt1-f169.google.com with SMTP id jr10so12738176qtb.7
 for <bug-gnu-emacs@HIDDEN>; Fri, 13 Jan 2023 12:24:26 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=to:subject:message-id:date:from:mime-version:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=tLrdWF/wngCe+L/vgkaPmB3lpNvWeRJ6r3N8EnVhH/I=;
 b=giGzzk9LGFH7M9PJbQ+eIrLg+ZyObsWS40uWJGyDK7Mh2mF0ZIqvWsf2R74CN5VDPk
 3o5mJOo8SWQmHGt2EpJdi3tqkE+SLCLMIFyO3V6bXrJg6U+6z+7mgRwCKHLps+4Esu3c
 3uQzty6Z/oubtrtNmBqaD4gV3Xwx+FfeacJx3OSB+PUeJYuF7qMMPBZ1PftpGJ/z1B5x
 /0UL1azOmuQTs/z1I/WDu2CMZ9PrUxMR+z1H8S7POKAseurmsAgPfbTiJApqMudXt/Zr
 kzqPXMOLBURZ8ghwKXvEqMKSiTdDNCuEolAWQ5HoFNvkgeJ9WmuRhNLWAdkMNZJyynTK
 edFg==
X-Gm-Message-State: AFqh2koDWHMpCAlKrleOpZQAMIiK5U8sIZY2tp+US5hcWsKJkqvI8teh
 Mbgm2EiA8T4jysFqo9vNFMDr5dRRaUQv/IvUSz3OXBJbKgWvAw==
X-Google-Smtp-Source: AMrXdXtUAcvFHiPtAilt4Hw2eNdHOCqcceVmxohkxmIN5xs3eCASwyLegwVmdLNPHp0MQ53xi1/yBhUzqJyahOe61eM=
X-Received: by 2002:ac8:7a8e:0:b0:3b1:5dc1:a4a3 with SMTP id
 x14-20020ac87a8e000000b003b15dc1a4a3mr301764qtr.674.1673641465279; Fri, 13
 Jan 2023 12:24:25 -0800 (PST)
MIME-Version: 1.0
From: Dimitri Belopopsky <dimitri@HIDDEN>
Date: Fri, 13 Jan 2023 21:24:14 +0100
Message-ID: <CA+46MXa0vpsEgWaEbHMgcpXWG_Xz+duKAOJUYaUnVjEPs61J+A@HIDDEN>
Subject: [PATCH] (rainbow.el) Add matching option to
 rainbow-colorize-hexadecimal-without-sharp
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/mixed; boundary="000000000000054eb405f22b05ee"
Received-SPF: pass client-ip=209.85.160.169;
 envelope-from=dimitribelo@HIDDEN; helo=mail-qt1-f169.google.com
X-Spam_score_int: -15
X-Spam_score: -1.6
X-Spam_bar: -
X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9,
 FREEMAIL_FORGED_FROMDOMAIN=0.092, FREEMAIL_FROM=0.001,
 HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -1.1 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Fri, 13 Jan 2023 18:39:24 -0500
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.1 (--)

--000000000000054eb405f22b05ee
Content-Type: multipart/alternative; boundary="000000000000054eb205f22b05ec"

--000000000000054eb205f22b05ec
Content-Type: text/plain; charset="UTF-8"

Hello,

I made a modification to "rainbow-colorize-hexadecimal-without-sharp" in
rainbow-mode which allows passing a "match" option. I needed this to match
subgroups on complex strings, in my case to highlight the hexadecimal
inside Color::hex("FFF") without colouring the whole expression.

I think it could be useful to more people.

Kind regards,

--000000000000054eb205f22b05ec
Content-Type: text/html; charset="UTF-8"

<div dir="ltr"><div><div><div>Hello,<br><br></div>I made a modification to &quot;rainbow-colorize-hexadecimal-without-sharp&quot;
 in rainbow-mode which allows passing a &quot;match&quot; option. I needed this to
 match subgroups on complex strings, in my case to highlight the 
hexadecimal inside Color::hex(&quot;FFF&quot;) without colouring the whole 
expression.<br><br></div>I think it could be useful to more people.<br><br></div>Kind regards,<br></div>

--000000000000054eb205f22b05ec--

--000000000000054eb405f22b05ee
Content-Type: text/x-patch; charset="US-ASCII"; 
	name="0001-Add-matching-option-to-rainbow-colorize-hexadecimal-.patch"
Content-Disposition: attachment; 
	filename="0001-Add-matching-option-to-rainbow-colorize-hexadecimal-.patch"
Content-Transfer-Encoding: base64
Content-ID: <f_lcuyw13n0>
X-Attachment-Id: f_lcuyw13n0

RnJvbSA2OTE1NDVmZGE0OGZkMzAyNjFiNjI1MDNhOGJkYmNiY2JiZTllNDlkIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBEaW1pdHJpIEJlbG9wb3Bza3kgPGRpbWl0cmlAYmVsb3BvcHNr
eS5jb20+CkRhdGU6IE1vbiwgMjggTm92IDIwMjIgMjM6MTU6MDMgKzAxMDAKU3ViamVjdDogW1BB
VENIXSBBZGQgbWF0Y2hpbmcgb3B0aW9uIHRvCiByYWluYm93LWNvbG9yaXplLWhleGFkZWNpbWFs
LXdpdGhvdXQtc2hhcnAKCiogcmFpbmJvdy1tb2RlLmVsIChyYWluYm93LWNvbG9yaXplLWhleGFk
ZWNpbW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y
dGllcyAxKSkgbWF0Y2gpKQogCiAoZGVmdW4gcmFpbmJvdy1jb2xvcml6ZS1ieS1hc3NvYyAoYXNz
b2MtbGlzdCkKICAgIkNvbG9yaXplIGEgbWF0Y2ggd2l0aCBpdHMgYXNzb2NpYXRpb24gZnJvbSBB
U1NPQy1MSVNULiIKLS0gCjIuMzQuMQoK
--000000000000054eb405f22b05ee--




Acknowledgement sent to Dimitri Belopopsky <dimitri@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#60794; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 4 Sep 2023 09:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.