From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61091: 30.0.50; y-or-n-p clobbers match data Date: Sun, 29 Jan 2023 08:40:39 +0200 Message-ID: <83ilgp972w.fsf@gnu.org> References: <83bkmkct2s.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7691"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61091@debbugs.gnu.org To: rms@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 29 07:42:16 2023 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 1pM1OJ-0001oe-Hz for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 29 Jan 2023 07:42:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pM1O8-0006eg-PN; Sun, 29 Jan 2023 01:42:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM1O6-0006eT-MV for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2023 01:42:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pM1O6-0000AY-ES for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2023 01:42:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pM1O6-0004gv-0M for bug-gnu-emacs@gnu.org; Sun, 29 Jan 2023 01:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 29 Jan 2023 06:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61091 X-GNU-PR-Package: emacs Original-Received: via spool by 61091-submit@debbugs.gnu.org id=B61091.167497446917961 (code B ref 61091); Sun, 29 Jan 2023 06:42:01 +0000 Original-Received: (at 61091) by debbugs.gnu.org; 29 Jan 2023 06:41:09 +0000 Original-Received: from localhost ([127.0.0.1]:42088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM1NF-0004fb-0V for submit@debbugs.gnu.org; Sun, 29 Jan 2023 01:41:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:41856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pM1NC-0004fB-U7 for 61091@debbugs.gnu.org; Sun, 29 Jan 2023 01:41:07 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM1N7-00007n-A2 for 61091@debbugs.gnu.org; Sun, 29 Jan 2023 01:41:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=JQakayZobfT8MFoPSIz60lJBsE8h4V7IRm8/1xy9TJ8=; b=RpiRK1jf16Ui 7QdYgYdOLZlt82MsKYs+6HxKQgl/RFH5H7RAQcApd/4K3NnL4L36iwWlyihL71cZ499EMBmA7k+lp hAXgIBVWwStqZn2uLYNnsG+TOx4AgXfmm9Kv+i4yeOli4eVK1afSnVCVVOi/y+cjf0cibpBdCBgPt 7LbX/Li96WGJJAw3BEUIec+0m+PJ4QvLMFRopFv27l5ZRyIRe5qOOR7yx9jC4d/EnTIIUNbjV+Oke BMTw9hzrwFrbbpVk+52IFjnG8yrAmGU4r2V6FlqORT5Jj7CJS3tS/l2uoQOzWHGVzcl9HaKok60JF ecfdk+6tUQnds7N0xobOZw==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pM1Mu-0004bR-Vu; Sun, 29 Jan 2023 01:40:49 -0500 In-Reply-To: (message from Richard Stallman on Sun, 29 Jan 2023 00:18:24 -0500) 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254331 Archived-At: > From: Richard Stallman > Cc: 61091@debbugs.gnu.org > Date: Sun, 29 Jan 2023 00:18:24 -0500 > > > In general, Lisp programs should not rely on any > > function not to clobber match data, unless that function is documented > > to preserve match data. > > Allowance should be made for the fact that `y-or-n-p' > was safe for the match data for over 35 years. I don't object if it's easy to do so. But we decided long ago that significant efforts for that purpose are not worth our while, and even documented this in the ELisp reference manual.