From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#41445: 26.3; Query-replace triggers "match data clobbered by..." Date: Sat, 23 May 2020 08:43:33 -0700 (PDT) Message-ID: <08eb08ac-0ff0-424c-9885-271f36c6daa8@default> 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=iso-8859-1 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="16813"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , ture@turepalsson.se, 41445@debbugs.gnu.org To: Stefan Monnier , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 23 17:46: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 1jcWLi-0004Ez-E5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 17:46:10 +0200 Original-Received: from localhost ([::1]:33644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jcWLh-0007m8-2f for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 May 2020 11:46:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39144) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jcWLa-0007m1-CQ for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 11:46:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:52025) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jcWLa-0006gX-3U for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 11:46:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jcWLa-00088v-14 for bug-gnu-emacs@gnu.org; Sat, 23 May 2020 11:46:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 May 2020 15:46: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.159024875731289 (code B ref 41445); Sat, 23 May 2020 15:46:01 +0000 Original-Received: (at 41445) by debbugs.gnu.org; 23 May 2020 15:45:57 +0000 Original-Received: from localhost ([127.0.0.1]:35338 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcWLV-00088b-Fr for submit@debbugs.gnu.org; Sat, 23 May 2020 11:45:57 -0400 Original-Received: from userp2120.oracle.com ([156.151.31.85]:55160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jcWLT-00088L-7h for 41445@debbugs.gnu.org; Sat, 23 May 2020 11:45:55 -0400 Original-Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04NFfYHx074062; Sat, 23 May 2020 15:45:48 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : cc : subject : references : in-reply-to : content-type : content-transfer-encoding; s=corp-2020-01-29; bh=IQlRyOSogKvXl2mqAQUlMMK/MDSeM+2/wQ4D781Qd9k=; b=osjC+46jmgASSdoeOriyAkERFpDTmg8MQOv40HRF3y7etX1DXhpgfAz/q7ajP3horYsB VGxofy9GA+PON2Zqp2u7PZGw81ljRhRfpHTCVpfpsBDFQGys8KjdXLuapKB5akHDOvO5 BwmjJHiGbMdwfYBGWY7cCQE23AAR4RnGpUSA+OeWxgRabmjNERm0DA9Gc4UTTAYg3VsF WUByw+MhFwUrJsETL1HuETOHe0qrlkwqJOjoj9x8ewIByMSa2JsrxSKeY5lxlFUr7xxF uhDJrO9FBYXzgEJpO1jXqZExY/9usxOVsP3N+606wuQX6dgnrHx3yiY5Lly+y0HVV9sl kA== Original-Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 316vfn11nw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 23 May 2020 15:45:48 +0000 Original-Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 04NFgcjw037971; Sat, 23 May 2020 15:43:47 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userp3030.oracle.com with ESMTP id 316rxrtyky-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Sat, 23 May 2020 15:43:47 +0000 Original-Received: from abhmp0003.oracle.com (abhmp0003.oracle.com [141.146.116.9]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 04NFhXcE020214; Sat, 23 May 2020 15:43:34 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5005.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9629 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxlogscore=944 phishscore=0 spamscore=0 adultscore=0 bulkscore=0 malwarescore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005230129 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9629 signatures=668686 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 clxscore=1011 priorityscore=1501 mlxscore=0 malwarescore=0 spamscore=0 impostorscore=0 mlxlogscore=977 lowpriorityscore=0 bulkscore=0 adultscore=0 suspectscore=0 cotscore=-2147483648 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2004280000 definitions=main-2005230129 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:180814 Archived-At: > NOTE: The convention in Elisp is that any function, except for a > few exceptions like car/assoc/+/goto-char, can clobber the match > data, so `save-match-data' should normally be used to save *your*=20 > match data rather than your caller's match data. +1. I like that, especially the last phrase. Clear; important to get across.