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#27926: 25.2; Let arg REGION-NONCONTIGUOUS-P do more Date: Wed, 2 Aug 2017 15:41:01 -0700 (PDT) Message-ID: <3a47bf01-7fcc-4eff-897f-b3ec66976887@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 1501713743 3642 195.159.176.226 (2 Aug 2017 22:42:23 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Aug 2017 22:42:23 +0000 (UTC) To: 27926@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 03 00:42:19 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 1dd2LD-0000GU-UL for geb-bug-gnu-emacs@m.gmane.org; Thu, 03 Aug 2017 00:42:12 +0200 Original-Received: from localhost ([::1]:50838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dd2LI-0000cF-Gq for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Aug 2017 18:42:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39038) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dd2L7-0000a9-Pf for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2017 18:42:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dd2L4-0005a8-JC for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2017 18:42:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36389) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dd2L4-0005a1-FQ for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2017 18:42:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1dd2L4-0007Jl-8r for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2017 18:42: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: Wed, 02 Aug 2017 22:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 27926 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.150171368128070 (code B ref -1); Wed, 02 Aug 2017 22:42:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Aug 2017 22:41:21 +0000 Original-Received: from localhost ([127.0.0.1]:39062 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dd2KO-0007If-TH for submit@debbugs.gnu.org; Wed, 02 Aug 2017 18:41:21 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dd2KM-0007IS-Lt for submit@debbugs.gnu.org; Wed, 02 Aug 2017 18:41:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dd2KG-00056o-KS for submit@debbugs.gnu.org; Wed, 02 Aug 2017 18:41:13 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:36290) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dd2KG-00056e-Hl for submit@debbugs.gnu.org; Wed, 02 Aug 2017 18:41:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38823) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dd2KF-0000WU-5q for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2017 18:41:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dd2KB-00053K-Ul for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2017 18:41:11 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:18715) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dd2KB-00051U-Kp for bug-gnu-emacs@gnu.org; Wed, 02 Aug 2017 18:41:07 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v72Mf3eM022262 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 2 Aug 2017 22:41:04 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id v72Mf2Jr021176 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 2 Aug 2017 22:41:03 GMT Original-Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id v72Mf2Hr031164 for ; Wed, 2 Aug 2017 22:41:02 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: userv0021.oracle.com [156.151.31.71] 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:135257 Archived-At: In `replace.el', some replacment commands now accept optional arg REGION-NONCONTIGUOUS-P, to allow replacement over the rectangular region (really, over any list of dotted position pairs (START . END)). Currently the arg is just a Boolean. Please consider changing the behavior of the commands in this way: Let non-nil continue to mean the same thing: respect limits such as those that are returned by the value of `region-extract-function'. But allow two particular non-nil values to control that behavior in different ways, instead of requiring that code use `region-extract-function': * A function as arg value would mean use what that function returns instead of applying the function that is the value of `region-extract-function' to `bounds' and using what that returns. This can be handy in some contexts, just as binding `region-extract-function' can be handy in other contexts. * A non-function (i.e., non-lambda) list as arg value would be expected to have the form of a value that `region-extract-function' applied to `bounds' returns, and it would be used directly, instead of invoking `region-extract-function' to get the list of zone limits. This can be handy in still other contexts, where the limits might already be available - no need to bind `region-extract-function' to a function like (lambda (_ignore) THE-KNOWN-LIMITS). In GNU Emacs 25.2.1 (x86_64-w64-mingw32) of 2017-04-24 built on LAPHROAIG Windowing system distributor 'Microsoft Corp.', version 6.1.7601 Configured using: 'configure --without-dbus --without-compress-install 'CFLAGS=3D-O2 -static -g3''