From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Josh Newsgroups: gmane.emacs.devel Subject: Re: Rectangular regions Date: Thu, 31 Oct 2013 14:03:02 -0700 Message-ID: References: <52707D17.6010801@dancol.org> <8338niefba.fsf@gnu.org> <87a9hq8h7p.fsf@bzg.ath.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1383253425 26766 80.91.229.3 (31 Oct 2013 21:03:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Oct 2013 21:03:45 +0000 (UTC) Cc: Bastien , Eli Zaretskii , dancol@dancol.org, Leo Liu , emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 31 22:03:47 2013 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 1VbzP9-0003La-KB for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2013 22:03:47 +0100 Original-Received: from localhost ([::1]:59342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbzP9-0000DJ-1Y for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2013 17:03:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35545) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbzP1-00005A-AK for emacs-devel@gnu.org; Thu, 31 Oct 2013 17:03:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VbzOw-0004iY-3W for emacs-devel@gnu.org; Thu, 31 Oct 2013 17:03:39 -0400 Original-Received: from mail-wg0-f47.google.com ([74.125.82.47]:42237) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VbzOv-0004iE-UD for emacs-devel@gnu.org; Thu, 31 Oct 2013 17:03:34 -0400 Original-Received: by mail-wg0-f47.google.com with SMTP id c11so3326961wgh.14 for ; Thu, 31 Oct 2013 14:03:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-type; bh=imVgrp0vEPYiBuctqnnkTXC5R6sqEZFUunb8POkR0u4=; b=WJKpfLioJkq693bFrcl/p1d1o+wwxq5WXUikZxXbdQdOQR57/ZV+D6MFibjyvcVK1N G5JW6oiq8I9m05pbDt+/die+CAF2ncN0a2Ytwdc1yxnYqStstAOGbyxGmEuT2qPJYsVf YtJkTVIYBfvpP5y8zgCN8khcx2ZVgHzAKEN3Q+yA0INWhS4VzuBbICSZ0Yiu2PnJPG8K ud8YQwHiE7dcY/r7bL5kpCstuvl2Rv6P0iwRVr+/llF3Grm4bpbSLlZoWbrYidAoKQT4 jqcOKUajrLExrKEopY0VVlPix4l+zlK6YfXgF+zoSMM7ofFHpr3QRUcHTCKCTzaSo5aP Z2hQ== X-Gm-Message-State: ALoCoQlRkWawyHZ/PIxChEi5hx4mScN3dAbP5lfzNWNb5Gn9UZLRbxG0Ps+DSXHPXkH954UrRgDv X-Received: by 10.180.39.140 with SMTP id p12mr53727wik.12.1383253412358; Thu, 31 Oct 2013 14:03:32 -0700 (PDT) Original-Received: by 10.194.22.225 with HTTP; Thu, 31 Oct 2013 14:03:02 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: aieuuutRxtncKD6ohsSXN2oLinM X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.47 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:164759 Archived-At: On Thu, Oct 31, 2013 at 10:17 AM, Stefan Monnier wrote: > - `rectangle-mark' will be renamed `rectangle-mark-mode' and made into > a proper minor mode. Most of my own uses of rectangle commands tend to be isolated, i.e. with intervening non-rectangular operations. I can see that a modal notion of rectangularity could certainly make it more convenient to perform sequences of rectangle operations, but for isolated rectangule operations doing e.g. ` C-w ' would be less convenient than the current `C-x r k'. Have you considered implementing a `set-rectangular-mark-command' that would behave like `set-mark-command' except that the new mark would have a property indicating that regions it delimits should be treated as rectangular by rectangle-aware commands? If this property were propagated into kill-ring entries appropriately then C-y and friends could easily DTRT. If this approach isn't feasible, please consider some other way to support ephemerally specifying rectangular interpretation of the region, for example something like `append-next-kill' might be suitable.