all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>, jemarch@gnu.org
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: Tue, 5 Nov 2013 11:31:54 -0800 (PST)	[thread overview]
Message-ID: <72064baf-42e4-4c66-bc65-12b6351d1c40@default> (raw)
In-Reply-To: <jwv7gcmhecd.fsf-monnier+emacs@gnu.org>

> A possible alternative would be to use a binding that's only active
> when the region is highlighted.
>
> Not sure which key would be appropriate, but restricting this use to
> the "active region case" opens up the possibility of choosing a key
> that's in common use, tho not when the region is active.
> 
> A mnemonic key would be C-r, except that C-r already has a useful
> meaning when the region is active.

It's a good idea.

It would be ideal if it could somehow be limited even more: not
whenever the region is active, but whenever it is active and being
used as a rectangle.  Alas, that is presumably impossible (since it
is this command that is deciding to treat the region as a rectangle).

That's OK.  But it means that whatever key is chosen should not be a
key that one might want to use to act otherwise on the active region.

In particular, it (again) should not be a simple repeatable key, as
those are likely to be useful for acting incrementally on the region.
And this applies even to future operations on the region when it is
interpreted as a rectangle - some of those might need to be easily
repeatable too.

So `C-SPC' is (again) not a good choice for the key, even when the
context is limited to the active region.  Likewise, `C-r' (even
aside from not being available because taken for Isearch).

+1 for the general idea.  But let's not waste an easily repeatable
key for this.

Future commands that operate on the region-as-rectangle would
presumably know that the region is being interpreted as a rectangle.
The keys for those commands, at least, could presumably be bound
for just that context, i.e., not bound whenever the region is
active, but only when the active region is being used as a rectangle.



  reply	other threads:[~2013-11-05 19:31 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 [this message]
2013-10-31 17:17           ` Stefan Monnier
2013-10-31 18:11             ` Jambunathan K
2013-10-31 18:36             ` Jay Finger
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

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

  git send-email \
    --in-reply-to=72064baf-42e4-4c66-bc65-12b6351d1c40@default \
    --to=drew.adams@oracle.com \
    --cc=bzg@gnu.org \
    --cc=dancol@dancol.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jemarch@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.