From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Newsgroups: gmane.emacs.bugs Subject: bug#39686: 25.2; Wrong behaviour of bibtex-autokey-name-change-strings Date: Fri, 21 Feb 2020 21:43:08 +0100 Message-ID: <6F3F5510-4567-47A2-B0AA-88E2FED57167@acm.org> References: <7219B520-D833-427B-A8E4-35FF71201356@acm.org> <14225.14543.383801.24144@gargle.gargle.HOWL> Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="13670"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gojjoe2@googlemail.com, 39686@debbugs.gnu.org To: Roland Winkler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Feb 21 21:44:14 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 1j5F9h-0003Rc-TY for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Feb 2020 21:44:13 +0100 Original-Received: from localhost ([::1]:36048 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5F9g-0006Gn-WD for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 21 Feb 2020 15:44:13 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54747) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j5F9X-0006GU-Px for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 15:44:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j5F9W-0004We-Q8 for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 15:44:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:42247) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1j5F9W-0004WY-NM for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 15:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1j5F9W-0004pR-IG for bug-gnu-emacs@gnu.org; Fri, 21 Feb 2020 15:44:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 21 Feb 2020 20:44:02 +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.158231779518478 (code B ref 39686); Fri, 21 Feb 2020 20:44:02 +0000 Original-Received: (at 39686) by debbugs.gnu.org; 21 Feb 2020 20:43:15 +0000 Original-Received: from localhost ([127.0.0.1]:48216 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5F8k-0004ny-Kl for submit@debbugs.gnu.org; Fri, 21 Feb 2020 15:43:14 -0500 Original-Received: from mail237c50.megamailservers.eu ([91.136.10.247]:52936 helo=mail56c50.megamailservers.eu) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1j5F8i-0004np-PR for 39686@debbugs.gnu.org; Fri, 21 Feb 2020 15:43:13 -0500 X-Authenticated-User: mattiase@bredband.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=megamailservers.eu; s=maildub; t=1582317791; bh=1mHnMlcC4RSKDiphUBSUkEDCIFLtDDSrdJU61gSwVzU=; h=Subject:From:In-Reply-To:Date:Cc:References:To:From; b=WYoo30Cl8HR+joKuKYlqswhMPUiDDN2RBCxgt3DN3/YbWOT+OuyaDc2eaz3arDuR3 ENSdWMi4A8vgcg0RP8ylh27Tny1FuZt5HSVf+OhvbPyi2LI/Oh0Ln9KD5mEXAJEA55 9ZxYNWzed0yyxGxVSNCwG2F6beuq531Z47nOpEE4= Feedback-ID: mattiase@acm.or Original-Received: from stanniol.lan (c-6f4fe655.032-75-73746f71.bbcust.telenor.se [85.230.79.111]) (authenticated bits=0) by mail56c50.megamailservers.eu (8.14.9/8.13.1) with ESMTP id 01LKh9P1030071; Fri, 21 Feb 2020 20:43:10 +0000 In-Reply-To: <14225.14543.383801.24144@gargle.gargle.HOWL> X-Mailer: Apple Mail (2.3445.104.11) X-CTCH-RefID: str=0001.0A0B0210.5E5040DF.0017, ss=1, re=0.000, recu=0.000, reip=0.000, cl=1, cld=1, fgs=0 X-CTCH-VOD: Unknown X-CTCH-Spam: Unknown X-CTCH-Score: 0.000 X-CTCH-Flags: 0 X-CTCH-ScoreCust: 0.000 X-CSC: 0 X-CHA: v=2.3 cv=Hc1qsRM8 c=1 sm=1 tr=0 a=fHaj9vQUQVKQ4sUldAaXuQ==:117 a=fHaj9vQUQVKQ4sUldAaXuQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=M51BFTxLslgA:10 a=mDV3o1hIAAAA:8 a=s8KEOM3ZS6JGeiu2cQYA:9 a=CjuIK1q_8ugA:10 a=_FVE-zBwftR9WsbkzFJk:22 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:176379 Archived-At: 21 feb. 2020 kl. 21.03 skrev Roland Winkler : > 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. In LaTeX you can't just write 'b\oeuf'; it will complain that '\oeuf' is = undefined. You have to write 'b\oe uf' or 'b{\oe}uf'. Thus there is a = word break at the end. (Accents, like '\"o', are different; there is = only a single letter after the '\"'.) With your table, you replace '\o' with 'oe', but what if the text uses a = different \-sequence starting with \o, like '\omega'? After = substitution, you would have 'oemega' which wasn't intended. Safer then to tack on a zero-width assertion, like "\\\\\\(?:o\\|oe\\)\\>" for example. Or, if you think it's hard to read, (rx "\\" (or "o" "oe") word-end)