From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#72068: show-paren-mode does not match Chinese parentheses correctly Date: Thu, 1 Aug 2024 04:10:05 +0300 Message-ID: <037d0033-2516-4d01-a909-0b208e7a3488@gutov.dev> References: <86y167kv06.fsf@gnu.org> <86ttge59om.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36901"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 72068@debbugs.gnu.org, Stefan Kangas , chansey97@gmail.com To: Stefan Monnier , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 01 03:11:09 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 1sZKLT-0009O8-Vq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 01 Aug 2024 03:11:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sZKL9-00062n-Lt; Wed, 31 Jul 2024 21:10:47 -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 1sZKL8-00061v-CV for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2024 21:10:46 -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 1sZKL8-0006CM-3f for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2024 21:10:46 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=2YXpB2Vlk1RnuGf4jhM+VYHF9h0g8Z/0q13N48f6stk=; b=uUVKih3/CfNWo7y3lw0qp8oxH4nBlGxDkpsdhh/wKVFq8M9m1bhOgchcAkx+S4VDfHzIfJMY7LE3hCeMct6L+0ifyFu9vratxFdRnsaan2xjdu+dLTSEiWZFRGwci3eJeZtUCjCGFVO44Q8J++uRBjfZFSERx1Y8qPqn246b4mziUF9a4RrpftUKoQVYUyZFV6N6gm7vaKPc4ZvLdQoqjSuwxdvPtOHbuOu06n+RuqaNWpv1neCp0gs5CGzWGPKwEqILVHzxRb8bFayncC3vZQE/rhVW3VXwB+TEdTzeBTFsDg79o0qBbPd15A5xzUXKJzZ1gIp2Cf5637nmMd9tDA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sZKLO-0001Jd-8p for bug-gnu-emacs@gnu.org; Wed, 31 Jul 2024 21:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 01 Aug 2024 01:11: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.17224746314979 (code B ref 72068); Thu, 01 Aug 2024 01:11:02 +0000 Original-Received: (at 72068) by debbugs.gnu.org; 1 Aug 2024 01:10:31 +0000 Original-Received: from localhost ([127.0.0.1]:50468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZKKt-0001IF-7v for submit@debbugs.gnu.org; Wed, 31 Jul 2024 21:10:31 -0400 Original-Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]:34291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sZKKs-0001I2-0F for 72068@debbugs.gnu.org; Wed, 31 Jul 2024 21:10:30 -0400 Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailfhigh.nyi.internal (Postfix) with ESMTP id 970E0114703F; Wed, 31 Jul 2024 21:10:08 -0400 (EDT) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Wed, 31 Jul 2024 21:10:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc :cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to; s=fm2; t=1722474608; x=1722561008; bh=2YXpB2Vlk1RnuGf4jhM+VYHF9h0g8Z/0q13N48f6stk=; b= zmJ6affFBdytiCs5CfBNsVGk1HtjbxTRQYeTZHAtlHWtcl4nxUAghoR6/6fYmtYz thJ0Z6XA+2KMAGP9faeLRLcAH7lRrxk2FVf11Jpfq6e69GOMp6zjxY63rGv0iYG4 tz90J/16r+RyQvRdRsMEMw8M3fPTkbtZBkvOUFw4HQc+2BH17DLlLuCsfy4Yy5CQ BNftLuprLPKoUxymceqtXJ4EypQiasKgZCYqybGV+a9E7dUUh9Xfi3Ttun5NPGpB SUnA+nhBB9dHWX729J02p+VEbb1SbABIbmU1+bSBIsul74f3zlyHGroQyYEK5Yxs l2B63LWT9HUjfn+VLVSmvg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :references:reply-to:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t=1722474608; x= 1722561008; bh=2YXpB2Vlk1RnuGf4jhM+VYHF9h0g8Z/0q13N48f6stk=; b=T A1kGaX6YQ3h0o3wo7GeoTwMMxI6eSAUoR81Eh1FnieH8bCjVFm0EI8J4ha/Lw++h Z77JvwfVdXyDc/dooqPKeTDp79eZV7NP+dvk8gqqG4L6VQBbDHz6XRpNopUkCWsn poFyTEUEBmU/BsKopG7ihf8+HzCQBCDSE2KxSsKbEgWnkk5AxQ6EBjIsB6n79RcB l2zR160O0waxaIBmm3AsytB4+X6x/toXBUwXMmO7hix8iu1yYph0Hr16Cb3lAmYL AOlLQBDm37NEJHHXnUmPbTLKrwFWii4bL2frbNhVpp875njfN5h2kvEyKsLTFp1d AT1OMNrRpN7nk9Z5x/odA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjeejgdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeefkeehueetieegveeltdejfeehfeehheejheekuefhfeefleevffelheefhfdv veenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhn sggprhgtphhtthhopedt X-ME-Proxy: Feedback-ID: i0e71465a:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 31 Jul 2024 21:10:06 -0400 (EDT) Content-Language: en-US In-Reply-To: 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:289597 Archived-At: On 25/07/2024 14:34, Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: >> 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. IIRC Steve Purcell (who shares his config publicly for many other users) used to have mmm-mode apply sql-mode inside Ruby heredocs (which are fancy multiline strings, basically) that are "tagged" to contain SQL. And here's somebody else who wanted to have html-mode inside a JS string: https://github.com/dgutov/mmm-mode/issues/142 The intermediate conclusion there is to use a ts-based config, though. And as far as show-paren-mode goes, this might be something that mmm-mode itself could have workarounds for anyway.