From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#41445: 26.3; Query-replace triggers "match data clobbered by..." Date: Sat, 23 May 2020 16:07:05 +0300 Message-ID: <83r1vaztom.fsf@gnu.org> References: <83367s4427.fsf@gnu.org> <370FA0D9-1EF2-4EC4-977C-C20106CF222D@acm.org> <83wo542mwz.fsf@gnu.org> <76CFF420-CB1C-464A-A67C-22D813C00EB8@acm.org> <83tv06zvgl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="10900"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mattiase@acm.org, ture@turepalsson.se, monnier@iro.umontreal.ca, 41445@debbugs.gnu.org To: Philipp Stephani Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 23 15:08:11 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 1jcTso-0002jI-O0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 15:08:10 +0200 Original-Received: from localhost ([::1]:46864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcTsn-0000pA-Mc for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 09:08:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55404) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcTsh-0000nt-7O for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 09:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcTsg-0003Oo-UQ for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 09:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcTsf-0005ub-Q6 for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 09:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 May 2020 13:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41445 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41445-submit@debbugs.gnu.org id=B41445.159023922722649 (code B ref 41445); Sat, 23 May 2020 13:08:01 +0000 Original-Received: (at 41445) by debbugs.gnu.org; 23 May 2020 13:07:07 +0000 Original-Received: from localhost ([127.0.0.1]:33681 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcTrm-0005tD-VE for submit@debbugs.gnu.org; Sat, 23 May 2020 09:07:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:47928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcTrl-0005sb-6r for 41445@debbugs.gnu.org; Sat, 23 May 2020 09:07:05 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:42789) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcTrf-0003Ij-2J; Sat, 23 May 2020 09:06:59 -0400 Original-Received: from [176.228.60.248] (port=2309 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jcTre-0001hg-5o; Sat, 23 May 2020 09:06:58 -0400 In-Reply-To: (message from Philipp Stephani on Sat, 23 May 2020 14:37:17 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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:180799 Archived-At: > From: Philipp Stephani > Date: Sat, 23 May 2020 14:37:17 +0200 > Cc: Mattias EngdegÄrd , > Stefan Monnier , ture@turepalsson.se, 41445@debbugs.gnu.org > > > I thought we had some advice to Lisp programs not to assume that > > match-data will be preserved, but maybe I'm misremembering. Stefan, > > do you remember something along these lines? > > That's at least what the manual says > (https://www.gnu.org/software/emacs/manual/html_node/elisp/Match-Data.html): > "Notice that all functions are allowed to overwrite the match data > unless they're explicitly documented not to do so." > (Not that I like that statement, but it is current reality.) Right, thanks. I missed that.