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: Fri, 03 Jan 2025 08:40:30 +0200	[thread overview]
Message-ID: <86bjwoien5.fsf@gnu.org> (raw)
In-Reply-To: <87frm1exve.fsf@gnu.org> (message from Roland Winkler on Thu, 02 Jan 2025 14:58:45 -0600)

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





  reply	other threads:[~2025-01-03  6:40 UTC|newest]

Thread overview: 6+ 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
2025-01-02 20:58     ` Roland Winkler
2025-01-03  6:40       ` Eli Zaretskii [this message]
2025-01-03 14:23         ` 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=86bjwoien5.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).