Subject: bug#36372: 27.0.50; replace-regexp-in-string skips START first chars in return value [PATCH]

From: Robert Pluim <[email-masked]>
Date: Wed, 26 Jun 2019 14:32:40 +0200

>>>>> On Wed, 26 Jun 2019 12:22:06 +0200, Lars Ingebrigtsen <[email-masked]> said:

    Larsi> Robert Pluim <[email-masked]> writes:
    >> I think this is one of those 'who could possibly be relying on this
    >> behaviour' bugs that bites you hard if you change things, so
    >> documentation is probably best.

    Larsi> Yup.  But this is very unusual behaviour for such a function, so even if
    Larsi> documented, it's going to cause confusion...

    Larsi> Has anybody grepped through the Emacs tree to see whether anybody uses
    Larsi> the parameter, and if so, whether it's expecting the wrong behaviour?

'grep'? Sounds complicated. I ran a combination of find-dired and
diredp-do-apply-function over the lisp sources, and none of the 656
calls to replace-regexp-in-string have 7 arguments.

Robert