From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: "Roland Winkler" Newsgroups: gmane.emacs.bugs Subject: bug#39686: 25.2; Wrong behaviour of bibtex-autokey-name-change-strings Date: Fri, 21 Feb 2020 14:03:29 -0600 Message-ID: <14225.14543.383801.24144@gargle.gargle.HOWL> References: <7219B520-D833-427B-A8E4-35FF71201356@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="92379"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gojjoe2@googlemail.com, 39686@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 21 21:04:10 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j5EWw-000NuB-KD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Feb 2020 21:04:10 +0100 Original-Received: from localhost ([::1]:35748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5EWv-0002IO-LO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Feb 2020 15:04:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47541) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5EWo-0002IE-Us for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 15:04:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5EWo-0002U9-1p for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 15:04:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j5EWn-0002U4-VF for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 15:04:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j5EWn-0001oQ-R5 for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 15:04:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Roland Winkler" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Feb 2020 20:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 39686 X-GNU-PR-Package: emacs Original-Received: via spool by 39686-submit@debbugs.gnu.org id=B39686.15823154186934 (code B ref 39686); Fri, 21 Feb 2020 20:04:01 +0000 Original-Received: (at 39686) by debbugs.gnu.org; 21 Feb 2020 20:03:38 +0000 Original-Received: from localhost ([127.0.0.1]:48177 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5EWP-0001nm-TZ for submit@debbugs.gnu.org; Fri, 21 Feb 2020 15:03:38 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60585) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5EWO-0001na-Cg for 39686@debbugs.gnu.org; Fri, 21 Feb 2020 15:03:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:40230) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j5EWI-0002LG-Vp; Fri, 21 Feb 2020 15:03:31 -0500 Original-Received: from mobile-130-126-255-248.near.illinois.edu ([130.126.255.248]:49796 helo=regnitz) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1j5EWI-0000Ct-Co; Fri, 21 Feb 2020 15:03:30 -0500 In-Reply-To: <7219B520-D833-427B-A8E4-35FF71201356@acm.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:176376 Archived-At: On Fri Feb 21 2020 Mattias Engdeg=C3=A5rd 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.