[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#65536: 30.0.50; replace-regexp-in-string documentation does not ment
From: |
Eli Zaretskii |
Subject: |
bug#65536: 30.0.50; replace-regexp-in-string documentation does not mention it saves match data |
Date: |
Fri, 25 Aug 2023 17:18:36 +0300 |
> Date: Fri, 25 Aug 2023 15:16:29 +0200
> From: Jens Schmidt via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
>
> Not sure about this one, maybe I have overlooked something ...
>
> The Emacs Lisp manual says:
>
> Notice that all functions are allowed to overwrite the match data
> unless they’re explicitly documented not to do so.
>
> And in particular function `replace-regexp-in-string' could be
> assumed to modify the match data, but it uses an explicit call to
> `save-match-data' to not do so.
>
> Maybe this should be explicitly documented in its doc string and/or
> the Emacs Lisp manual ((elisp) Search and Replace) so that users of
> the function can rely on that fact?
Is it important to promise never to clobber match-data in this
function?
- bug#65536: 30.0.50; replace-regexp-in-string documentation does not mention it saves match data, Jens Schmidt, 2023/08/25
- bug#65536: 30.0.50; replace-regexp-in-string documentation does not mention it saves match data,
Eli Zaretskii <=
- bug#65536: 30.0.50; replace-regexp-in-string documentation does not mention it saves match data, Jens Schmidt, 2023/08/25
- bug#65536: 30.0.50; replace-regexp-in-string documentation does not mention it saves match data, Jens Schmidt, 2023/08/25
- bug#65536: 30.0.50; replace-regexp-in-string documentation does not mention it saves match data, Eli Zaretskii, 2023/08/26
- bug#65536: 30.0.50; replace-regexp-in-string documentation does not mention it saves match data, Ihor Radchenko, 2023/08/26
- bug#65536: 30.0.50; replace-regexp-in-string documentation does not mention it saves match data, Stefan Kangas, 2023/08/26
- bug#65536: 30.0.50; replace-regexp-in-string documentation does not mention it saves match data, Eli Zaretskii, 2023/08/26