GNU bug report logs - #61091
30.0.50; y-or-n-p clobbers match data

Previous Next

Package: emacs;

Reported by: rms <at> gnu.org

Date: Fri, 27 Jan 2023 04:06:02 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 61091 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: rms <at> gnu.org
Cc: 61091 <at> debbugs.gnu.org
Subject: Re: bug#61091: 30.0.50; y-or-n-p clobbers match data
Date: Sun, 29 Jan 2023 08:40:39 +0200
> From: Richard Stallman <rms <at> gnu.org>
> Cc: 61091 <at> 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.




This bug report was last modified 2 years and 110 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.