GNU bug report logs - #68477
29.1; bibtex-braced-string-syntax-table should handle non-ASCII parentheses

Previous Next

Package: emacs;

Reported by: Joost Kremers <joostkremers <at> fastmail.fm>

Date: Mon, 15 Jan 2024 16:55:02 UTC

Severity: normal

Found in version 29.1

Done: Roland Winkler <winkler <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Roland Winkler <winkler <at> gnu.org>
Cc: joostkremers <at> fastmail.fm, 68477 <at> 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
> Cc: 68477 <at> debbugs.gnu.org
> From: Roland Winkler <winkler <at> 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?




This bug report was last modified 134 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.