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: Thu, 14 Nov 2024 10:49:35 -0600 Message-ID: <87ikspbw0w.fsf@gnu.org> References: <87jzdawagd.fsf@gnu.org> <868qtmkzeo.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="22955"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 74307@debbugs.gnu.org, Stefan Monnier To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Nov 14 17:50: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 1tBd30-0005lR-2l for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Nov 2024 17:50:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tBd2n-0006Kx-Nb; Thu, 14 Nov 2024 11:50:10 -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 1tBd2h-0006IK-Rp for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 11:50: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 1tBd2g-0008Ar-W1 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 11:50: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=d40XVdtansX4iCB6MoWQdgMztC90pYljJCVNM1Yfic0=; b=b74IKNqtnrvmtdmdBLOmTHkEAXGMw4X27OPIsh3g1YFM+0b2qyam44BRS1QV49tQSuh/55/iUoS8wSwAYut565kUSgTak7fdZx4gRJ8ChAabGpRPJNZEDyN7xYZ6b/h4sr/0YhfCq4+JiVedPcTtdEWoprCzBFhNxuVvbt/uuBubFAh9r4ViH1ZktHgRTEMekyTlRQIZvzQ+RX0Jlm8vupWZNOh7S60HJY0qkAk1d+cPQO76uRyOpT+kDkfp9FZ7MrK8nk8c196cYU3AJh6rPY3iTZl74QjLAE0KuuV0l4JmVap/rbBE8ghwk3xpIrQh8t4OD0Av8MlOKxYaycbFqg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tBd2f-00006M-R2 for bug-gnu-emacs@gnu.org; Thu, 14 Nov 2024 11:50:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Roland Winkler Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Nov 2024 16:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74307 X-GNU-PR-Package: emacs Original-Received: via spool by 74307-submit@debbugs.gnu.org id=B74307.1731602990361 (code B ref 74307); Thu, 14 Nov 2024 16:50:01 +0000 Original-Received: (at 74307) by debbugs.gnu.org; 14 Nov 2024 16:49:50 +0000 Original-Received: from localhost ([127.0.0.1]:46945 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBd2T-00005l-K5 for submit@debbugs.gnu.org; Thu, 14 Nov 2024 11:49:49 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51148) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tBd2R-00005W-SZ for 74307@debbugs.gnu.org; Thu, 14 Nov 2024 11:49:48 -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 1tBd2M-00088s-Ej; Thu, 14 Nov 2024 11:49:42 -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=d40XVdtansX4iCB6MoWQdgMztC90pYljJCVNM1Yfic0=; b=czdFHds0VEcx+qzQlRfk JWQ6J4DYqZ8nMau6nSH+4iAJzLR/dIyRtkkx0xOCy8TOWXzzxIx0y/BI5q08HvtkBJwqeroZWDzlV r0lj1bQXIL3gE20yYE2owVqJIdN7XV87y8HhziIC81tY6P1uhdeFRnPItNdFOwYauG5xLW20vb7bx vATjkmHlXE98vVTgVh8wW9Hh2R2UCkJNgFvF65+/Xd+6eQfqGlN5RKq/G5kc86zEvq4d0W6bSQyR7 t6zmPaDtnQlXMBpUTCK4xSxJNyBE6hZ30+9BL2u4wrg7Y2T97AB4Sft9ppvKIiSOhk4Sj/UY0N3Rl I/CzdS4mSRzMvQ==; In-Reply-To: <868qtmkzeo.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 14 Nov 2024 10:11:43 +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:295344 Archived-At: On Thu, Nov 14 2024, Eli Zaretskii wrote: > we should use something like the below instead? > > (,(rx "\\\\" (or (seq "<" (group-n 1 lisp-mode-symbol) (not "\\\\") ">") > (seq "{" (group-n 1 lisp-mode-symbol) (not "\\\\") "q}")) Yes, thanks. (This is my first real-world encounter with rx. Otherwise I would have proposed it myself.) > And similarly for \\[] etc.? I do not know in what context backslash-quoted right square brackets may appear in regexps. But certainly, they do not make sense in the context of substitute-command-keys either. So excluding here backslash-quoted right square brackets is probably for the better, too.