From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arash Esbati Newsgroups: gmane.emacs.bugs Subject: bug#74308: 30.0.92; emacs-lisp font-locking word regexp Date: Sat, 16 Nov 2024 22:33:55 +0100 Message-ID: References: <87ed3iwacp.fsf@gnu.org> <86zfm6j6l0.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="8536"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Roland Winkler , 74308@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 16 22:35:32 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 1tCQS3-00026A-8R for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Nov 2024 22:35:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tCQRd-0000j5-1A; Sat, 16 Nov 2024 16:35: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 1tCQRb-0000h4-Dq for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 16:35: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 1tCQRb-0006ou-5c for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 16:35:03 -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:References:In-Reply-To:From:To:Subject; bh=Kg1vBmuDyV317hIRleIuqsMi63jHQTzglcIV4upc5vs=; b=XfsVZrRCfHb9bcTeEBShxJwKNR507dwWyjT8F9NHtAjfkUeHgZQx2O4nclZ28qi6U2JIzbrAxVqqk1jZUwhl3OD1AujwotN2NkU7gcJKTd7Jxkv1Kou6jkpEmNFqWzILvw0IupN/vpfTjS04AV+xG6f+FcHh5pJ2VgjZRy/aQtQOKTFAAgp2ZoVB9knUPESXQAdpCwULTFLXTPgts4MRlaEP0ZwQ1AEmIeZ8TRnR3PkxezjBV6h1d+VjFSpaj7N2aDOBRz7wOuaHdc8N/2oFHhe9xAM3/xxNrN19lFBuEA+RY4Bq+WT7vd+MWYuDrVfR+Mae5mcepdgCqUzhGqX2yw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tCQRa-0000KT-0I for bug-gnu-emacs@gnu.org; Sat, 16 Nov 2024 16:35:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Arash Esbati Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Nov 2024 21:35: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.17317928441170 (code B ref 74308); Sat, 16 Nov 2024 21:35:01 +0000 Original-Received: (at 74308) by debbugs.gnu.org; 16 Nov 2024 21:34:04 +0000 Original-Received: from localhost ([127.0.0.1]:55027 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCQQe-0000Io-I6 for submit@debbugs.gnu.org; Sat, 16 Nov 2024 16:34:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53658) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tCQQd-0000IH-8Q for 74308@debbugs.gnu.org; Sat, 16 Nov 2024 16:34:03 -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 1tCQQY-0006GE-27 for 74308@debbugs.gnu.org; Sat, 16 Nov 2024 16:33:58 -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:References:In-Reply-To:Subject:To: From; bh=Kg1vBmuDyV317hIRleIuqsMi63jHQTzglcIV4upc5vs=; b=M8LgmZKnFED4NrTa6PZZ GpsI9gDtaMezFii4YDwRyNHK0ZUbeXSDyRA5/NT++ISEb+l38zT1w+BVF/azigficx0yINUkZavPR vjvSQahDo6xmyNofuzxEBTXGEbyZ6MGWdbgBopuoKoNWibIcbJS2JS2rXTsUCdDGsuxRMDlyl5BWc YybTzbWY9dZE2HtmhjngDGS6GgOOyyAegiSSod5oh4BD1vz619hDhbxVpZutQPmSy9TIChJygE8If zXiGpj3yNQ1s+KV2ktFV9OyYa+PoYI2Gq5M+34Fut2ndGPs2FJQvNb8Zei/7MZDB5hpdxUsvGnzE5 WJ5ZBpZPsTyfgA==; In-Reply-To: <86zfm6j6l0.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 11 Nov 2024 14:30:35 +0200") 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:295498 Archived-At: Eli Zaretskii writes: > 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. I think bug#68318 is also about the same issue; it can be merged into this one as well. Best, Arash