From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Robert Pluim 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 13:11:34 +0200 Message-ID: References: <83tvcdlm8x.fsf@gnu.org> <829FF0B4-1CC8-4F89-A861-4929D2182DF5@acm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="107151"; mail-complaints-to="usenet@blaine.gmane.org" 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 13:12:17 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 1hg5qb-000Rin-3Y for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jun 2019 13:12:17 +0200 Original-Received: from localhost ([::1]:38878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hg5qa-0006za-1Z for geb-bug-gnu-emacs@m.gmane.org; Wed, 26 Jun 2019 07:12:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34494) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hg5qO-0006z8-8f for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 07:12:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hg5qM-0000pZ-CX for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 07:12:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:49055) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hg5qM-0000oR-0P for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 07:12:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hg5qL-0005Z4-PY for bug-gnu-emacs@gnu.org; Wed, 26 Jun 2019 07:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Robert Pluim Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 26 Jun 2019 11:12:01 +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.156154750321367 (code B ref 36372); Wed, 26 Jun 2019 11:12:01 +0000 Original-Received: (at 36372) by debbugs.gnu.org; 26 Jun 2019 11:11:43 +0000 Original-Received: from localhost ([127.0.0.1]:34366 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hg5q3-0005YZ-Hc for submit@debbugs.gnu.org; Wed, 26 Jun 2019 07:11:43 -0400 Original-Received: from mail-ed1-f47.google.com ([209.85.208.47]:35892) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hg5q2-0005YM-By for 36372@debbugs.gnu.org; Wed, 26 Jun 2019 07:11:42 -0400 Original-Received: by mail-ed1-f47.google.com with SMTP id k21so2776499edq.3 for <36372@debbugs.gnu.org>; Wed, 26 Jun 2019 04:11:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=DNmjePboYo2prlDG3rvv1pWRtOpi9LNiuxwlKgHq/wI=; b=nwwkmIrmUy9JzvCTKLhy7K0n4WdAS+2hnxN4FVWvFMtbvcGfNH/Blu8MtBF/GA/3x5 7LLzQhwXFtvdX06k/Xun37yYoRWFDCdjfFhrWliDXAhcU+Znkqcw4WX+5oP18UcBOia2 WRrGxfzXaO/7S3hvLqoR7Fe+45qaaiLH21Rl/qCMotkVU5FWVizEQu23mxAvEmDwRyFd ivLuUyy0u/JMlzVkaESM5J3kXYcR3pzCX7/IO/A1qlkWB6sWZd+QxJClILsj+Wg62sET Tfey0J7r+xwAEVp3PSTjBbQrAnn/QAcbRT/e7xQ1Q5TXNFnYThjhQpNe7Y5VuqENsWc6 LTVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:mime-version:content-transfer-encoding; bh=DNmjePboYo2prlDG3rvv1pWRtOpi9LNiuxwlKgHq/wI=; b=ckupM0wQo5zJQM+qgbdtEiio+GKgm6CeQ1MVoqf9ji4r1Uzpm6McDqrtdhAv8kfCjt nJXMoMPi60ub/ylxzzhl5g7W+DbN4C+blBQEH4nBnq0vr2EXZWM0WKbCOekh/17slX7Y zncZ3+qa7xPzfbI+fHP62f/T3O7UAgVi7f43rsnoaQPypB5IBnURodLwvKc8oIXMzY5q 5YTBp0dgeAGQiKdDQQ2AgVhfOnqUfHdOglgBGuOX6iho4XA7GcRm/zx/fN25JeWm+paB 2WwT4ZWFLB7d7LNI39CgFwRRBACaWo8PSoZ219FR7tuO7P5KP4oVF7ylTnBe/JmiJ24V HwUw== X-Gm-Message-State: APjAAAWj371MF1h1f90feJoYE2IIZ8JnfaCoXlxwWhmZlG0AVJuf0bmr Km1pct5vsvHWRhZJxxS8l/itx402HqI= X-Google-Smtp-Source: APXvYqwfcreRCwRHyo3ymlOJf3eq/9orrBPBlUhGUxupJlXOHYHS2pebljj/laxg/Ms/q1Sj6ZGFdA== X-Received: by 2002:a17:906:4e92:: with SMTP id v18mr3625818eju.57.1561547495940; Wed, 26 Jun 2019 04:11:35 -0700 (PDT) Original-Received: from rpluim-mac ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id p18sm2903024ejr.61.2019.06.26.04.11.34 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Wed, 26 Jun 2019 04:11:35 -0700 (PDT) In-Reply-To: <829FF0B4-1CC8-4F89-A861-4929D2182DF5@acm.org> ("Mattias \=\?utf-8\?Q\?Engdeg\=C3\=A5rd\=22's\?\= message of "Wed, 26 Jun 2019 12:01:45 +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:161476 Archived-At: >>>>> On Wed, 26 Jun 2019 12:01:45 +0200, Mattias Engdeg=C3=A5rd said: >> 'at that index in STRING, and omit the first START characters from t= he >> return value.' Mattias> Thank you, but that would approach circular reasoning (from wh= at return value, exactly? The one that we are in the process of defining?).= I went with Mattias> [...] If START is non-nil, start replacements at that index in= STRING, and omit the first START characters of STRING from the return valu= e. Sure, that works. Robert