From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jay Finger Newsgroups: gmane.emacs.devel Subject: Re: Rectangular regions Date: Thu, 31 Oct 2013 11:36:56 -0700 Message-ID: References: <52707D17.6010801@dancol.org> <8338niefba.fsf@gnu.org> <87a9hq8h7p.fsf@bzg.ath.cx> Reply-To: jay.finger@pobox.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c3e84cfec03204ea0dbbf8 X-Trace: ger.gmane.org 1383244674 20221 80.91.229.3 (31 Oct 2013 18:37:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 31 Oct 2013 18:37:54 +0000 (UTC) Cc: Bastien , Eli Zaretskii , dancol@dancol.org, sdl.web@gmail.com, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Oct 31 19:37:58 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 1Vbx80-0007vS-Up for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2013 19:37:57 +0100 Original-Received: from localhost ([::1]:58795 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbx80-0001O8-Dr for ged-emacs-devel@m.gmane.org; Thu, 31 Oct 2013 14:37:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57654) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbx7r-0001NX-VQ for emacs-devel@gnu.org; Thu, 31 Oct 2013 14:37:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vbx7m-0001Jt-SZ for emacs-devel@gnu.org; Thu, 31 Oct 2013 14:37:47 -0400 Original-Received: from b-pb-sasl-quonix.pobox.com ([208.72.237.35]:36407 helo=smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vbx7b-0001Cq-IF; Thu, 31 Oct 2013 14:37:31 -0400 Original-Received: from smtp.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 79AF44EF4B; Thu, 31 Oct 2013 14:36:58 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=mime-version :reply-to:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; s=sasl; bh=W/IcqRi0pv491A9Wh7chrXs8v7w=; b=PRz HaW/KiibAVdlSA8QJmnDQshh46A1TQuTLN3z7dBYQflxYP7qRw27tZK3wUlK6ZdQ kiBCVKXSGlA4TT5qx7ecdMWqHxjhSkR45ZK+KtG8lD3lxUB17eJuoCxnEsWUyGjj olQRSI3BBZMYYONng1hy0ZIRShF6w8fu1plwpiXE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=mime-version :reply-to:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; q=dns; s=sasl; b=UmdsFn50a/FBMMa971zFw8lwXl6LS /GZhf2BOh5kgs/OtxPuLnO22iQLC+71DU2pD1Zj5ui7clYbrOfiWNrSrKkWF951E Oigp/C/yGfzFMBNtSGHql2aUAFVRDHmvM6bugDiwq+ZaHxgoQcj0MbSUcw7U3qmg pYaY6tcE3t41YI= Original-Received: from b-pb-sasl-quonix.pobox.com (unknown [127.0.0.1]) by b-sasl-quonix.pobox.com (Postfix) with ESMTP id 6A0D04EF45; Thu, 31 Oct 2013 14:36:57 -0400 (EDT) Original-Received: from mail-qe0-f46.google.com (unknown [209.85.128.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by b-sasl-quonix.pobox.com (Postfix) with ESMTPSA id AAAA44EF3E; Thu, 31 Oct 2013 14:36:56 -0400 (EDT) Original-Received: by mail-qe0-f46.google.com with SMTP id s14so1973226qeb.19 for ; Thu, 31 Oct 2013 11:36:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=WH0eY4tQaSzUHpxsNeIyb53Kh8+q5gEHNaPo7RwZRoc=; b=QN6D+EjvEE8byDA8shTsTtWlPZwQo4AQSA3hHB5SyT6lbUK+gNlx0Y4QFAEJnB3s0K oVjnotPx0j+1BnV1IYwgEVmg3fJ8g93by50Df2A94X4/97adzzduBP2QepQ9tDZjtJTk TqS2BneZs8NIJyHizMi1VPHKHY/QoNzunfiAYT5h5sNYUyadd8/K0lzDj5mMrjEyDFHc BPfc+e0iNgg5pqjelmfpm3BkzAtkUx8ENtPj6FUqdcdMNpufMh8mZ0l/l346TK1ndL6O AJKDx4eALPlbcIZbyLA/6dCZ7QNxXqtS2B0IEwU1b9xDu4sPOkwp32PqSH4T9bi1HMsL y6oA== X-Received: by 10.224.88.70 with SMTP id z6mr4480569qal.116.1383244616349; Thu, 31 Oct 2013 11:36:56 -0700 (PDT) Original-Received: by 10.96.178.103 with HTTP; Thu, 31 Oct 2013 11:36:56 -0700 (PDT) In-Reply-To: X-Pobox-Relay-ID: 6BB49842-425B-11E3-8706-1FFB7F2839F8-26623535!b-pb-sasl-quonix.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux (Android) X-Received-From: 208.72.237.35 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:164748 Archived-At: --001a11c3e84cfec03204ea0dbbf8 Content-Type: text/plain; charset=ISO-8859-1 M-SPC is typically the chord Alt-Space, which activates the window menu on many systems, both X and Windows, and is consumed by the window manager before Emacs can get to it. At least that's the case on the gnome 3.8 system I'm typing this on. And I would not want to disable the binding for the window-menu as I like it's functionality and have many years of muscle memory for it. So while M-SPC seems to me an obvious variation on C-SPC, it should probably not be the primary way to access this feature. I _do_ think that this should be easily accessible. I have fond memories of rectangular cut/copy/paste being a first class citizen in the Brief text editor that I haven't used since probably '88. So I would prefer as simple a chord (or sequence) as possible that still identifies it as being just a variation on C-SPC. So to the extent that there is a vote, I would go for either 'M-x SPC' or 'C-SPC C-SPC', or 'C-M-SPC'. Have you also considered, though, making rectangular regions work well at the elisp level? For example, so many commands take (point mark) from (interactive "r") and presume to think that it's a non-rectangular region. Would it be useful to have a new interactive code that instead supplies three arguments, (point mark shape) where shape is 'linear or 'rectangle. On Thu, Oct 31, 2013 at 10:17 AM, Stefan Monnier wrote: > So, current mid-course status: > > - `rectangle-mark' will be renamed `rectangle-mark-mode' and made into > a proper minor mode. > > - It could be bound to: > M-# > M-_ > M-+ > M-SPC > C-x SPC > C-x r C-SPC > C-SPC C-SPC C-SPC > C-x C-x C-x C-x C-x C-x > [ Anything longer to suggest here? ] > > - Now that it's a minor mode, it can have some key-bindings of its own. > Good candidate commands to provide on that keymap: > string-rectangle and open-rectangle. > Any suggestion of keys to use for those commands? > > - Still no candidate for mouse-based rectangle marking. > > > Stefan > > --001a11c3e84cfec03204ea0dbbf8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
M-SPC is typically the chord Alt-Space, which activates th= e window menu on many systems, both X and Windows, and is consumed by the w= indow manager before Emacs can get to it. =A0At least that's the case o= n the gnome 3.8 system I'm typing this on. =A0And I would not want to d= isable the binding for the window-menu as I like it's functionality and= have many years of muscle memory for it. =A0So while M-SPC seems to me an = obvious variation on C-SPC, it should probably not be the primary way to ac= cess this feature.

I _do_ think that this should be easily accessible. =A0I hav= e fond memories of rectangular cut/copy/paste being a first class citizen i= n the Brief text editor that I haven't used since probably '88. =A0= So I would prefer as simple a chord (or sequence) as possible that still id= entifies it as being just a variation on C-SPC.

So to the extent that there is a vote, I would go for e= ither 'M-x SPC' or 'C-SPC C-SPC', or 'C-M-SPC'.

Have you also considered, though, making rectangular = regions work well at the elisp level? =A0For example, so many commands take= (point mark) from (interactive "r") and presume to think that it= 's a non-rectangular region. =A0Would it be useful to have a new intera= ctive code that instead supplies three arguments, (point mark shape) where = shape is 'linear or 'rectangle. =A0

On Thu, Oct = 31, 2013 at 10:17 AM, Stefan Monnier <monnier@iro.umontreal.ca&= gt; wrote:
So, current mid-course status:

- `rectangle-mark' will be renamed `rectangle-mark-mode' and made i= nto
=A0 a proper minor mode.

- It could be bound to:
=A0 M-#
=A0 M-_
=A0 M-+
=A0 M-SPC
=A0 C-x SPC
=A0 C-x r C-SPC
=A0 C-SPC C-SPC C-SPC
=A0 C-x C-x C-x C-x C-x C-x
=A0 [ Anything longer to suggest here? ]

- Now that it's a minor mode, it can have some key-bindings of its own.=
=A0 Good candidate commands to provide on that keymap:
=A0 =A0 string-rectangle and open-rectangle.
=A0 Any suggestion of keys to use for those commands?

- Still no candidate for mouse-based rectangle marking.


=A0 =A0 =A0 =A0 Stefan


--001a11c3e84cfec03204ea0dbbf8--