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: Thu, 02 Jan 2025 22:13:51 +0200 Message-ID: <86pll5ht34.fsf@gnu.org> References: <86o7dmo7uj.fsf@p200300d62730c892f021caab3c1ebecc.dip0.t-ipconnect.de> <87o70pf2x6.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27690"; 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 Thu Jan 02 21:15:23 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 1tTRbG-00072D-PB for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Jan 2025 21:15:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tTRaz-00089h-0a; Thu, 02 Jan 2025 15:15:05 -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 1tTRax-00087h-EQ for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 15:15: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 1tTRaw-0001PW-KR for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 15:15: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=Z/IyIsB21MFZ8o9g09RWUVz2BrgyzVtd7+ge2MWx+xA=; b=Ts9EgMIzzFO2SUrFQ7Tf06BHHtHnwZUSgmAvBwrMc77NS8/JnJBsP+a2FRDsGAUnecSkHpoTCYmf+Rc3BA6AKWFcTV5L7RR14dcriDKuFFDLhg3VYUDD5jYj/DaLT04ciyzCMK3lQOd/kMGy8xYKe80WYdNjwp+I74d4+nA0yc3ihPY+LN+G0CSQxBWVGeBbRkCheB+ee4Cp3lrcrOyJIXUdKcFCSXATod2NrxicxVzGcbXlcJJf3PFVXDPQDprz9WSICo5N6PI4Es9DZR+KTb5wldpmLxZiqg1UWQssCf0bJYMoPxfwjG5L1LkyLP2joLMK3lCB1hKTDY53AGm+ww==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tTRaw-0005mU-Fp for bug-gnu-emacs@gnu.org; Thu, 02 Jan 2025 15:15:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Jan 2025 20:15:02 +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.173584884422044 (code B ref 68477); Thu, 02 Jan 2025 20:15:02 +0000 Original-Received: (at 68477) by debbugs.gnu.org; 2 Jan 2025 20:14:04 +0000 Original-Received: from localhost ([127.0.0.1]:46858 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tTRZy-0005jI-J6 for submit@debbugs.gnu.org; Thu, 02 Jan 2025 15:14:03 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35482) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tTRZx-0005io-1R for 68477@debbugs.gnu.org; Thu, 02 Jan 2025 15:14:01 -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 1tTRZr-0001GY-Np; Thu, 02 Jan 2025 15:13:55 -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=Z/IyIsB21MFZ8o9g09RWUVz2BrgyzVtd7+ge2MWx+xA=; b=ApFHuY+LFTnO NiKVucvrDJrZE+cZf7XMrOpCGA68Ro6CFYLIxR/Zte/GGBOKK2d6LMYcETxvrtb9C9tMykqJteSwi SplABXe+OchHVBLQuc9Q8vixN6/Lexs9uYUC74OXFtBN3zZkoMoiG6Sqpz2t8FsYACDub9u2B/nbP z6nYSWVxKONtZbufMmOP3Ga5h/Q474MmjEatlxvgbr7irgApPvOssETMbNDxwzPpgvRiDAUJVyeR4 eWgEha8oxQN2+BKN30zP1rFCIGXkImyojNQIUSOHKV+bLkPxOPgDeNyPvzvnIgdxEuW34PRSpy7Cp WlWSvDMXtOObBRDrOyWpFA==; In-Reply-To: <87o70pf2x6.fsf@gnu.org> (message from Roland Winkler on Thu, 02 Jan 2025 13:09:41 -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:298233 Archived-At: > Cc: 68477@debbugs.gnu.org > From: Roland Winkler > Date: Thu, 02 Jan 2025 13:09:41 -0600 > > > Note that the `abstract` field has a single opening FULLWIDTH OPENING > > PARENTHESIS (code point #xff08), not the (ASCII) LEFT > > PARENTHESIS. bibtex-mode cannot parse this entry correctly. (Do, e.g., > > `C-c C-c` on the entry, bound to `bibtex-clean-entry` and you'll get a > > user error "Syntactically incorrect BibTeX entry starts here".) > > > > If the field contains an unmatched LEFT PARENTHESIS (code point #x28), > > bibtex-mode has no trouble parsing the entry. > > > > This is ultimately due to the fact that > > `bibtex-braced-string-syntax-table` contains an entry for the ASCII > > parentheses, setting them to 'punctuation', but there is no similar > > entry for non-ASCII parentheses. > > 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?