From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#36372: 27.0.50; replace-regexp-in-string skips START first chars in return value [PATCH] Date: Wed, 26 Jun 2019 12:22:06 +0200 Message-ID: References: <83tvcdlm8x.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="184542"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: 36372@debbugs.gnu.org To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 26 12:30:25 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hg5C5-000lsg-8n for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jun 2019 12:30:25 +0200 Original-Received: from localhost ([::1]:38662 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hg5C2-0000R2-Mt for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jun 2019 06:30:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49595) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hg54z-0003jX-Fr for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 06:23:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hg54w-0008Jf-Q0 for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 06:23:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49015) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hg54w-0008JA-EZ for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 06:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hg54w-0004H7-AE for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 06:23:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2019 10:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36372 X-GNU-PR-Package: emacs Original-Received: via spool by 36372-submit@debbugs.gnu.org id=B36372.156154453316372 (code B ref 36372); Wed, 26 Jun 2019 10:23:02 +0000 Original-Received: (at 36372) by debbugs.gnu.org; 26 Jun 2019 10:22:13 +0000 Original-Received: from localhost ([127.0.0.1]:34326 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hg549-0004G0-3e for submit@debbugs.gnu.org; Wed, 26 Jun 2019 06:22:13 -0400 Original-Received: from quimby.gnus.org ([80.91.231.51]:38790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hg547-0004Ft-SH for 36372@debbugs.gnu.org; Wed, 26 Jun 2019 06:22:12 -0400 Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=stories) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hg542-0003fy-My; Wed, 26 Jun 2019 12:22:09 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEURDw0JBwVMSki7ubdy b24EAwIuLCtErD9UAAACYUlEQVQ4jV1UwXbbIBBcKYnOWjXW2cY8zq3h5ZyifZyj16pnmaj8/yd0 ALl2uyfEMLszywrqN2vfiUitK9FK65OtQRk4Ami4xpcbwBW47T8AlFZizkBPDaXOpBLEK/Z67jtm 2lSctDGFSdzV44gubT4EpSrQd62UmGpurMo5GpJSyuNzLyraXgswdjrXUkrK8cmJfK0ABBB1KWns K3WWt3icS3EtAYyoUEO80kokNEsuHlTDxx6kySl0pUO+byWVQS1I5nFMBA9KjDvNMEtnkJU+8ed0 AYFEvLzMTIQNa816TN0mWcZzknjIDNbZmZMAo8HQBta25OKcYCBEK1HDpZqg0CwLcjGH0oe9J/An fgEFgORP+xBvd6Aw/gLfbwA6kaM2S6xvDihCPKTUjNZcR22dk6TO5loZQ1yp26ys1E4X63VqAx+y XI5a2+Nk0UidhZvW16tlHt5t6Pw6YpJcYH49wXkB+jC51b6V6u7KT6fdII9awcm5SHUNP6tDlTts +ni2Ysq+XXmk7xVoFVqKMSsNuaTfM8cK6OnBuCvr9wzkKbD/9ApxxdViCib7f1waGraHMdxHEd+B XrWYpPcazlpfB9bTENMYtS/TWGcOkX+DheZR+cnfZ64G5YsHfRJV0rnb7QCY51bgBfyIW6o/VNQ0 MzrWfHTRi9nU2mAEMadaaM7XxcsH1kF7qtGKQao9enjN+bXCCIq6AzO/nl3RlFX7HeAMfGYXMRaC ofz3zEuu9Et8VVS0ZcZcWT8nV7RCuknpXmP5AftVqsdj8QA861Aejtw5PB53YFMvRV3UBi/MH7Cj 5g9wELhsAAAAAElFTkSuQmCC In-Reply-To: (Robert Pluim's message of "Wed, 26 Jun 2019 11:38:53 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:161473 Archived-At: Robert Pluim 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. Yup. But this is very unusual behaviour for such a function, so even if documented, it's going to cause confusion... Has anybody grepped through the Emacs tree to see whether anybody uses the parameter, and if so, whether it's expecting the wrong behaviour? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no