From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#27897: 25.1; Add REGION-NONCONTIGUOUS-P arg to other replace.el commands Date: Mon, 31 Jul 2017 21:37:23 -0700 (PDT) Message-ID: <6168a7c3-dfa3-4894-8fb7-b2e6e9550dab@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1501562294 7323 195.159.176.226 (1 Aug 2017 04:38:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 1 Aug 2017 04:38:14 +0000 (UTC) To: 27897@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 01 06:38:09 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcOwZ-0001RQ-9M for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Aug 2017 06:38:07 +0200 Original-Received: from localhost ([::1]:34394 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcOwd-0001Ot-Jt for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Aug 2017 00:38:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36922) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcOwX-0001OZ-Jx for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 00:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcOwU-0005jb-G3 for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 00:38:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:33303) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dcOwU-0005jR-Cp for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 00:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dcOwU-00089a-32 for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 00:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 01 Aug 2017 04:38:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27897 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.150156226131310 (code B ref -1); Tue, 01 Aug 2017 04:38:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 1 Aug 2017 04:37:41 +0000 Original-Received: from localhost ([127.0.0.1]:35980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcOw9-00088v-Hg for submit@debbugs.gnu.org; Tue, 01 Aug 2017 00:37:41 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dcOw8-00088g-1H for submit@debbugs.gnu.org; Tue, 01 Aug 2017 00:37:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcOw1-0005bX-Qv for submit@debbugs.gnu.org; Tue, 01 Aug 2017 00:37:34 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48099) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcOw1-0005bR-NP for submit@debbugs.gnu.org; Tue, 01 Aug 2017 00:37:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dcOw0-0001Lv-N5 for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 00:37:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dcOvx-0005Yk-JO for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 00:37:32 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:24539) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dcOvx-0005XZ-7n for bug-gnu-emacs@gnu.org; Tue, 01 Aug 2017 00:37:29 -0400 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v714bPDl013831 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 1 Aug 2017 04:37:26 GMT Original-Received: from userv0121.oracle.com (userv0121.oracle.com [156.151.31.72]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v714bPNG012182 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Tue, 1 Aug 2017 04:37:25 GMT Original-Received: from abhmp0017.oracle.com (abhmp0017.oracle.com [141.146.116.23]) by userv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v714bOkl000949 for ; Tue, 1 Aug 2017 04:37:25 GMT X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 12.0.6770.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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: 208.118.235.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:135205 Archived-At: Subject line says it all. The patch is trivial - just do the same thing to commands such as `replace-string', `replace-regexp', `query-replace-regexp-eval', and `map-query-replace-regexp' as you did to `query-replace' and `query-replace-regexp': add REGION-NONCONTIGUOUS-P arg to the interactive spec the same way, and pass it to `perform-replace' the same way. (Shouldn't this have been done in the first place?) In GNU Emacs 25.1.1 (x86_64-w64-mingw32) of 2016-09-17 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --without-dbus --without-compress-install CFLAGS=3D-static'