unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Roland Winkler <winkler@gnu.org>
Cc: joostkremers@fastmail.fm, 68477@debbugs.gnu.org
Subject: bug#68477: 29.1; bibtex-braced-string-syntax-table should handle non-ASCII parentheses
Date: Thu, 02 Jan 2025 22:13:51 +0200	[thread overview]
Message-ID: <86pll5ht34.fsf@gnu.org> (raw)
In-Reply-To: <87o70pf2x6.fsf@gnu.org> (message from Roland Winkler on Thu, 02 Jan 2025 13:09:41 -0600)

> Cc: 68477@debbugs.gnu.org
> From: Roland Winkler <winkler@gnu.org>
> 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?





  reply	other threads:[~2025-01-02 20:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-15 16:43 bug#68477: 29.1; bibtex-braced-string-syntax-table should handle non-ASCII parentheses Joost Kremers
2025-01-02 19:09 ` Roland Winkler
2025-01-02 20:13   ` Eli Zaretskii [this message]
2025-01-02 20:58     ` Roland Winkler
2025-01-03  6:40       ` Eli Zaretskii
2025-01-03 14:23         ` Roland Winkler
2025-01-07 19:50           ` Roland Winkler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86pll5ht34.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=68477@debbugs.gnu.org \
    --cc=joostkremers@fastmail.fm \
    --cc=winkler@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).