Received: (at 72068) by debbugs.gnu.org; 1 Aug 2024 01:10:31 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 31 21:10:31 2024 Received: from localhost ([127.0.0.1]:50468 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sZKKt-0001IF-7v for submit <at> debbugs.gnu.org; Wed, 31 Jul 2024 21:10:31 -0400 Received: from fhigh4-smtp.messagingengine.com ([103.168.172.155]:34291) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1sZKKs-0001I2-0F for 72068 <at> debbugs.gnu.org; Wed, 31 Jul 2024 21:10:30 -0400 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) 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: <xms:cOCqZlp4yxT1yM7JSmThuyLKN48r-SuPO0rWtQoM4b00Hv0IJ99qcw> <xme:cOCqZno2se_ewrbqVye-6hNZzmgLHZY4lCwsLVOcq5tcH1etVmOjfRv7Be9kgxyf_ VcZ6N9NeoiM0K9zqTo> X-ME-Received: <xmr:cOCqZiMmPkEqDaEUZFvyhHK-9h1MAGBCnrTTFaKp78S_UT0CxhL0pYvppHQuWmr9KzJB> X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrjeejgdeggecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefkffggfgfuvfevfhfhjggtgfesthejredttddvjeenucfhrhhomhepffhmihht rhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrdguvghvqeenucggtffrrghtth gvrhhnpeefkeehueetieegveeltdejfeehfeehheejheekuefhfeefleevffelheefhfdv veenucffohhmrghinhepghhithhhuhgsrdgtohhmnecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhn sggprhgtphhtthhopedt X-ME-Proxy: <xmx:cOCqZg4b4WQ3hVhlfiNEBn1VGKptcIis5fvRu1Cw7qJcaNpe3wQRGA> <xmx:cOCqZk7dUoO2ABAx9fVa1PfmrJ00XETVLqqt1g0pEG-WwqzYP1BaBA> <xmx:cOCqZojq6oXTVSKHcZLU8R5wiuSr-_6Aqzq89cNXQO28PpgwJ8fMeg> <xmx:cOCqZm6duasC76FFGFWFxwrkrxxMEJV8PwMDzXpE4G9qTiTfZWE1AQ> <xmx:cOCqZuT-uCnWtV5P-grVBHw905ZzK0TKsVISA7AyLB1kOI0TcWIGCkew> Feedback-ID: i0e71465a:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 31 Jul 2024 21:10:06 -0400 (EDT) Message-ID: <037d0033-2516-4d01-a909-0b208e7a3488@HIDDEN> Date: Thu, 1 Aug 2024 04:10:05 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: bug#72068: show-paren-mode does not match Chinese parentheses correctly To: Stefan Monnier <monnier@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> References: <CAHWTsYmK1a16ZHUzzbcGvwyXGW_BTJ5otaXqCypwJNNF3qVJ_Q@HIDDEN> <86y167kv06.fsf@HIDDEN> <jwvy1664w6w.fsf-monnier+emacs@HIDDEN> <CADwFkmkyV+8PiQAtVNAv_BAG7VokxY4H0c3LzeZ0pQ96oYKZaw@HIDDEN> <86ttge59om.fsf@HIDDEN> <jwvle1pn1yz.fsf-monnier+emacs@HIDDEN> Content-Language: en-US From: Dmitry Gutov <dmitry@HIDDEN> In-Reply-To: <jwvle1pn1yz.fsf-monnier+emacs@HIDDEN> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 72068 Cc: 72068 <at> debbugs.gnu.org, Stefan Kangas <stefankangas@HIDDEN>, chansey97@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.7 (-) 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.
bug-gnu-emacs@HIDDEN
:bug#72068
; Package emacs
.
Full text available.Received: (at 72068) by debbugs.gnu.org; 25 Jul 2024 11:35:24 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 25 07:35:24 2024 Received: from localhost ([127.0.0.1]:35632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sWwkm-0003JX-49 for submit <at> debbugs.gnu.org; Thu, 25 Jul 2024 07:35:24 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:34972) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1sWwkh-0003JF-DH for 72068 <at> debbugs.gnu.org; Thu, 25 Jul 2024 07:35:23 -0400 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== 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) 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) From: Stefan Monnier <monnier@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#72068: show-paren-mode does not match Chinese parentheses correctly In-Reply-To: <86ttge59om.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 25 Jul 2024 08:20:57 +0300") Message-ID: <jwvle1pn1yz.fsf-monnier+emacs@HIDDEN> References: <CAHWTsYmK1a16ZHUzzbcGvwyXGW_BTJ5otaXqCypwJNNF3qVJ_Q@HIDDEN> <86y167kv06.fsf@HIDDEN> <jwvy1664w6w.fsf-monnier+emacs@HIDDEN> <CADwFkmkyV+8PiQAtVNAv_BAG7VokxY4H0c3LzeZ0pQ96oYKZaw@HIDDEN> <86ttge59om.fsf@HIDDEN> Date: Thu, 25 Jul 2024 07:34:55 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72068 Cc: 72068 <at> debbugs.gnu.org, Stefan Kangas <stefankangas@HIDDEN>, chansey97@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) >> > 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
bug-gnu-emacs@HIDDEN
:bug#72068
; Package emacs
.
Full text available.Received: (at 72068) by debbugs.gnu.org; 25 Jul 2024 05:21:16 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 25 01:21:15 2024 Received: from localhost ([127.0.0.1]:35150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sWquh-0001s0-Ix for submit <at> debbugs.gnu.org; Thu, 25 Jul 2024 01:21:15 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1sWquf-0001rX-B2 for 72068 <at> debbugs.gnu.org; Thu, 25 Jul 2024 01:21:13 -0400 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 <eliz@HIDDEN>) id 1sWquS-0001n4-CE; Thu, 25 Jul 2024 01:21:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=zMkpvcFQr7ChzqU48GMQDppD5+ekopVAwQ2e895nTEo=; b=PZsn479b7kgE BzvF+WcfJ5R9Fi09N67uKaXc7PTpBzFdQjyABmsaOvtHOfgm0F89HkX3YTOW/tz0bB60ksY9GT8Fc Hxj31CYwNsoNwjfrWSvnBLrdMLm7zWeqsZE+tR4FLpKiJZpu8O1GJV/0M3fxe6i0idnshCqEo/CEd jXVrwEpkSNFjmZDP8Aaaq41YgHDSj7xN6gPLYzaLEPgLdR6JnsvXMh5wtuUy3WFnRF35pAdFWUqxU RxTVGYrdkZnh2fbrzEIeoPSJVXfzqE4DynWYfQpvN4SN87o7jxLVejqmX6Cll9EG0UtdK93yev4UW iE/M+ubQX2ZS3eto15Fcgg==; Date: Thu, 25 Jul 2024 08:20:57 +0300 Message-Id: <86ttge59om.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <CADwFkmkyV+8PiQAtVNAv_BAG7VokxY4H0c3LzeZ0pQ96oYKZaw@HIDDEN> (message from Stefan Kangas on Wed, 24 Jul 2024 13:11:37 -0700) Subject: Re: bug#72068: show-paren-mode does not match Chinese parentheses correctly References: <CAHWTsYmK1a16ZHUzzbcGvwyXGW_BTJ5otaXqCypwJNNF3qVJ_Q@HIDDEN> <86y167kv06.fsf@HIDDEN> <jwvy1664w6w.fsf-monnier+emacs@HIDDEN> <CADwFkmkyV+8PiQAtVNAv_BAG7VokxY4H0c3LzeZ0pQ96oYKZaw@HIDDEN> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72068 Cc: 72068 <at> debbugs.gnu.org, monnier@HIDDEN, chansey97@HIDDEN X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Stefan Kangas <stefankangas@HIDDEN> > Date: Wed, 24 Jul 2024 13:11:37 -0700 > Cc: 72068 <at> debbugs.gnu.org, Siyuan Chen <chansey97@HIDDEN> > > severity 72068 wishlist > thanks > > Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of > text editors" <bug-gnu-emacs@HIDDEN> writes: > > > Eli Zaretskii [2024-07-12 09:02:49] wrote: > >> I'm not sure this is a bug, since I think Lisp allows those characters > >> to be treated as symbol-constituent. Stefan, am I right? > > > > 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? And if changing the syntax table is the solution, users can already do that if they want, right?
bug-gnu-emacs@HIDDEN
:bug#72068
; Package emacs
.
Full text available.Stefan Kangas <stefankangas@HIDDEN>
to control <at> debbugs.gnu.org
.
Full text available.Received: (at 72068) by debbugs.gnu.org; 24 Jul 2024 20:12:52 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 24 16:12:52 2024 Received: from localhost ([127.0.0.1]:34557 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sWiM0-0001l5-Fy for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 16:12:52 -0400 Received: from mail-ed1-f49.google.com ([209.85.208.49]:49357) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <stefankangas@HIDDEN>) id 1sWiLx-0001kj-QA for 72068 <at> debbugs.gnu.org; Wed, 24 Jul 2024 16:12:50 -0400 Received: by mail-ed1-f49.google.com with SMTP id 4fb4d7f45d1cf-5ab2baf13d9so249319a12.2 for <72068 <at> debbugs.gnu.org>; Wed, 24 Jul 2024 13:12:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1721851898; x=1722456698; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=0DRnb9ueSLnLIeiM8Dyfx25OQ3/23ALVZ0DckRl53Jw=; b=EekMtJDrop9DEp1YBnH7r0Uh/b9UQQNxrDPIs7tu1sEOrRCAE9kInPqwVQggmy7+1x FJJFohORM6uahjwtZXhBsXJbV/D+xNCV5LHYWJXoKvs9x9WCzvctZhjGH/8+UjRzmoos i/HrnAHa+fjWEYM5wgpnmfjOhv2zucs+6oiypUKunt4lmC6g7st0FpFq1N4O6VKuwHNE zzxkG5x8V9GMey+29+uAgAhkvBpDj98fvBoQYioLwRpnQCndl1HdpImo4bCFay/rGRRX c5Ff3cIv0vte5JLVXvYugk8xo8kosRUvGa/QhHqT4exIq67lHTScDVsGa/ML7ilYCuUd ZhDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1721851898; x=1722456698; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=0DRnb9ueSLnLIeiM8Dyfx25OQ3/23ALVZ0DckRl53Jw=; b=bOnDPIdCijwQwAs/cMejMkmbtmX/TwefBl6l8QzkDoQM5yQKXbFVltUJzqYoTWQg5E s72XvAmmiHJ/LLik4f5iKXdko4ElocfuWJyLuBb3OFOkotP9AHLgLduC06FOREkzcgmx 05AGNjYgASQRBjokIl312YyEtYTyRAkFpEQ5s5yVmQY94vbOnEpl19PIUixLSxFe5NGp L1rzdZkOiIDt0i8aLQhXHuavKf0r3NCCwIdraWsUUfruRAeFB5pey0Q4rIcVsX7UtnUn 1N8bjA01lLmk1TiPh4sAdXf5xiS20AUfb9Tr6bwAHOX3efWaaCWgtvk4GW0GeoF/xY91 GKTA== X-Gm-Message-State: AOJu0Yya9hB7jiYKh6TXQWk3AceAAMiWYayiRi8NEpsjMi0Opqto7K9/ 3m8pwhI4DSJr5GvSd881bzes+ENlozutt8/e7D0j5cNPwRRumJPrLds3Z5ieNHj441pHQVncc4a yta3kUC73PIE6O5bCFyAv0YQ+opg= X-Google-Smtp-Source: AGHT+IFIhtI472AdrhRSzV8RCT1UYDiTkLaZoAPk9NeyPElEPdsO9OzzFxj+G/eTZQMp06af4ChpZpPwOmejLhwjKNo= X-Received: by 2002:a05:6402:26ce:b0:5a0:c709:aa0b with SMTP id 4fb4d7f45d1cf-5ac2c1c441bmr335953a12.24.1721851897438; Wed, 24 Jul 2024 13:11:37 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 24 Jul 2024 13:11:37 -0700 From: Stefan Kangas <stefankangas@HIDDEN> In-Reply-To: <jwvy1664w6w.fsf-monnier+emacs@HIDDEN> References: <CAHWTsYmK1a16ZHUzzbcGvwyXGW_BTJ5otaXqCypwJNNF3qVJ_Q@HIDDEN> <86y167kv06.fsf@HIDDEN> <jwvy1664w6w.fsf-monnier+emacs@HIDDEN> MIME-Version: 1.0 Date: Wed, 24 Jul 2024 13:11:37 -0700 Message-ID: <CADwFkmkyV+8PiQAtVNAv_BAG7VokxY4H0c3LzeZ0pQ96oYKZaw@HIDDEN> Subject: Re: bug#72068: show-paren-mode does not match Chinese parentheses correctly To: Stefan Monnier <monnier@HIDDEN>, Eli Zaretskii <eliz@HIDDEN> Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 72068 Cc: 72068 <at> debbugs.gnu.org, Siyuan Chen <chansey97@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -1.0 (-) severity 72068 wishlist thanks Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN> writes: > Eli Zaretskii [2024-07-12 09:02:49] wrote: >> I'm not sure this is a bug, since I think Lisp allows those characters >> to be treated as symbol-constituent. Stefan, am I right? > > 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.
bug-gnu-emacs@HIDDEN
:bug#72068
; Package emacs
.
Full text available.Received: (at 72068) by debbugs.gnu.org; 12 Jul 2024 12:45:40 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 12 08:45:40 2024 Received: from localhost ([127.0.0.1]:53456 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sSFed-00087v-Q4 for submit <at> debbugs.gnu.org; Fri, 12 Jul 2024 08:45:40 -0400 Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:5351) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <monnier@HIDDEN>) id 1sSFeb-00087g-A8 for 72068 <at> debbugs.gnu.org; Fri, 12 Jul 2024 08:45:38 -0400 Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 20E6B808A4; Fri, 12 Jul 2024 08:45:30 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1720788328; bh=6T+LyD4Bnd0ZX/rNMWiz394/ho3/5Iy81SYhg6/yOCo=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=KyY1TilQmZki5VuUqw3t0sk1a5pnHQIy2sG5nBGJv4issInWfSITFsKXkD1HjpmuS nvIWMrbj5Lx+ohJVM7S7YxiFblcn494aqUo2gvK9YjFPdKTdyEv4svhZ3/ctU9+LZ3 JTVvjHFKZ3HR1Ze3YOCFnB2rbhxB48xq+sXMH7s9tFO0yBYghcJMOKYzQfAuFQFzhf 6BSLQnO4cW/OlAVOITGJQEDCoZ2qWWmDlnQG0OYnK3ifJRiZ0UmAOav6bKoIRRDJJe 4epHM2oVF5HKg50I0jzdlKjmFT7Az6q712NnnYd5V8KjNFRS62Rax1RGlyiP2F1mhb A0E0Yb0HEyakQ== Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 4ED2C8001C; Fri, 12 Jul 2024 08:45:28 -0400 (EDT) Received: from asado (syn-072-043-125-136.biz.spectrum.com [72.43.125.136]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2DFC2120495; Fri, 12 Jul 2024 08:45:28 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> To: Eli Zaretskii <eliz@HIDDEN> Subject: Re: bug#72068: show-paren-mode does not match Chinese parentheses correctly In-Reply-To: <86y167kv06.fsf@HIDDEN> (Eli Zaretskii's message of "Fri, 12 Jul 2024 09:02:49 +0300") Message-ID: <jwvy1664w6w.fsf-monnier+emacs@HIDDEN> References: <CAHWTsYmK1a16ZHUzzbcGvwyXGW_BTJ5otaXqCypwJNNF3qVJ_Q@HIDDEN> <86y167kv06.fsf@HIDDEN> Date: Fri, 12 Jul 2024 08:45:22 -0400 User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-SPAM-INFO: Spam detection results: 0 ALL_TRUSTED -1 Passed through trusted hosts only via SMTP BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain X-SPAM-LEVEL: X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72068 Cc: 72068 <at> debbugs.gnu.org, Siyuan Chen <chansey97@HIDDEN> X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) Eli Zaretskii [2024-07-12 09:02:49] wrote: > I'm not sure this is a bug, since I think Lisp allows those characters > to be treated as symbol-constituent. Stefan, am I right? 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. Stefan
bug-gnu-emacs@HIDDEN
:bug#72068
; Package emacs
.
Full text available.Received: (at 72068) by debbugs.gnu.org; 12 Jul 2024 06:02:59 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 12 02:02:58 2024 Received: from localhost ([127.0.0.1]:53013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sS9Mw-0000gL-HA for submit <at> debbugs.gnu.org; Fri, 12 Jul 2024 02:02:58 -0400 Received: from eggs.gnu.org ([209.51.188.92]:36836) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1sS9Mu-0000g9-Gz for 72068 <at> debbugs.gnu.org; Fri, 12 Jul 2024 02:02:57 -0400 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 <eliz@HIDDEN>) id 1sS9Mp-000619-4G; Fri, 12 Jul 2024 02:02:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=owZKVDtiMs6HVwuwGQQ5DeWx70PdCcAC7Hlmsxx4V0A=; b=qUZEbJir93t70KiqQBnl nXfwi65DLsdEmyNlXms82Omkvy2KmN5F9CT1VmetYiHAc6f1VLZ3mSpsRGBHnT5WcQC4ZR0luYIyL BOhHeJWirPmPVtcumrPBGnjyvKKl9AAX0z58FEVU27JduZwPgXlUA5MApvSXzPp7t6hYKcJU/8cmD AKHVEAYKG6JmL0l1vLQfganCvfJqehqKMlg6pW/2mUQVl6+j3eD/AFR+S0RfZc1/wQeCYoo8v1dWS uk32bYijswMLfwLHOiWeVCt4Us1GOB4DNvRonHFR0u7Z1ZptYvun5fcZ7S8W7NXgFqnhRRduOcHJR i7yxE5pMmkUWNg==; Date: Fri, 12 Jul 2024 09:02:49 +0300 Message-Id: <86y167kv06.fsf@HIDDEN> From: Eli Zaretskii <eliz@HIDDEN> To: Siyuan Chen <chansey97@HIDDEN>, Stefan Monnier <monnier@HIDDEN> In-Reply-To: <CAHWTsYmK1a16ZHUzzbcGvwyXGW_BTJ5otaXqCypwJNNF3qVJ_Q@HIDDEN> (message from Siyuan Chen on Fri, 12 Jul 2024 13:03:42 +0800) Subject: Re: bug#72068: show-paren-mode does not match Chinese parentheses correctly References: <CAHWTsYmK1a16ZHUzzbcGvwyXGW_BTJ5otaXqCypwJNNF3qVJ_Q@HIDDEN> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 72068 Cc: 72068 <at> debbugs.gnu.org X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -3.3 (---) > From: Siyuan Chen <chansey97@HIDDEN> > Date: Fri, 12 Jul 2024 13:03:42 +0800 > > Reproduce steps: > > 1. Emacs -Q > > 2. M-x eval-expression > > ``` > (progn > (setq cursor-type 'bar) > (show-paren-mode 1)) > ``` > > 3. Paste the following text in any .el file > ``` > (英文括号) > (英文 括号) > (中文括号) > (中文 括号) > ``` > > 4. Place the cursor at the first position (or last position) of each line. > > The expected behavior: All of the four lines above match and highlight correctly > > The actual behavior: The 4th line mismatched. Note the middle SPC character. > > P.s. > > 1. This issue only occurs in lisp-like modes. It is OK in c-mode and python-mode. > > 2. 【】「」『』have the same problem. They are also commonly used in lisp comment. > > 3. A simple investigation found that it may be related to `scan-sexps` or syntax-table, because `(scan-sexps > outside dir)` in the `show-paren--default` returns the wrong value in the 4th case. > > 4. More screenshots and test code can be found in https://emacs-china.org/t/show-paren-mode/15160 > > Emacs 29.3 on Windows. I'm not sure this is a bug, since I think Lisp allows those characters to be treated as symbol-constituent. Stefan, am I right?
bug-gnu-emacs@HIDDEN
:bug#72068
; Package emacs
.
Full text available.Received: (at submit) by debbugs.gnu.org; 12 Jul 2024 05:03:39 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 12 01:03:39 2024 Received: from localhost ([127.0.0.1]:52957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1sS8RX-0007MH-4l for submit <at> debbugs.gnu.org; Fri, 12 Jul 2024 01:03:39 -0400 Received: from lists.gnu.org ([209.51.188.17]:34974) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <chansey97@HIDDEN>) id 1sS8RV-0007M7-Hm for submit <at> debbugs.gnu.org; Fri, 12 Jul 2024 01:03:38 -0400 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 <chansey97@HIDDEN>) id 1sS8RV-0004DP-5y for bug-gnu-emacs@HIDDEN; Fri, 12 Jul 2024 01:03:37 -0400 Received: from mail-yb1-xb2f.google.com ([2607:f8b0:4864:20::b2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <chansey97@HIDDEN>) id 1sS8RT-0002LJ-FK for bug-gnu-emacs@HIDDEN; Fri, 12 Jul 2024 01:03:36 -0400 Received: by mail-yb1-xb2f.google.com with SMTP id 3f1490d57ef6-e03c6892e31so1690717276.1 for <bug-gnu-emacs@HIDDEN>; Thu, 11 Jul 2024 22:03:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720760614; x=1721365414; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=knUV1hwAREbf4l0g0hVlQW7LGBT1bq42hEqAME+Q2l8=; b=CWLK2ZshldIeIPlothrDknt4MHm0L52uerKILH91dVc5MWS+vlFyseY9L2QiggLpQX vd+yOT023du+FRyBqihFnf97X909nt5szjpT+1br10hTQmd3Q5lgK5g1Fq5brTwqdtud RI3LmxzQqNirk/gGxX5iKpJy+wEoJlRNeSQlp+4KO4cNhlavuZkmbhf8+uneYG81J5GB cSh1Al4Ecb4YFi1zA2VixeIkLgMT0fcVJjxgeOX06FIOk0Ar8IUHKUoJ/QQGm7h2KK1y J9UojhmIC2SxCPtRhJOTHry94Y27w/kQp7e71xocj7zo3qyqny03PrYByx05Wd5HpwCz aerg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720760614; x=1721365414; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=knUV1hwAREbf4l0g0hVlQW7LGBT1bq42hEqAME+Q2l8=; b=v15gpVPFekuWJy2H7e/HOhXDZScC5MAv+7/e7+F3qp5LsbnDwC4g8figNVPOGuWSVz qXryhyi4vR2N6zFF2cpP+ZgGccwyOhqW4aw3b4brWxa5IMvmSls8pbA5FgOK1OAzV9I8 jieGvR8LeKpS3dRqSAdAy8m0IVcpxx4hq1sOhTNJQ0UxU/PxJmyXeeDvnh6yq4JwR1Wv dTe2tX05QhoByucpe7WoSlmYXVYOMaY5CeWD4eX/lYiEkw8dlRPzRDmv6iHXiv2ezXgf 1KT0i1Q+vb3JTHpjj+iOifPkH3K4S1vBJXw2K7IvrVUHmv/adbqy+94/BskJdYhViaMv HLgg== X-Gm-Message-State: AOJu0YxhixoJxmQJNKx+RPWm9EsbL5zDUxwXqmFRRVTXI1UkH60h1a40 VYhVNIC8W8zKxMjlUwq9OxQeSmf3y+okP1YHbek0A0SmbpiiA1POSSv3gsbkh2BoquokLty0Rp4 MmRO4MmkEuJ0HbLpBgFsLkpbuEXAyes3mHqN1dA== X-Google-Smtp-Source: AGHT+IHqLC3vwDJrNB/h49S/SUEREhZQbOWvFTTF6E/YTUlV4ut/0lnieAjycsAll8fT5l7Ym3GqwbLhLp9woAGWIM8= X-Received: by 2002:a25:b10a:0:b0:e05:679f:4812 with SMTP id 3f1490d57ef6-e05679f4ac0mr6915476276.30.1720760613931; Thu, 11 Jul 2024 22:03:33 -0700 (PDT) MIME-Version: 1.0 From: Siyuan Chen <chansey97@HIDDEN> Date: Fri, 12 Jul 2024 13:03:42 +0800 Message-ID: <CAHWTsYmK1a16ZHUzzbcGvwyXGW_BTJ5otaXqCypwJNNF3qVJ_Q@HIDDEN> Subject: show-paren-mode does not match Chinese parentheses correctly To: bug-gnu-emacs@HIDDEN Content-Type: multipart/alternative; boundary="000000000000231583061d05cdbf" Received-SPF: pass client-ip=2607:f8b0:4864:20::b2f; envelope-from=chansey97@HIDDEN; helo=mail-yb1-xb2f.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.1 (--) --000000000000231583061d05cdbf Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Reproduce steps: 1. Emacs -Q 2. M-x eval-expression ``` (progn (setq cursor-type 'bar) (show-paren-mode 1)) ``` 3. Paste the following text in any .el file ``` (=E8=8B=B1=E6=96=87=E6=8B=AC=E5=8F=B7) (=E8=8B=B1=E6=96=87 =E6=8B=AC=E5=8F=B7) =EF=BC=88=E4=B8=AD=E6=96=87=E6=8B=AC=E5=8F=B7=EF=BC=89 =EF=BC=88=E4=B8=AD=E6=96=87 =E6=8B=AC=E5=8F=B7=EF=BC=89 ``` 4. Place the cursor at the first position (or last position) of each line. The expected behavior: All of the four lines above match and highlight correctly The actual behavior: The 4th line mismatched. Note the middle SPC character= . P.s. 1. This issue only occurs in lisp-like modes. It is OK in c-mode and python-mode. 2. =E3=80=90=E3=80=91=E3=80=8C=E3=80=8D=E3=80=8E=E3=80=8Fhave the same prob= lem. They are also commonly used in lisp comment. 3. A simple investigation found that it may be related to `scan-sexps` or syntax-table, because `(scan-sexps outside dir)` in the `show-paren--default` returns the wrong value in the 4th case. 4. More screenshots and test code can be found in https://emacs-china.org/t/show-paren-mode/15160 Emacs 29.3 on Windows. Thanks. Best regards Siyuan Chen --000000000000231583061d05cdbf Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"> <div><span lang=3D"en"><span><span>Reproduce steps:</span></span><br></span= ></div><div><span lang=3D"en"><br></span></div><div>1. Emacs -Q</div><div><= br></div><div>2. M-x eval-expression</div><div><br></div><div>```<br></div>= <div>(progn<br>=C2=A0 (setq cursor-type 'bar)<br>=C2=A0 (show-paren-mod= e 1))</div><div>```</div><div><br></div><div>3. Paste the following text in= any .el file</div><div>```</div><div>(=E8=8B=B1=E6=96=87=E6=8B=AC=E5=8F=B7= )<br>(=E8=8B=B1=E6=96=87 =E6=8B=AC=E5=8F=B7)<br>=EF=BC=88=E4=B8=AD=E6=96=87= =E6=8B=AC=E5=8F=B7=EF=BC=89<br>=EF=BC=88=E4=B8=AD=E6=96=87 =E6=8B=AC=E5=8F= =B7=EF=BC=89<br></div><div>```</div><div><br></div><div>4. Place the cursor= at the first position (or last position) of each line.</div><div><br></div= ><div>The expected behavior: <span class=3D"gmail-HwtZe" lang=3D"en"><span = class=3D"gmail-jCAhz gmail-JxVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb= ">All of the four lines above match and highlight correctly</span></span></= span></div><div><span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"gmai= l-jCAhz gmail-JxVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb"><br></span>= </span></span></div><div><span class=3D"gmail-HwtZe" lang=3D"en"><span clas= s=3D"gmail-jCAhz gmail-JxVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb">Th= e actual behavior: The 4th line mismatched. Note the </span></span></span> <span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"gmail-jCAhz gmail-Jx= Vs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb">middle</span></span></span>= <span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"gmail-jCAhz gmail-J= xVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb">SPC character.</span></spa= n></span></div><div><span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"= gmail-jCAhz gmail-JxVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb"><br></s= pan></span></span></div><div><span class=3D"gmail-HwtZe" lang=3D"en"><span = class=3D"gmail-jCAhz gmail-JxVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb= ">P.s.</span></span></span><br><br>1. This issue only occurs in lisp-like m= odes. It is OK in c-mode and python-mode.<br><br>2. =E3=80=90=E3=80=91=E3= =80=8C=E3=80=8D=E3=80=8E=E3=80=8Fhave the same problem.=20 <span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"gmail-jCAhz gmail-Jx= Vs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb">They are also commonly used= in lisp comment.</span></span></span> <br><br>3.=C2=A0 A simple investigation found that it may be related to `sc= an-sexps` or syntax-table, because=C2=A0 `(scan-sexps outside dir)` in the = `show-paren--default` returns the wrong value in the=20 <span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"gmail-jCAhz gmail-Jx= Vs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb">4th</span></span></span> ca= se.<br></div><div><br></div><div>4. More screenshots and test code can be f= ound in=20 <a href=3D"https://emacs-china.org/t/show-paren-mode/15160">https://emacs-c= hina.org/t/show-paren-mode/15160</a> </div><div><span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"gmail-jCA= hz gmail-JxVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb"><br></span></spa= n></span></div><div><span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"= gmail-jCAhz gmail-JxVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb">Emacs 2= 9.3 on Windows.<br></span></span></span></div><div><span class=3D"gmail-Hwt= Ze" lang=3D"en"><span class=3D"gmail-jCAhz gmail-JxVs2d gmail-ChMk0b"><span= class=3D"gmail-ryNqvb"><br></span></span></span></div><div><span class=3D"= gmail-HwtZe" lang=3D"en"><span class=3D"gmail-jCAhz gmail-JxVs2d gmail-ChMk= 0b"><span class=3D"gmail-ryNqvb">Thanks.<br></span></span></span></div><div= ><span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"gmail-jCAhz gmail-J= xVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb"><br></span></span></span><= /div><div><span class=3D"gmail-HwtZe" lang=3D"en"><span class=3D"gmail-jCAh= z gmail-JxVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb">Best regards</spa= n></span></span></div><div><span class=3D"gmail-HwtZe" lang=3D"en"><span cl= ass=3D"gmail-jCAhz gmail-JxVs2d gmail-ChMk0b"><span class=3D"gmail-ryNqvb">= Siyuan Chen<br></span></span></span> </div><div><br></div> <div><div><br></div><div><br></div></div></div> --000000000000231583061d05cdbf--
Siyuan Chen <chansey97@HIDDEN>
:bug-gnu-emacs@HIDDEN
.
Full text available.bug-gnu-emacs@HIDDEN
:bug#72068
; Package emacs
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.