GNU bug report logs -
#68477
29.1; bibtex-braced-string-syntax-table should handle non-ASCII parentheses
Previous Next
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
On Fri, Jan 03 2025, Eli Zaretskii wrote:
> Please elaborate on "treat these extra parentheses as punctuation".
bibtex-braced-string-syntax-table gives curly braces the syntax of
parenthesis characters using
(modify-syntax-entry ?\{ "(}" st)
(modify-syntax-entry ?\} "){" st)
but square and round parentheses are treated as punctuation using
(modify-syntax-entry ?\[ "." st)
(modify-syntax-entry ?\] "." st)
(modify-syntax-entry ?\( "." st)
(modify-syntax-entry ?\) "." st)
The goal is to do the latter with all non-ascii parentheses.
> 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.
Thanks, yes, map-char-table should be exactly what is needed for
bibtex-braced-string-syntax-table: for any non-ascii character where
char-syntax says it belongs to the syntax class of parenthesis
characters, its syntax needs to be changed to punctuation.
(When I was looking for a solution I had checked the section on syntax
tables in the elisp manual. But map-char-table is obviously in the
section on character tables.)
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.