From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74308: 30.0.92; emacs-lisp font-locking word regexp Date: Mon, 11 Nov 2024 14:30:35 +0200 Message-ID: <86zfm6j6l0.fsf@gnu.org> References: <87ed3iwacp.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33149"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74308@debbugs.gnu.org To: Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 11 13:31:18 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tATZb-0008QK-Lk for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Nov 2024 13:31:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tATZR-0007or-2q; Mon, 11 Nov 2024 07:31:05 -0500 Original-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 ) id 1tATZO-0007o7-Cn for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 07:31:02 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tATZO-0002fH-3m for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 07:31:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=SjNfYHpO3+8WEZrx6u++pydzx935jXCb/6J4mv2+gpM=; b=GpvGiwXDL2NQveHwPFt7YKSxKyt1bN40oshRamJodNHB7yV5a1pi0XbcFkic/19gMUGiUVqGmjaH3apovrZsqr4Xc+2Oxj9vPSl5uVKffHNdNT+RyXrpsMbzymATroweQ3hX8GcJcmGg9g18+vQA4yI63DYTbWDkL7cPl143DK3HSOILb2RPjaZehVNxJbK96blz0bmqu8lTjAaIhm9nnOYJUcGCuLo9fdNlCtlVghMRuwArFVNH7ENL4E0x2a1xJSgK3dlzPa93taMdoSK9k5gum7vL+/r1I7aqD5hfbdsnCxXMbEZGkwxBq7pVrQpigR31M8JILqb8qWOOoIcljg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tATZN-0005wP-RM for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 07:31:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Nov 2024 12:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74308 X-GNU-PR-Package: emacs Original-Received: via spool by 74308-submit@debbugs.gnu.org id=B74308.173132824622805 (code B ref 74308); Mon, 11 Nov 2024 12:31:01 +0000 Original-Received: (at 74308) by debbugs.gnu.org; 11 Nov 2024 12:30:46 +0000 Original-Received: from localhost ([127.0.0.1]:58568 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tATZ8-0005vj-Au for submit@debbugs.gnu.org; Mon, 11 Nov 2024 07:30:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36678) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tATZ7-0005vR-0Z; Mon, 11 Nov 2024 07:30:45 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tATZ1-0002dA-NO; Mon, 11 Nov 2024 07:30:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SjNfYHpO3+8WEZrx6u++pydzx935jXCb/6J4mv2+gpM=; b=E6K4NzYpGHL6 uP7RhaOBPOVG2ClH/0aeZvQf0bWVZ7j+m0w6EKLke/wBzFACCQLeFIF4Pl84Zqx0spkOAfmVss64a 6NzEqoidPY8ZKBymAO/EEmKTtZS3qcrdvNEdCj3Q8UTOrIna/+914OPqqSvVRBKnWHyZsxdus5tz/ rBFcgm+QEq53njOl9TCSGcnWoSYZCmR+pvk8xBC+GL6QzSwh5hJ3P45D56vbPkg3iOlKqVz3vcu5q 3rk+g+jqDXPd89vCgWTWhZ9Lwetq3Sr6sVwr2vJEpzNAr6Xqd8s74DQLqvEW94Bpm7AOpvC9lPlFD 9KmQk7Gwg42y19eZp0Q/gQ==; In-Reply-To: <87ed3iwacp.fsf@gnu.org> (message from Roland Winkler on Mon, 11 Nov 2024 00:30:46 -0600) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:295224 Archived-At: merge 74308 74307 thanks > From: Roland Winkler > Date: Mon, 11 Nov 2024 00:30:46 -0600 > > Starting from emacs -Q, put the following into a buffer with > emacs-lisp-mode > > (setq foo "\\") > > The part "foo\\" of the string "\\" will get > font-lock-variable-name-face, which looks odd. > > I believe, this is due to a clause in lisp-mode.el that says > > ;; Words inside \\[], \\<>, \\{} or \\`' tend to be for > ;; `substitute-command-keys'. > > But this assumption is not always correct, in particular if ">" is > preceded by "\\", which happens when constructing regexps. This is an exact duplicate of bug#74307 that you submitted just 2 minutes earlier, so I'm merging them.