From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs Subject: bug#74308: 30.0.92; emacs-lisp font-locking word regexp Date: Mon, 11 Nov 2024 00:30:46 -0600 Message-ID: <87ed3iwacp.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26069"; mail-complaints-to="usenet@ciao.gmane.io" To: 74308@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 11 07:32:16 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 1tANyB-0006gb-GX for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Nov 2024 07:32:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tANxz-0005Ca-KG; Mon, 11 Nov 2024 01:32:03 -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 1tANxy-0005CS-RA for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 01:32: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 1tANxy-0008Cx-EE for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 01:32:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=Xuol0NZ69iu8oLZ1HeVypKeCj7RHKpODivOaL8BJvBk=; b=gpUx60BWyKfgjKwZt5bJ+nnBOxxU8PKVEDE6e4lGJg7SfAugfRK6SKuY9tjzJeBtcOoFXPtNct5R5EAjCQXdDrkB0MgiFjaxhczoEWQEBHfFNx8W+Y5eRQ/6uWGJABv0qgYaSYQZtXqwJKGABJK58KaHG3BVK5aEa+/FbV3Lz8WHW13yEgCVwxvsAjp1fKbir7bH9E8OZxkOWnnbYuI1U3UGvXRGwmXiPvNR4UZTI4L7NWimN0vkE03U/HzoZy6I335G0qwRIvTGcGQ0a3nDSIp1281VImt936ZP3VxyKWyCII+x/V9UodCXZQ1o9Nvt616myFW4jg02PThr2yPU5w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tANxy-0006t6-99 for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 01:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Roland Winkler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 11 Nov 2024 06:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74308 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173130667026065 (code B ref -1); Mon, 11 Nov 2024 06:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Nov 2024 06:31:10 +0000 Original-Received: from localhost ([127.0.0.1]:57854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tANx8-0006mK-42 for submit@debbugs.gnu.org; Mon, 11 Nov 2024 01:31:10 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:37110) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tANx6-0006m9-G3 for submit@debbugs.gnu.org; Mon, 11 Nov 2024 01:31:09 -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 1tANx5-00059W-S3 for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 01:31:08 -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 1tANx5-0008C3-Jv for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 01:31:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:Subject:To:From:in-reply-to: references; bh=Xuol0NZ69iu8oLZ1HeVypKeCj7RHKpODivOaL8BJvBk=; b=WBN5Hfzs9e5Rij l5Ujy6Y9z2GweCa5G11iVZMtU/e2Etsdrj6Kf/uvPoKQ0J9cN5uzSURM3ftrtNhX7kZ5doKwFICZ3 IoXwPfnNz3pORXIWe8M1MWkzMtFVTXG6rW2r8xi0AW1bIxkYkS9GteVMI4p1UmbbkhZ91E01HCsJb 3SfgRgyG/9JM0wodhTfsiG+q23ZItYtAPySZJ47DY/cAaTNLby65pj7MH4N5jAlMCZf5MvBspxGNp caKBNLHCB7lG5d5/Ushi13nhnesdTyDXK0zU9DSuUMX2Lnkct6WnWYfCus/nJFCtMunxRGnTRrHqL xLXfBq6Ga4xz72Xp18jg==; 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:295218 Archived-At: 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.