GNU bug report logs - #50644
Ungrokkable argument names in string-replace

Previous Next

Package: emacs;

Reported by: Juri Linkov <juri <at> linkov.net>

Date: Fri, 17 Sep 2021 16:10:02 UTC

Severity: normal

Tags: fixed

Fixed in version 28.0.50

Done: Juri Linkov <juri <at> linkov.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Juri Linkov <juri <at> linkov.net>
To: 50644 <at> debbugs.gnu.org
Subject: bug#50644: Ungrokkable argument names in string-replace
Date: Fri, 17 Sep 2021 19:08:42 +0300
Especially INSTRING is hard to parse in:

 -- Function: string-replace fromstring tostring instring
     This function replaces all occurrences of FROMSTRING with TOSTRING
     in INSTRING and returns the result.  It may return one of its
     arguments unchanged, a constant string or a new string.  Case is
     significant, and text properties are ignored.

Whereas other functions like perform-replace use ‘-’ to separate words,
e.g. “FROM-STRING”:

 -- Function: perform-replace from-string replacements query-flag
          regexp-flag delimited-flag &optional repeat-count map start
          end backward region-noncontiguous-p
     This function is the guts of ‘query-replace’ and related commands.
     It searches for occurrences of FROM-STRING in the text between




This bug report was last modified 3 years and 330 days ago.

Previous Next


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