all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Roland Winkler" <winkler@gnu.org>
To: "Mattias Engdegård" <mattiase@acm.org>
Cc: gojjoe2@googlemail.com, 39686@debbugs.gnu.org
Subject: bug#39686: 25.2; Wrong behaviour of bibtex-autokey-name-change-strings
Date: Fri, 21 Feb 2020 14:03:29 -0600	[thread overview]
Message-ID: <14225.14543.383801.24144@gargle.gargle.HOWL> (raw)
In-Reply-To: <7219B520-D833-427B-A8E4-35FF71201356@acm.org>

On Fri Feb 21 2020 Mattias Engdegård wrote:
> Correct me if I'm wrong, but it looks like the assumption is that
> all possible \-sequences have been enumerated in that list. More
> likely, some kind of anchoring after the match is needed, like
> word-end ("\\>"). Then the matching order doesn't matter.

I am not sure I understand.  The idea in bibtex-autokey-transcriptions
is that each match of OLD-REGEXP is replaced in full by NEW-STRING.
Subexpressions are ignored.

In LaTeX syntax, OLD-REGEXP can appear anywhere inside what LaTeX
considers a word (which even may include spaces).  So to make things
more fool-proofed, it would be necessary to parse more carefully the
LaTeX code.  I do not think this effort is needed here as these
regexps have worked well for at least two decades.  The patch fixes
a minor problem of these regexps pointed out by the OP.  But
otherwise it preserves their spirit.





  reply	other threads:[~2020-02-21 20:03 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-20  4:54 bug#39686: 25.2; Wrong behaviour of bibtex-autokey-name-change-strings Roland Winkler
     [not found] ` <handler.39686.B.158217451717286.ack@debbugs.gnu.org>
2020-02-20  5:04   ` Roland Winkler
2020-02-21  9:22     ` gojjoe2--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-02-21 14:06       ` Roland Winkler
2020-02-21 14:08         ` gojjoe2--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-02-21 14:13     ` Roland Winkler
2020-02-21 15:01       ` Eli Zaretskii
2020-02-21 19:50         ` Roland Winkler
2020-02-22  9:12           ` Eli Zaretskii
2020-03-06  8:46             ` Roland Winkler
2020-02-21 16:05 ` Mattias Engdegård
2020-02-21 20:03   ` Roland Winkler [this message]
2020-02-21 20:43     ` Mattias Engdegård
2020-02-21 21:03       ` Roland Winkler
2020-02-21 21:32         ` Mattias Engdegård

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

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

  git send-email \
    --in-reply-to=14225.14543.383801.24144@gargle.gargle.HOWL \
    --to=winkler@gnu.org \
    --cc=39686@debbugs.gnu.org \
    --cc=gojjoe2@googlemail.com \
    --cc=mattiase@acm.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.