From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#72068: show-paren-mode does not match Chinese parentheses correctly Date: Thu, 25 Jul 2024 07:34:55 -0400 Message-ID: References: <86y167kv06.fsf@gnu.org> <86ttge59om.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5952"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 72068@debbugs.gnu.org, Stefan Kangas , chansey97@gmail.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jul 25 13:36:19 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 1sWwld-0001IT-Hm for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 25 Jul 2024 13:36:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sWwlJ-0008Fk-QR; Thu, 25 Jul 2024 07:35:57 -0400 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 1sWwlH-0008Dk-Nz for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 07:35:55 -0400 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 1sWwlH-0007d2-E5 for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 07:35:55 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sWwlO-0003KZ-5x for bug-gnu-emacs@gnu.org; Thu, 25 Jul 2024 07:36:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 25 Jul 2024 11:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 72068 X-GNU-PR-Package: emacs Original-Received: via spool by 72068-submit@debbugs.gnu.org id=B72068.172190732412748 (code B ref 72068); Thu, 25 Jul 2024 11:36:02 +0000 Original-Received: (at 72068) by debbugs.gnu.org; 25 Jul 2024 11:35:24 +0000 Original-Received: from localhost ([127.0.0.1]:35632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWwkm-0003JX-49 for submit@debbugs.gnu.org; Thu, 25 Jul 2024 07:35:24 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:34972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sWwkh-0003JF-DH for 72068@debbugs.gnu.org; Thu, 25 Jul 2024 07:35:23 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 31B61440962; Thu, 25 Jul 2024 07:35:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1721907303; bh=qQP3zJJAXLaQVRHoS2KeO2qQS+yAbO87rzOaSgwBysI=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=buXi3UUdr2yqMcjS/WNyrvDfE9vA8ZBkBCSl1pALiPT1BsMLhBBeHsrvW3LGgIgGP zBiP8A182eQsSzI2emARe1S+hO+ejZPQrSwsKJZ/EtxnjvzgvmYz2ZrGQpUzYAO83H UsU1CaoIH1byFLSxLohg8Jr9F25ZQcfbahkgMBpHMGXx7vwtyVy5k54xFHaZrrbVvs ejLcrIB2Wuwx4WsahKWOttm8I3W4SNU+UQD/tnjuSiWgWx9j341ullNUmq8tiMX6fF L2YgBCIPaoDMKcuyQYf0sSUoH5xz6rdaEICbQaZDz1rWyb9PyzewdUJWT4o4m3w3S/ qxMPEuJFgML+A== Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 88D4144083C; Thu, 25 Jul 2024 07:35:03 -0400 (EDT) Original-Received: from asado (dyn.144-85-159-142.dsl.vtx.ch [144.85.159.142]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 1684F12032C; Thu, 25 Jul 2024 07:35:01 -0400 (EDT) In-Reply-To: <86ttge59om.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 25 Jul 2024 08:20:57 +0300") 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:289300 Archived-At: >> > I think that's the idea, indeed. Of course, we don't have to obey the >> > Emacs Lisp syntax, but I think it makes sense to do so. >> > Admittedly, it would be nice to allow the use of other syntax rules inside >> > comments and string for these kinds of situations. >> >> I'm not sure if this should be closed as notabug or not, but I'm tagging >> it as wishlist at least. Feel free to close if that makes more sense. > > What solution is possible except changing the syntax table? A solution would be to make "syntax tables" more complex so as to be able to have a notion of "context" (so the same character can behave differently inside a string than outside), or equivalently a way to use different syntax tables in different contexts. > And if changing the syntax table is the solution, users can already do > that if they want, right? Other than via things like `mmm-mode` (which I've never seen used to use different modes in strings than in code), I don't think they can. Stefan