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#74307: 30.0.92; emacs-lisp font-locking word regexp Date: Mon, 11 Nov 2024 00:28:34 -0600 Message-ID: <87jzdawagd.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="19064"; mail-complaints-to="usenet@ciao.gmane.io" To: 74307@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 11 07:30:22 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 1tANwL-0004mj-O6 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 11 Nov 2024 07:30:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tANw5-0004x7-GM; Mon, 11 Nov 2024 01:30: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 1tANw3-0004ur-2j for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 01:30:03 -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 1tANw2-0007xN-Py for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 01:30: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=q9Z4+RFjGTqrxPgrT2huaBNy3dl0c4qz9Buo9GVow0AvaZAVOu/wcEmE/2+4wMLIT02Q6YepyD37FlFVG0ygEvT3kQaqckUk2nC0OixHONsbZO2L771AzLB8/l5gnRLwQL+4cdYq569956eExsb73l1R+uSsEt+uUNwNoqgcf/hM5K4+uRE/oT2HL3bK972VPA/17Uha3KjMH6Cmr1u+6fsRjhjxkYD1sOWHGzTfW51BdqAonoyY8cY6xxUEsHrQKlEB+mNwKr1IToZOonj6tg3E00sex2JhhY57LGcZbIAYysU6xfy6y+yz5aCdqpvELe4SVezoYoWwmYUFWHJOjg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tANw2-0006d4-M3 for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 01:30: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:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74307 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.173130655025370 (code B ref -1); Mon, 11 Nov 2024 06:30:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Nov 2024 06:29:10 +0000 Original-Received: from localhost ([127.0.0.1]:57842 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tANvB-0006b7-Mo for submit@debbugs.gnu.org; Mon, 11 Nov 2024 01:29:09 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57996) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tANv8-0006az-KD for submit@debbugs.gnu.org; Mon, 11 Nov 2024 01:29:07 -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 1tANv7-0004r7-UF for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 01:29:06 -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 1tANv7-0007uL-FF for bug-gnu-emacs@gnu.org; Mon, 11 Nov 2024 01:29:05 -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=pyHtb7KcKqFC/r n/4i5Nz4envcFnfv4y0KQUKRH8eb4qGWkvr8YPdNGKGI0MDVryErePdsrp2gxt8na6t80fgon5ZaE /0S7uxHpkr6mUQTJxFxMu30r7nxBi83/8mX99wYbJAEeQICrfx7gZcNlXfwSxfH38e9cBPCNOcpkj RcdKCWxFRUAU1GqtSa85+Asl1BTBqkDE1l4VeucsDg5kOCZtZNEJV0AuG0V5JxKkVHUZIJx62CEwB b2XuiNQnlcANDagoSm+3ggJ9s39nj+3VRGcxKf2odQz+9q30wFBKcSeaUiyziQ0bsm6hkNXj0DJV2 4GwgBbc+79z0ZhUgObyA==; 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:295217 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.