From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Design of commands operating on rectangular regions Date: Sun, 22 Nov 2015 17:53:54 -0800 (PST) Message-ID: References: <871tc315y3.fsf@lifelogs.com> <83k2pvqg0l.fsf@gnu.org> <837fluqkd1.fsf@gnu.org> <87oaf1s82r.fsf@mail.linkov.net> <876116ucdm.fsf_-_@mail.linkov.net> <97dbb9ad-078f-491b-8d9e-0ab7fdbffa5c@default> <87mvu57f3s.fsf@mail.linkov.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1448243666 8954 80.91.229.3 (23 Nov 2015 01:54:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 23 Nov 2015 01:54:26 +0000 (UTC) Cc: emacs-devel@gnu.org To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 23 02:54:21 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1a0gKh-0000xj-KZ for ged-emacs-devel@m.gmane.org; Mon, 23 Nov 2015 02:54:19 +0100 Original-Received: from localhost ([::1]:58191 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0gKh-0003K5-MW for ged-emacs-devel@m.gmane.org; Sun, 22 Nov 2015 20:54:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0gKT-0003Iu-Pb for emacs-devel@gnu.org; Sun, 22 Nov 2015 20:54:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0gKQ-0007MH-F0 for emacs-devel@gnu.org; Sun, 22 Nov 2015 20:54:05 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:30295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0gKQ-0007MC-8z for emacs-devel@gnu.org; Sun, 22 Nov 2015 20:54:02 -0500 Original-Received: from aserv0022.oracle.com (aserv0022.oracle.com [141.146.126.234]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id tAN1s1Y4004270 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 23 Nov 2015 01:54:01 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0022.oracle.com (8.13.8/8.13.8) with ESMTP id tAN1s13K028206 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 23 Nov 2015 01:54:01 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id tAN1s17R006915; Mon, 23 Nov 2015 01:54:01 GMT In-Reply-To: <87mvu57f3s.fsf@mail.linkov.net> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0022.oracle.com [141.146.126.234] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:195085 Archived-At: > > In order to follow all of this, especially since you now > > seem to be talking about user-level changes, could someone > > please specify (describe) the non-contiguous region feature, > > including how users can create and modify such a region > > interactively? Thanks for describing it. I don't want to belabor this, but if you have the time, here are some questions. If not, I'll see it when I use it. ;-) > First you can select the non-contiguous region with > 'C-x SPC', then extend it with the usual point motion keys, A non-contiguous region with N pieces has 2*N ends. Which end(s) get extended with the motion keys? And does `C-x SPC' do what it does now, i.e., set a mark at point, so that point is one end of at least one of the pieces? Can the pieces (zones) overlap? > then run one of the commands supporting such regions, e.g. > 'C-x C-l' to downcase, 'M-%' to replace occurrences, 'C-u M-|' > to replace the region with the command output. >=20 > > And could you specify clearly the relation between this > > non-contiguous region feature and rectangles? Presumably > > the former is more general but also allows some handling > > of rectangles (?). >=20 > Rectangles are a subset of non-contiguous regions that can be > expanded with other shapes, e.g. circular regions. OK, so I guess from another post by you that the non-contig region info includes two properties/components: (1) a shape, specifying, e.g., whether the zones form one or more rectangles (or circles or whatever) and (2) the zone limits. Is that right?