bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36372: 27.0.50; replace-regexp-in-string skips START first chars in


From: Mattias Engdegård
Subject: bug#36372: 27.0.50; replace-regexp-in-string skips START first chars in return value [PATCH]
Date: Wed, 26 Jun 2019 12:01:45 +0200

26 juni 2019 kl. 11.38 skrev Robert Pluim <rpluim@gmail.com>:
> 
> insert 'the' before 'first'

Oh dear, thank you for spotting that.

>    Mattias>  Optional arguments FIXEDCASE, LITERAL and SUBEXP are like the
>    Mattias>  arguments with the same names of function `replace-match'.  If 
> START
>    Mattias> -is non-nil, start replacements at that index in STRING.
>    Mattias> +is non-nil, start replacements at that index in STRING.  The 
> return
>    Mattias> +value then omits the first START characters of STRING.
> 
> 'at that index in STRING, and omit the first START characters from the
> return value.'

Thank you, but that would approach circular reasoning (from what return value, 
exactly? The one that we are in the process of defining?). I went with

[...] If START is non-nil, start replacements at that index in STRING, and omit 
the first START characters of STRING from the return value.

in the revised patch below.

Attachment: 0001-Document-bug-in-replace-regexp-in-string.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]