GNU bug report logs - #45516
26.3; (elisp) `Modifying Strings': Mention `replace-regexp-in-string'

Previous Next

Package: emacs;

Reported by: Drew Adams <drew.adams <at> oracle.com>

Date: Mon, 28 Dec 2020 23:12:01 UTC

Severity: normal

Tags: fixed

Found in version 26.3

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Drew Adams <drew.adams <at> oracle.com>
Cc: 45516 <at> debbugs.gnu.org
Subject: bug#45516: 26.3; (elisp) `Modifying Strings': Mention `replace-regexp-in-string'
Date: Tue, 29 Dec 2020 02:19:45 +0100
Drew Adams <drew.adams <at> oracle.com> writes:

> Subject line says it all.  This is an important function for modifying
> strings.  Please consider mentioning it, with a cross-reference.

That node is about destructively modifying strings.
replace-regexp-in-string doesn't modify anything -- it returns a new
string.

But it's odd that there's no mention of replace-regexp-in-string (and
string-replace) in the Strings section, so I've now added a reference
from the Creating Strings node.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 4 years and 201 days ago.

Previous Next


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