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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50644 in the body.
You can then email your comments to 50644 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#50644; Package emacs. (Fri, 17 Sep 2021 16:10:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Juri Linkov <juri <at> linkov.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 17 Sep 2021 16:10:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 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




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#50644; Package emacs. (Fri, 17 Sep 2021 16:26:02 GMT) Full text and rfc822 format available.

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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Juri Linkov <juri <at> linkov.net>
Cc: 50644 <at> debbugs.gnu.org
Subject: Re: bug#50644: Ungrokkable argument names in string-replace
Date: Fri, 17 Sep 2021 18:25:22 +0200
Juri Linkov <juri <at> linkov.net> writes:

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

Sure, go ahead and add dashes.

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




Added tag(s) fixed. Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Sat, 18 Sep 2021 18:46:02 GMT) Full text and rfc822 format available.

bug marked as fixed in version 28.0.50, send any further explanations to 50644 <at> debbugs.gnu.org and Juri Linkov <juri <at> linkov.net> Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Sat, 18 Sep 2021 18:46:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 17 Oct 2021 11:24:04 GMT) Full text and rfc822 format available.

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.