From unknown Thu Jun 19 12:33:35 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#55944 <55944@debbugs.gnu.org> To: bug#55944 <55944@debbugs.gnu.org> Subject: Status: [PATCH] Fix dns-mode-font-lock-keywords Reply-To: bug#55944 <55944@debbugs.gnu.org> Date: Thu, 19 Jun 2025 19:33:35 +0000 retitle 55944 [PATCH] Fix dns-mode-font-lock-keywords reassign 55944 emacs submitter 55944 Lassi Kortela severity 55944 normal tag 55944 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 13 10:20:26 2022 Received: (at submit) by debbugs.gnu.org; 13 Jun 2022 14:20:26 +0000 Received: from localhost ([127.0.0.1]:60026 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0kvZ-0002LN-L2 for submit@debbugs.gnu.org; Mon, 13 Jun 2022 10:20:26 -0400 Received: from lists.gnu.org ([209.51.188.17]:46528) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0hlx-0008Lr-DZ for submit@debbugs.gnu.org; Mon, 13 Jun 2022 06:58:21 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0hlx-0001wx-3g for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2022 06:58:17 -0400 Received: from relay11.mail.gandi.net ([217.70.178.231]:44101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o0hlu-0003hi-UQ for bug-gnu-emacs@gnu.org; Mon, 13 Jun 2022 06:58:16 -0400 Received: (Authenticated sender: lassi@lassi.io) by mail.gandi.net (Postfix) with ESMTPSA id 69593100006 for ; Mon, 13 Jun 2022 10:58:09 +0000 (UTC) Content-Type: multipart/mixed; boundary="------------OBzz0fQiOq4PlKr0w24bVmSp" Message-ID: Date: Mon, 13 Jun 2022 13:58:08 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Content-Language: en-US To: bug-gnu-emacs@gnu.org From: Lassi Kortela Subject: [PATCH] Fix dns-mode-font-lock-keywords Received-SPF: pass client-ip=217.70.178.231; envelope-from=lassi@lassi.io; helo=relay11.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 13 Jun 2022 10:20:24 -0400 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.7 (--) This is a multi-part message in MIME format. --------------OBzz0fQiOq4PlKr0w24bVmSp Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Attached is a simple fix to the syntax highlighting of dns-mode. For example, IN and SOA are reserved words. Instead of highlighting only the full words IN and SOA, dns-mode would highlight any word that has IN or SOA as a substring. This patch fixes the use of regexp-opt such that reserved words are only highlighted when they are full words. --------------OBzz0fQiOq4PlKr0w24bVmSp Content-Type: text/plain; charset=UTF-8; name="dns-mode-font-lock-keywords.patch" Content-Disposition: attachment; filename="dns-mode-font-lock-keywords.patch" Content-Transfer-Encoding: base64 LS0tIGRucy1tb2RlLmVsLm9yaWcJMjAyMi0wNi0xMyAxMzoyNTowMy4wMDAwMDAwMDAgKzAz MDAKKysrIGRucy1tb2RlLmVsCTIwMjItMDYtMTMgMTM6MzE6MTUuMDAwMDAwMDAwICswMzAw CkBAIC0xMTAsMTEgKzExMCwxMSBAQAogCQkJIjI2LjEiICdzZXQpCiAKIChkZWZjdXN0b20g ZG5zLW1vZGUtZm9udC1sb2NrLWtleXdvcmRzCi0gIGAoKCwoY29uY2F0ICJeXFwkIiAocmVn ZXhwLW9wdCBkbnMtbW9kZS1jb250cm9sLWVudGl0aWVzKSkKKyAgYCgoLChjb25jYXQgIl5c XCQiIChyZWdleHAtb3B0IGRucy1tb2RlLWNvbnRyb2wtZW50aXRpZXMpICJcXD4iKQogICAg ICAwICxkbnMtbW9kZS1jb250cm9sLWVudGl0eS1mYWNlKQogICAgICgiXlxcJFthLXowLTlB LVpdKyIgMCAsZG5zLW1vZGUtYmFkLWNvbnRyb2wtZW50aXR5LWZhY2UpCi0gICAgKCwocmVn ZXhwLW9wdCBkbnMtbW9kZS1jbGFzc2VzKSAwICxkbnMtbW9kZS1jbGFzcy1mYWNlKQotICAg ICgsKHJlZ2V4cC1vcHQgZG5zLW1vZGUtdHlwZXMpIDAgLGRucy1tb2RlLXR5cGUtZmFjZSkp CisgICAgKCwocmVnZXhwLW9wdCBkbnMtbW9kZS1jbGFzc2VzICd3b3JkcykgMCAsZG5zLW1v ZGUtY2xhc3MtZmFjZSkKKyAgICAoLChyZWdleHAtb3B0IGRucy1tb2RlLXR5cGVzICd3b3Jk cykgMCAsZG5zLW1vZGUtdHlwZS1mYWNlKSkKICAgIkZvbnQgbG9jayBrZXl3b3JkcyB1c2Vk IHRvIGhpZ2hsaWdodCB0ZXh0IGluIEROUyBtYXN0ZXIgZmlsZSBtb2RlLiIKICAgOnZlcnNp b24gIjI2LjEiCiAgIDp0eXBlICdzZXhwKQo= --------------OBzz0fQiOq4PlKr0w24bVmSp-- From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 13 10:33:29 2022 Received: (at 55944) by debbugs.gnu.org; 13 Jun 2022 14:33:29 +0000 Received: from localhost ([127.0.0.1]:60041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0l8C-0004so-SS for submit@debbugs.gnu.org; Mon, 13 Jun 2022 10:33:29 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38682) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0l8A-0004sW-HU for 55944@debbugs.gnu.org; Mon, 13 Jun 2022 10:33:27 -0400 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=a657TQQ97mf7z9gA5vTOV2fRfr5Q6NEwI7fBS8ErxiM=; b=tIHFCN/1+mfyprIZZoeA5DvmFJ r2j75somadPGzgXCMF9T3BNP4DNR63gQWEeZfMpb0FqEZzots3Poiupg17OqnuMrbzSq3Vm+LRg1v XCKxjLHzhioGjN/oKTQyFZyp/6tiJDSC9Q9a/5scrPR8Ibv9ElhvnzyqTbtrqy2R1ux8=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o0l81-00013P-Hy; Mon, 13 Jun 2022 16:33:19 +0200 From: Lars Ingebrigtsen To: Lassi Kortela Subject: Re: bug#55944: [PATCH] Fix dns-mode-font-lock-keywords References: X-Now-Playing: Kelly Lee Owens's _Inner Song_: "On" Date: Mon, 13 Jun 2022 16:33:16 +0200 In-Reply-To: (Lassi Kortela's message of "Mon, 13 Jun 2022 13:58:08 +0300") Message-ID: <87a6agsker.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: Lassi Kortela writes: > Attached is a simple fix to the syntax highlighting of dns-mode. > > For example, IN and SOA are reserved words. Instead of highlighting > only the full words IN and SOA, dns-mode would highlight an [...] 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: 55944 Cc: 55944@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 (---) Lassi Kortela writes: > Attached is a simple fix to the syntax highlighting of dns-mode. > > For example, IN and SOA are reserved words. Instead of highlighting > only the full words IN and SOA, dns-mode would highlight any word that > has IN or SOA as a substring. This patch fixes the use of regexp-opt > such that reserved words are only highlighted when they are full > words. Thanks; pushed to Emacs 29. This change was small enough to apply without assigning copyright to the FSF, but for future patches you want to submit, it might make sense to get the paperwork started now, so that subsequent patches can be applied speedily. Would you be willing to sign such paperwork? From debbugs-submit-bounces@debbugs.gnu.org Mon Jun 13 10:33:33 2022 Received: (at control) by debbugs.gnu.org; 13 Jun 2022 14:33:33 +0000 Received: from localhost ([127.0.0.1]:60044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0l8H-0004t4-30 for submit@debbugs.gnu.org; Mon, 13 Jun 2022 10:33:33 -0400 Received: from quimby.gnus.org ([95.216.78.240]:38704) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1o0l8F-0004sg-Sg for control@debbugs.gnu.org; Mon, 13 Jun 2022 10:33:32 -0400 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=xzg3LWEdsdqrly/Dyp192lolF3WOc/XPbhqmxKuHREM=; b=Ou05ypJh9t6Q3ox+5QU8+pW/cJ WrBIJd2dRgYanvYNziN3wmu5BxsdmPHPpvTxZ1SVdEyRc+1dy3MDM7nh/k2EYt0wIBC0h4VEX50tt SfWRqfldYFlMwkAoG66HHwTRa1GRKce720Salglkp1aSlKJZs6BY4IUMY6kLLN+lm7/U=; Received: from [84.212.220.105] (helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1o0l87-00013X-SY for control@debbugs.gnu.org; Mon, 13 Jun 2022 16:33:25 +0200 Date: Mon, 13 Jun 2022 16:33:22 +0200 Message-Id: <878rq0skel.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #55944 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 55944 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 55944 29.1 quit From unknown Thu Jun 19 12:33:35 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 12 Jul 2022 11:24:07 +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