unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jay Finger <jay.finger@pobox.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Bastien <bzg@gnu.org>, Eli Zaretskii <eliz@gnu.org>,
	dancol@dancol.org, sdl.web@gmail.com, emacs-devel@gnu.org
Subject: Re: Rectangular regions
Date: Thu, 31 Oct 2013 11:36:56 -0700	[thread overview]
Message-ID: <CAJu46=Cc1+2k1BNwDa60eDDkEKSc8e1_g7GcUpMT9R0=tB_UDg@mail.gmail.com> (raw)
In-Reply-To: <jwvhabxtlnq.fsf-monnier+emacsbugs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2014 bytes --]

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
<monnier@iro.umontreal.ca>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
>
>

[-- Attachment #2: Type: text/html, Size: 2629 bytes --]

  parent reply	other threads:[~2013-10-31 18:36 UTC|newest]

Thread overview: 92+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-30  1:59 Rectangular regions Stefan Monnier
2013-10-30  2:15 ` Dmitry Gutov
2013-10-30  2:59   ` Stefan Monnier
2013-10-30  3:22 ` Leo Liu
2013-10-30  3:29   ` Daniel Colascione
2013-10-30 18:09     ` Stefan Monnier
2013-10-30 18:24       ` Bastien
2013-10-30 19:20       ` Eli Zaretskii
2013-10-30 23:35         ` Bastien
2013-10-31 12:05           ` Jose E. Marchesi
2013-11-05 18:57             ` Stefan Monnier
2013-11-05 19:31               ` Drew Adams
2013-10-31 17:17           ` Stefan Monnier
2013-10-31 18:11             ` Jambunathan K
2013-10-31 18:36             ` Jay Finger [this message]
2013-10-31 18:54               ` Eli Zaretskii
2013-10-31 19:28                 ` Daniel Colascione
2013-10-31 19:38               ` Daniel Colascione
2013-10-31 19:44                 ` Eli Zaretskii
2013-11-01  1:50                 ` Stefan Monnier
2013-11-01  8:01                   ` Eli Zaretskii
2013-10-31 22:50               ` Xue Fuqiao
2013-11-01 17:12                 ` Jay Finger
2013-11-01 18:25                   ` Stefan Monnier
2013-11-01 19:05                     ` Drew Adams
2013-11-01 19:25                       ` John Yates
2013-11-05 22:44                     ` Davis Herring
2013-11-01  1:40               ` Stefan Monnier
2013-11-01  2:13                 ` Leo Liu
2013-11-01  3:06                   ` Josh
2013-11-01  4:42                     ` Leo Liu
2013-11-01  5:55                       ` Josh
2013-11-01  8:33                         ` Jambunathan K
2013-11-02 10:25                           ` Xue Fuqiao
2013-11-01 15:04                       ` Drew Adams
2013-11-02  6:31                         ` Stephen J. Turnbull
2013-11-02  8:14                           ` Jambunathan K
2013-11-02  9:56                             ` Stephen J. Turnbull
2013-11-02 10:05                               ` [SPAM] " Jarek Czekalski
2013-11-02 11:00                                 ` Stephen J. Turnbull
2013-11-02 14:56                                   ` Jambunathan K
2013-11-02 16:59                                     ` Stephen J. Turnbull
2013-11-02 17:19                                       ` Jambunathan K
2013-11-03  8:41                                         ` Stephen J. Turnbull
2013-11-02 15:30                             ` Drew Adams
2013-11-02 17:03                               ` Jambunathan K
2013-11-03  0:59                           ` Stefan Monnier
2013-11-03  0:36                             ` Jambunathan K
2013-11-01 15:04                     ` Drew Adams
2013-11-01  8:04                   ` Eli Zaretskii
2013-11-01 15:04                   ` Drew Adams
2013-11-01  7:57                 ` Eli Zaretskii
2013-11-01 12:35                   ` Stefan Monnier
2013-11-01 19:26                     ` Eli Zaretskii
2013-11-01 19:55                       ` Stefan Monnier
2013-11-01 19:59                         ` Eli Zaretskii
2013-11-01 20:02                           ` Daniel Colascione
2013-11-01 20:20                             ` Eli Zaretskii
2013-11-01 23:35                               ` Josh
2013-11-02  7:00                                 ` Eli Zaretskii
2013-11-02 18:20                                   ` Josh
2013-11-02 19:35                                     ` Eli Zaretskii
2013-11-01 16:57                 ` Jay Finger
2013-10-31 21:03             ` Josh
2013-11-01  2:01               ` Stefan Monnier
2013-11-05 19:47             ` Mathias Dahl
2013-10-30 20:31       ` John Yates
2013-10-31 20:23     ` Richard Stallman
2013-11-01  7:40       ` Eli Zaretskii
2013-10-30  4:55   ` Stephen J. Turnbull
2013-10-31 13:39   ` Xue Fuqiao
2013-10-30  3:52 ` Eli Zaretskii
2013-10-30  4:22   ` Stefan Monnier
2013-10-31 20:23   ` Richard Stallman
2013-11-01  1:59     ` Stefan Monnier
2013-10-30  3:55 ` Eli Zaretskii
2013-10-30 10:36 ` Bastien
2013-10-30 10:39   ` Bastien
2013-10-30 10:49   ` Andreas Schwab
2013-10-31 20:22     ` Richard Stallman
2013-11-01  0:54       ` Leo Liu
2013-10-30 13:19 ` Jambunathan K
2013-10-30 14:53   ` Josh
2013-10-30 16:56   ` Jambunathan K
2013-10-30 18:07 ` Jambunathan K
2013-10-31 20:22 ` Richard Stallman
2013-11-01  9:25 ` Yuri Khan
2013-11-01 11:20   ` Eli Zaretskii
2013-11-01 12:57     ` Stefan Monnier
2013-11-01 14:31       ` Eli Zaretskii
2013-11-01 15:08       ` Yuri Khan
2013-11-02 17:36 ` Jambunathan K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAJu46=Cc1+2k1BNwDa60eDDkEKSc8e1_g7GcUpMT9R0=tB_UDg@mail.gmail.com' \
    --to=jay.finger@pobox.com \
    --cc=bzg@gnu.org \
    --cc=dancol@dancol.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    --cc=sdl.web@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).