From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68477: 29.1; bibtex-braced-string-syntax-table should handle non-ASCII parentheses Date: Fri, 03 Jan 2025 08:40:30 +0200 Message-ID: <86bjwoien5.fsf@gnu.org> References: <86o7dmo7uj.fsf@p200300d62730c892f021caab3c1ebecc.dip0.t-ipconnect.de> <87o70pf2x6.fsf@gnu.org> <86pll5ht34.fsf@gnu.org> <87frm1exve.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8751"; mail-complaints-to="usenet@ciao.gmane.io" Cc: joostkremers@fastmail.fm, 68477@debbugs.gnu.org To: Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 03 07:41:28 2025 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 1tTbNA-00026M-6y for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Jan 2025 07:41:28 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTbMs-0002lN-QD; Fri, 03 Jan 2025 01:41: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 1tTbMk-0002j1-MH for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 01:41:04 -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 1tTbMk-00038x-Dq for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 01:41:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=2CENO8Qvrg/np+ywJijNsViqnrzdrip3YHmCG8nQNyw=; b=e7P4GkcqlmRmQ56ShE5gfFUboP8YyCtz/sBdnA/8I69DX5YT8UBta/RIotgX3w6XAGBVFbwbdOO+WndEmHpTlafGmgDOJSIsbrZpn5j1ApMofw1hpQmzbyU0dpw01ufWDvgmyyFeMewObZ1SyC1hMZAIYo+kO94bzCxsCs/rquHH19Y9gLSXK6n96bkVoYnEqBBAbM4RpAE+pCu726z/jWbMB4pHiiCydEZis5xpleXg1g9yxwoZf0BGQwu9vZqBuFfP2WoPZA+vrZoEYm2d/uNZFqUy4JSFLvkr+L22K29RGE1uZ/6GF1kcYitbghXrssZo2PckN3YGImcslJMppg==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTbMj-0004P1-UA for bug-gnu-emacs@gnu.org; Fri, 03 Jan 2025 01:41:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Jan 2025 06:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68477 X-GNU-PR-Package: emacs Original-Received: via spool by 68477-submit@debbugs.gnu.org id=B68477.173588644616895 (code B ref 68477); Fri, 03 Jan 2025 06:41:01 +0000 Original-Received: (at 68477) by debbugs.gnu.org; 3 Jan 2025 06:40:46 +0000 Original-Received: from localhost ([127.0.0.1]:49254 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTbMQ-0004OO-R3 for submit@debbugs.gnu.org; Fri, 03 Jan 2025 01:40:46 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58820) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTbMO-0004OB-QB for 68477@debbugs.gnu.org; Fri, 03 Jan 2025 01:40:41 -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 1tTbMJ-000373-8y; Fri, 03 Jan 2025 01:40:35 -0500 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=2CENO8Qvrg/np+ywJijNsViqnrzdrip3YHmCG8nQNyw=; b=b4k43H+Vl+2J S/IOZ9jcmGSnjKToiw4aHacxElYhLJWb6lCoWvoVU8qLUFQ1XoQDpco8W4eXBrV7Qfy4pogn2iax8 8M+af+c2ddm5tr3Pqsxl1cmSVFQesiqX4zxW8DC9I+ROvM94MaSyOmlkyRezTtjNfDqXybfyoe8zs zacIiKZVzxu0Kuay8e+13A/5f4fHuv2MuHZJEamp1CKMXPlUyaplAQYGXlw1IXb7aIpGP4lBsV4Sf U20vsnsNIGjW5JJotFYbobHXmZ77M7ENYyF459NhT0S+R2GCVDml+7kmCTnZ1Cz87lF/kdB1zymLV vYdmLwJ+EwwWjFATtxulAw==; In-Reply-To: <87frm1exve.fsf@gnu.org> (message from Roland Winkler on Thu, 02 Jan 2025 14:58:45 -0600) 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:298254 Archived-At: > From: Roland Winkler > Cc: joostkremers@fastmail.fm, 68477@debbugs.gnu.org > Date: Thu, 02 Jan 2025 14:58:45 -0600 > > On Thu, Jan 02 2025, Eli Zaretskii wrote: > >> Cc: 68477@debbugs.gnu.org > >> From: Roland Winkler > >> Date: Thu, 02 Jan 2025 13:09:41 -0600 > >> > >> I only discovered this bug report now. I believe utf-8 defines lots of > >> pairs of parentheses to which this bug report applies. Is there a > >> generic way to modify the syntax of "all" pairs of parentheses (except > >> the curly brackets "{" and "}") to punctuation so that parsing will > >> ignore such unpaired parentheses? > > > > Emacs should already set up the syntax of those characters, see > > char-syntax. Is that what you were looking for? > > Here the goal is the other way round: Emacs should treat these extra > parentheses not as parentheses, but as punctuation, so that imbalanced > parentheses do not break the parsing of BibTeX fields that only care > about "{" and "}", and nothing else. Please elaborate on "treat these extra parentheses as punctuation". Also, does map-char-table provide you with the means to do what is needed for bibtex? Syntax table is a char-table, so if you want to do something with all the characters of a certain syntax, you can do that using map-char-table, I think.