all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jiri Pejchal" <jiri.pejchal@gmail.com>
To: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: Drew Adams <drew.adams@oracle.com>, Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Move selection up, down
Date: Wed, 20 Aug 2008 09:45:09 +0200	[thread overview]
Message-ID: <e0ff2d5e0808200045p4c1bc1c1l43d0d3f316ebfc52@mail.gmail.com> (raw)
In-Reply-To: <48AB578C.8060407@gmail.com>

On Wed, Aug 20, 2008 at 1:30 AM, Lennart Borgman (gmail)
<lennart.borgman@gmail.com> wrote:
> Drew Adams wrote:
>>>> 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.
>
> Isn't that the same thing?
>
>> 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.)

Just to make it clear the netbeans implementation is actually only
line oriented.
If the selection span less than one line the move/copy operations
works on the line with cursor.
If the selection span more than one line it operates on those lines.

Alt-Shift Left/Right/Up/Down Shift lines left/right/up/down
Ctrl-Shift-Up/D Copy lines up/down

Jiri Pejchal




  parent reply	other threads:[~2008-08-20  7:45 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
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 [this message]
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=e0ff2d5e0808200045p4c1bc1c1l43d0d3f316ebfc52@mail.gmail.com \
    --to=jiri.pejchal@gmail.com \
    --cc=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    --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.