From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 19:15:31 2021 Received: (at submit) by debbugs.gnu.org; 19 Jan 2021 00:15:31 +0000 Received: from localhost ([127.0.0.1]:48797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1egF-0006On-G3 for submit@debbugs.gnu.org; Mon, 18 Jan 2021 19:15:31 -0500 Received: from lists.gnu.org ([209.51.188.17]:38782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1egE-0006Of-6z for submit@debbugs.gnu.org; Mon, 18 Jan 2021 19:15:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l1egC-0008RN-EP for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2021 19:15:30 -0500 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]:36234) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l1egA-00069B-3T for bug-gnu-emacs@gnu.org; Mon, 18 Jan 2021 19:15:28 -0500 Received: by mail-ej1-x630.google.com with SMTP id l9so20350982ejx.3 for ; Mon, 18 Jan 2021 16:15:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=Zs9pl7WNfB/tT1US+xMCptb7/Qur7sZeJCEGWsGR+l8=; b=d+ll321JZJzd99I8difcurUDzm+R7kRnvBQrpHQeAFBGjtfLQIqNClv0gtH/Oi44G8 BU0daN5QRkFyi2Pd6pQmbsg5cfgNMtwvPuG2l/3q/AsxPRhJ0Q8LiXTHNLDzdVZ2Tfum RP5T54YlOd8jFqMFl3KA+KRIhdmSbe1UfX4U+wSNVVU2tDovKLzWnaspXpuz99wXaGn4 6PC76ag2il+2fNljhAOCj5/1Lf+E9yO3MHlfXp3MtJsB8izRCgkvR+2Dy3Qn5t7faBvx qIsPbdYNXIBaeCtWvmbUyUwEHTfN4Isg9l+NlR/7MUFfMVsE9sHcWtM1rLK5MjSo6y/g w8xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=Zs9pl7WNfB/tT1US+xMCptb7/Qur7sZeJCEGWsGR+l8=; b=Gn5sg2yQ1IgMRxXYGVwOXC89mz7UTWvD661tblfUEtiFwd1paGLmdcqbJC/OrEWt1x FU5pT+qE6MlajZDfI5gOnnHJRgQ4OxbT1L0pXkPhE/N4Fx1EKYoWVnP4vwgtUaSx0BfQ 4R1xFIyDGgwP4U0w4DRZF25rAHt9s2dn7Q7r6taPdEEevN0ZaPnXhDhAyqmcyLttDCYj 2w/2slnA2jWG4sFrVUlqW2Q5QLoNOh/y7B4fFUnALC9dFbZrF+fEimORck7iClv4K7T3 2cTvQi61BLooN0PtixWzm4A+DSiGoeriopZUSHYSfwbS0Ku+KArelrVDTOgiDtldNM5Z NVQA== X-Gm-Message-State: AOAM5316qksZ6x6jUK/wxBz1klVkZOfcLrMNDih4dvSJ+3HcbT733NKs 4rwouYr65XnW4vOE4bO4a1t5nWaAWb4DYZQW55iSAGByJwIQCw== X-Google-Smtp-Source: ABdhPJzP+0p7b23+3Z0sTrfkZ7aKmXOPz6METXBwV7zkRrIrSXULgDmqe9Cr+KOQq+dQvbJuxameRWB1C/MD131yfaM= X-Received: by 2002:a17:906:4bc2:: with SMTP id x2mr1320028ejv.4.1611015321990; Mon, 18 Jan 2021 16:15:21 -0800 (PST) MIME-Version: 1.0 From: Nicholas Drozd Date: Mon, 18 Jan 2021 18:15:09 -0600 Message-ID: Subject: replace-regexp lisp replacement bug To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::630; envelope-from=nicholasdrozd@gmail.com; helo=mail-ej1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Here is a string representing a Turing machine program: 1RB 1LC 1RC 1RB 1RD 0LE 1LA 1LD 1RH 0LA Say I have a file full of lines like this, and I want to swap all the Ls for Rs and vice versa. `replace-regexp` is a good way to do it. For the regexp, I use `\(\(L\)\|\(R\)\)`, a matching group with two nested matching alternatives; for the replacement, I use a Lisp expression: `\,(if \2 "R" "L")`. This expression says: if the second match is found (the `L`), replace it with "R", else replace it with "L". In Emacs 27 (b58fd1eab9), this gives the expected result: 1LB 1RC 1LC 1LB 1LD 0RE 1RA 1RD 1LH 0RA But in Emacs 28 (20add1cd22), it gives an error: replace-highlight: Wrong type argument: integer-or-marker-p, nil A simpler replacement does work: `\(L\)\|R` and `\,(if \1 "R" "L")`. But the longer one should work too. I tried to make a Lisp test to reproduce this, but the `\,` replacement feature is interactive-only, and I don't know how to test it non-interactively. From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 22:45:05 2021 Received: (at 45973) by debbugs.gnu.org; 19 Jan 2021 03:45:05 +0000 Received: from localhost ([127.0.0.1]:48973 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1hx3-0003qT-9O for submit@debbugs.gnu.org; Mon, 18 Jan 2021 22:45:05 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1hx2-0003ph-9y for 45973@debbugs.gnu.org; Mon, 18 Jan 2021 22:45:04 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=k7gWeOpNbpx8vb11KHt2BGsIu17cWvh6XUvCg5cdEhQ=; b=SQpJrbY3Z2siurtB4XDcv5fqCw nM07qmBEaLyD5kap+TVhtpKKjZQfO/y5udNbhQJl62u6HcaTA4b12l4OxOQjw3gndtVVbYGv6IhhP GoZ6jVs6M6pnAZvKgwryyxQoYYW/KnwmdF/q6575m6BrMukjCIgydYamUC8pQf8U3U1U=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1hwt-0002wu-Fi; Tue, 19 Jan 2021 04:44:57 +0100 From: Lars Ingebrigtsen To: Nicholas Drozd Subject: Re: bug#45973: replace-regexp lisp replacement bug References: X-Now-Playing: The Durutti Column's _Without Mercy (4)_: "E.E." Date: Tue, 19 Jan 2021 04:44:52 +0100 In-Reply-To: (Nicholas Drozd's message of "Mon, 18 Jan 2021 18:15:09 -0600") Message-ID: <87sg6xr3nv.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Nicholas Drozd writes: > I tried to make a Lisp test to reproduce this, but the `\,` > replacement feature is interactive-only, and I don't know how to test > it non-interactively. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45973 Cc: 45973@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Nicholas Drozd writes: > I tried to make a Lisp test to reproduce this, but the `\,` > replacement feature is interactive-only, and I don't know how to test > it non-interactively. The reproducer is: (replace-regexp "\\(\\(L\\)\\|\\(R\\)\\)" '(replace-eval-replacement replace-quote (if (match-string 2) "R" "L")) nil nil nil nil nil) And this leads to the following backtrace: Debugger entered--Lisp error: (wrong-type-argument integer-or-marker-p nil) make-overlay(nil nil) replace-highlight(2 3 nil nil "\\(\\(L\\)\\|\\(R\\)\\)" t nil nil nil) perform-replace("\\(\\(L\\)\\|\\(R\\)\\)" (replace-eval-replacement replace-quote (if (match-string 2) "R" "L")) nil t nil nil nil nil nil nil nil) replace-regexp("\\(\\(L\\)\\|\\(R\\)\\)" (replace-eval-replacement replace-quote (if (match-string 2) "R" "L")) nil nil nil nil nil) eval((replace-regexp "\\(\\(L\\)\\|\\(R\\)\\)" '(replace-eval-replacement replace-quote (if (match-string 2) "R" "L")) nil nil nil nil nil) t) eval-expression((replace-regexp "\\(\\(L\\)\\|\\(R\\)\\)" '(replace-eval-replacement replace-quote (if (match-string 2) "R" "L")) nil nil nil nil nil) nil nil 127) funcall-interactively(eval-expression (replace-regexp "\\(\\(L\\)\\|\\(R\\)\\)" '(replace-eval-replacement replace-quote (if (match-string 2) "R" "L")) nil nil nil nil nil) nil nil 127) call-interactively(eval-expression nil nil) command-execute(eval-expression) So this is a problem with the new code that highlights the matches, I think? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 18 22:45:12 2021 Received: (at control) by debbugs.gnu.org; 19 Jan 2021 03:45:12 +0000 Received: from localhost ([127.0.0.1]:48976 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1hxA-0003qt-Jg for submit@debbugs.gnu.org; Mon, 18 Jan 2021 22:45:12 -0500 Received: from quimby.gnus.org ([95.216.78.240]:53746) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1hx9-0003qa-9a for control@debbugs.gnu.org; Mon, 18 Jan 2021 22:45:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=w13y02crvn/PYoXTGl87aTIbv5BKGjE/vAYc6VYuQO0=; b=MHXIOsibwTGxEQVhUky49VvrlZ ax8XtOp0moP+H0TcidqGYX0NKPi7Zx+pbckJjecOjaLWxpuPrPvs1sLdsx5nRmSKMVtee+jpEnfys a0dkwnSCH7by5zbU3V4p6yqRT9FjUZM5VtAka+2HyNn0Kt1HBN2aNgUQYqFexLveD+rQ=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1hx1-0002x8-PC for control@debbugs.gnu.org; Tue, 19 Jan 2021 04:45:05 +0100 Date: Tue, 19 Jan 2021 04:45:02 +0100 Message-Id: <87r1mhr3nl.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #45973 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 45973 + confirmed quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 45973 + confirmed quit From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 13:16:21 2021 Received: (at 45973) by debbugs.gnu.org; 19 Jan 2021 18:16:21 +0000 Received: from localhost ([127.0.0.1]:51639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1vYC-00057y-Qf for submit@debbugs.gnu.org; Tue, 19 Jan 2021 13:16:21 -0500 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:52413) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1vY9-00057e-6B; Tue, 19 Jan 2021 13:16:19 -0500 X-Originating-IP: 91.129.98.64 Received: from mail.gandi.net (m91-129-98-64.cust.tele2.ee [91.129.98.64]) (Authenticated sender: juri@linkov.net) by relay5-d.mail.gandi.net (Postfix) with ESMTPSA id 3C2861C000C; Tue, 19 Jan 2021 18:16:08 +0000 (UTC) From: Juri Linkov To: Lars Ingebrigtsen Subject: Re: bug#45973: replace-regexp lisp replacement bug Organization: LINKOV.NET References: <87sg6xr3nv.fsf@gnus.org> Date: Tue, 19 Jan 2021 20:14:58 +0200 In-Reply-To: <87sg6xr3nv.fsf@gnus.org> (Lars Ingebrigtsen's message of "Tue, 19 Jan 2021 04:44:52 +0100") Message-ID: <87v9bsaj4t.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 45973 Cc: Nicholas Drozd , 45973@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) tags 45973 fixed close 45973 28.0.50 thanks > Nicholas Drozd writes: >> I tried to make a Lisp test to reproduce this, but the `\,` >> replacement feature is interactive-only, and I don't know how to test >> it non-interactively. Thanks for the reproducible test case. > The reproducer is: > > (replace-regexp "\\(\\(L\\)\\|\\(R\\)\\)" '(replace-eval-replacement replace-quote (if (match-string 2) "R" "L")) nil nil nil nil nil) > > So this is a problem with the new code that highlights the matches, I > think? Yep. Now fixed on master. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 17:36:41 2021 Received: (at 45973) by debbugs.gnu.org; 19 Jan 2021 22:36:41 +0000 Received: from localhost ([127.0.0.1]:52045 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1zc9-0001QH-5l for submit@debbugs.gnu.org; Tue, 19 Jan 2021 17:36:41 -0500 Received: from mail-ej1-f43.google.com ([209.85.218.43]:45990) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l1zc7-0001Pm-8R for 45973@debbugs.gnu.org; Tue, 19 Jan 2021 17:36:40 -0500 Received: by mail-ej1-f43.google.com with SMTP id ke15so23127910ejc.12 for <45973@debbugs.gnu.org>; Tue, 19 Jan 2021 14:36:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=krNyZ85/e3Eat5TpWA0i+UCiBsLTVUoUDDPRzSWN6b8=; b=OyGakVg3e+zMA2FFCmHgMUu1mNc+DFF7HIQhXYVquvO7Syg9HRsoQCkmSK+/d3EOFD XF3/ZLDngBcqIgwljYuDjZKhyzy5QRuOxYrBL+SJ2BoDm473fLrDM3uDHxuKxN8Q3s5r Pt/Wg2L3Hb1F6OzUO0Ruz+/K35vJ5OHvicPREWR/bCrDBj6uJAB9BwOiOuFnVQKKQeAp nCyd9NW/yEgKNrNNV4nSqA+ELPWNxy8HvODLbpuam3IlQ1fnPzhaLybkRcZeNjx9YwhD UZ589MJMsvA68e4pHnao4hlYrg0ADklCq6BHEPB9uxVHDutNfx9/k4ODPdql6sNbW+2A asrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=krNyZ85/e3Eat5TpWA0i+UCiBsLTVUoUDDPRzSWN6b8=; b=bn4pDl+atLQB9VreldGaHOL6M7l8xHrLKyxA3UfTb/SlwSZ+KF0t9l23rGv8Q24mdF Z7jlRXkHm+hpkpniAfggUZR3uVlqq/ICBjEMfEPNGSlqX8sONyxe4+A7Yshi9WdJrXJ4 JFxmpM9s2z+/ve89Y4MurmGX/FDT+D/+8/yoFX2nxzNnW3Pk/qP247Drv2mHmkt1hDZJ uEQVDqHfo2zatz70I0pVn7I4M1MNzRUnlO1T1DGYjMPjOOM8TU5AjV+SdHFoZZxOiyj4 bGlLN2Xl34RjuXW/xw0No57/nKHJ38T6Y88SI5bVYZ88vIO/lkh/9ykuYPVQ8EjPJxsG nnHw== X-Gm-Message-State: AOAM533sNcCFtmmY7bLmcFsa2gsLooKIxi8QvpXXM8Gk9AV+rzma6eha vD8+KTHRfZWeaLMvV/Pb0JH9A17rRuoQrpQcErg= X-Google-Smtp-Source: ABdhPJxKJpoArvlsgvAgzig9bZqN7wuojnCmtqYm7sVWNhdZtws6ZbP3rR+/zGHyFITm2e4mb8ZCZ2d+YV6V4pTHsMg= X-Received: by 2002:a17:906:3101:: with SMTP id 1mr4419647ejx.115.1611095793261; Tue, 19 Jan 2021 14:36:33 -0800 (PST) MIME-Version: 1.0 References: <87sg6xr3nv.fsf@gnus.org> <87v9bsaj4t.fsf@mail.linkov.net> In-Reply-To: <87v9bsaj4t.fsf@mail.linkov.net> From: Nicholas Drozd Date: Tue, 19 Jan 2021 16:36:20 -0600 Message-ID: Subject: Re: bug#45973: replace-regexp lisp replacement bug To: Juri Linkov Content-Type: multipart/mixed; boundary="00000000000074f1df05b94878c6" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45973 Cc: Lars Ingebrigtsen , 45973@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000074f1df05b94878c6 Content-Type: text/plain; charset="UTF-8" Thanks for the quick turnaround. I've included a patch to add a test for this. --00000000000074f1df05b94878c6 Content-Type: text/x-patch; charset="US-ASCII"; name="0001-test-lisp-replace-tests.el-Add-nested-match-group-te.patch" Content-Disposition: attachment; filename="0001-test-lisp-replace-tests.el-Add-nested-match-group-te.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_kk4koey10 RnJvbSBkN2JlZDcxOGE1YTg4Y2M4MzQ0NTZhYzhkMmUzOWZmYzRmMDdlMjkyIE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBOaWNrIERyb3pkIDxuaWNob2xhc2Ryb3pkQGdtYWlsLmNvbT4K RGF0ZTogVHVlLCAxOSBKYW4gMjAyMSAxNjoyNjowMiAtMDYwMApTdWJqZWN0OiBbUEFUQ0hdICog dGVzdC9saXNwL3JlcGxhY2UtdGVzdHMuZWw6IEFkZCBuZXN0ZWQgbWF0Y2ggZ3JvdXAgdGVzdAoK LS0tCiB0ZXN0L2xpc3AvcmVwbGFjZS10ZXN0cy5lbCB8IDEzICsrKysrKysrKysrKysKIDEgZmls ZSBjaGFuZ2VkLCAxMyBpbnNlcnRpb25zKCspCgpkaWZmIC0tZ2l0IGEvdGVzdC9saXNwL3JlcGxh Y2UtdGVzdHMuZWwgYi90ZXN0L2xpc3AvcmVwbGFjZS10ZXN0cy5lbAppbmRleCA4YzI2ODJhMWYx Li4yZGI1NzBjOTdkIDEwMDY0NAotLS0gYS90ZXN0L2xpc3AvcmVwbGFjZS10ZXN0cy5lbAorKysg Yi90ZXN0L2xpc3AvcmVwbGFjZS10ZXN0cy5lbApAQCAtNTg3LDUgKzU4NywxOCBAQCBvY2N1ci1o aWdobGlnaHQtb2NjdXJyZW5jZQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGdldC10 ZXh0LXByb3BlcnR5IChwb2ludCkgJ29jY3VyLXRhcmdldCkpCiAgICAgICAgICAgKHNob3VsZCAo ZnVuY2FsbCBjaGVjay1vdmVybGF5cyBoYXMtb3ZlcmxheSkpKSkpKSkKIAorKGVydC1kZWZ0ZXN0 IHJlcGxhY2UtcmVnZXhwLWJ1ZzQ1OTczICgpCisgICJUZXN0IGZvciBodHRwczovL2RlYmJ1Z3Mu Z251Lm9yZy80NTk3MyAuIgorICAobGV0ICgoYmVmb3JlICIxUkIgMUxDIDFSQyAxUkIgMVJEIDBM RSAxTEEgMUxEIDFSSCAwTEEiKQorICAgICAgICAoYWZ0ZXIgICIxTEIgMVJDIDFMQyAxTEIgMUxE IDBSRSAxUkEgMVJEIDFMSCAwUkEiKSkKKyAgICAod2l0aC10ZW1wLWJ1ZmZlcgorICAgICAgKGlu c2VydCBiZWZvcmUpCisgICAgICAoZ290by1jaGFyIChwb2ludC1taW4pKQorICAgICAgKHJlcGxh Y2UtcmVnZXhwCisgICAgICAgIlxcKFxcKExcXClcXHxcXChSXFwpXFwpIgorICAgICAgICcocmVw bGFjZS1ldmFsLXJlcGxhY2VtZW50CisgICAgICAgICByZXBsYWNlLXF1b3RlCisgICAgICAgICAo aWYgKG1hdGNoLXN0cmluZyAyKSAiUiIgIkwiKSkpCisgICAgICAoc2hvdWxkIChlcXVhbCAoYnVm ZmVyLXN0cmluZykgYWZ0ZXIpKSkpKQogCiA7OzsgcmVwbGFjZS10ZXN0cy5lbCBlbmRzIGhlcmUK LS0gCjIuMTcuMQoK --00000000000074f1df05b94878c6-- From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 19 20:46:49 2021 Received: (at 45973) by debbugs.gnu.org; 20 Jan 2021 01:46:49 +0000 Received: from localhost ([127.0.0.1]:52192 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l22a8-0007z1-RO for submit@debbugs.gnu.org; Tue, 19 Jan 2021 20:46:49 -0500 Received: from quimby.gnus.org ([95.216.78.240]:38036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l22a7-0007yo-7K for 45973@debbugs.gnu.org; Tue, 19 Jan 2021 20:46:47 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=OvoMNTQpflaJLeE3qoBh1C9o1meD7HkDABpMzJP0O0Y=; b=jnVSbdXaZZ3XzJ1szrF77Fj8gq sreC2bIeQiE5Ubf5p6CaAeTTJ6rVpG1HTqgjOpW7r+cJtzI7Of2nRXMlPljbEcRYJrHTZaMiq/Jr6 c+sUakavom0WZ1kSAuvLZoFci7I4bbm+Dbe6F5FTceN3jqQNFzMuwOnBAOWWlr8JoL/4=; Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l22Zy-0007eT-Ix; Wed, 20 Jan 2021 02:46:40 +0100 From: Lars Ingebrigtsen To: Nicholas Drozd Subject: Re: bug#45973: replace-regexp lisp replacement bug References: <87sg6xr3nv.fsf@gnus.org> <87v9bsaj4t.fsf@mail.linkov.net> X-Now-Playing: Hannah Jones's _The Remixes (CD3)_: "You Only Have To Say You Love Me (Julian Gingell & Barry Stone Mix)" Date: Wed, 20 Jan 2021 02:46:37 +0100 In-Reply-To: (Nicholas Drozd's message of "Tue, 19 Jan 2021 16:36:20 -0600") Message-ID: <87pn207536.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Nicholas Drozd writes: > Thanks for the quick turnaround. I've included a patch to add a test for this. Thanks; added to Emacs 28. Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 45973 Cc: 45973@debbugs.gnu.org, Juri Linkov X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Nicholas Drozd writes: > Thanks for the quick turnaround. I've included a patch to add a test for this. Thanks; added to Emacs 28. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From unknown Sat Jun 14 03:47:39 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 17 Feb 2021 12:24:14 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator