all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "'Lennart Borgman \(gmail\)'" <lennart.borgman@gmail.com>
Cc: jiri.pejchal@gmail.com, 'Emacs Devel' <emacs-devel@gnu.org>
Subject: RE: Move selection up, down
Date: Tue, 19 Aug 2008 16:21:50 -0700	[thread overview]
Message-ID: <00b801c90252$5c847c10$0200a8c0@us.oracle.com> (raw)
In-Reply-To: <48AB5019.1090608@gmail.com>

> > What will you do with `transpose-word', for instance, when 
> > there is an active region? I don't follow the suggestion.
> > How about some examples?
> 
> Move the next or previous word (depending on which side of the region
> you are on) to the other side of the region. Is not that a natural
> extension?

Dunno. I would expect it instead to swap the region and the next or previous
word, leaving the separator chars between them. `transpose-word' recognizes
intervening non-word chars (any number), and swaps the words around them.

Sounds OK to me, but I don't have much of a opinion one way or the other. It
might require users to sometimes deactivate the region to get today's effect,
but that's no biggee.

Presumably, the region would be kept active, so you could repeat the operation -
e.g. `transpose-line' would move the region down a line each time. (That's
another difference from today's commands - they deactivate the region.)

Either there used to be a command that moved the region this way or I had my
own, long ago. I remember using it, but I haven't missed it for many moon.






  reply	other threads:[~2008-08-19 23:21 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-19 14:21 Move selection up, down jiri.pejchal
2008-08-19 21:27 ` harven
2008-08-19 22:43   ` Chat
2008-08-19 21:47 ` Lennart Borgman (gmail)
2008-08-19 22:31   ` Drew Adams
2008-08-19 22:58     ` Lennart Borgman (gmail)
2008-08-19 23:21       ` Drew Adams [this message]
2008-08-19 23:30         ` Lennart Borgman (gmail)
2008-08-19 23:40           ` Drew Adams
2008-08-19 23:48             ` Lennart Borgman (gmail)
2008-08-20  7:45           ` Jiri Pejchal
2008-08-20  8:15             ` martin rudalics
2008-08-20 23:11   ` Richard M. Stallman
2008-08-20  0:45 ` Andreas Politz
2008-09-11 17:04   ` Oleksandr Gavenko
2013-07-04 12:15   ` teemu.leisti
2014-12-12 19:14 ` jsglazer

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='00b801c90252$5c847c10$0200a8c0@us.oracle.com' \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --cc=jiri.pejchal@gmail.com \
    --cc=lennart.borgman@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.