Move selection up, down
  Home FAQ Contact Sign in
gnu.emacs.help only
 
Advanced search
POPULAR GROUPS

more...

gnu.emacs.help Profile…
 Up
Move selection up, down         


Author: jiri.pejchal
Date: Aug 19, 2008 07:21

Hi,

in Netbeans when you press M-S-up/M-S-down you move the selected text
up/down. When nothing is selected it moves the current line.

With C-S-up/C-S-down you copy the selection up/down. When nothings is
selected it copies the current line up/down.

Is such functionality available in emacs?

Jiri Pejchal
4 Comments
Re: Move selection up, down         


Author: harven
Date: Aug 19, 2008 14:27

On Aug 19, 4:21 pm, "jiri.pejc...@gmail.com" gmail.com>
wrote:
> Hi,
>
> in Netbeans when you press M-S-up/M-S-down you move the selected text
> up/down. When nothing is selected it moves the current line.
>
> With C-S-up/C-S-down you copy the selection up/down. When nothings is
> selected it copies the current line up/down.
>
> Is such functionality available in emacs?
>
> Jiri Pejchal

There are similar functionalities in emacs,
although the bindings are different. For example, the command that
transposes two
consecutive lines is called transpose-lines and is bound to C-x C-t by
default. Other transpose commands include transpose-region, transpose-
char, transpose-paragraphs, transpose-words, transpose-sentences.
Show full article (1.22Kb)
no comments
Re: Move selection up, down         


Author: Chat
Date: Aug 19, 2008 15:43

harven writes:
> On Aug 19, 4:21 pm, "jiri.pejc...@gmail.com" gmail.com>
> wrote:
>> Hi,
>>
>> in Netbeans when you press M-S-up/M-S-down you move the selected text
>> up/down. When nothing is selected...
Show full article (1.42Kb)
no comments
Re: Move selection up, down         


Author: Andreas Politz
Date: Aug 19, 2008 17:45

jiri.pejchal@gmail.com wrote:
> Hi,
>
> in Netbeans when you press M-S-up/M-S-down you move the selected text
> up/down. When nothing is selected it moves the current line.
>
> With C-S-up/C-S-down you copy the selection up/down. When nothings is
> selected it copies the current line up/down.
>
> Is such functionality available in emacs?
>
> Jiri Pejchal

Heres some elisp. It binds M-S-up/down to commands
which move the active region (with respect to columns)
or the current line prefix arg lines up or down.
Have fun.
-ap
Show full article (1.56Kb)
no comments
Re: Move selection up, down         


Author: Oleksandr Gavenko
Date: Sep 11, 2008 10:04

Andreas Politz wrote:
> jiri.pejchal@gmail.com wrote:
>> Hi,
>>
>> in Netbeans when you press M-S-up/M-S-down you move the selected text
>> up/down. When nothing is selected it moves the current line.
>>
>> With C-S-up/C-S-down you copy the selection up/down. When nothings is
>> selected it copies the current line up/down.
>>
>> Is such functionality available in emacs?
>>
>> Jiri Pejchal
>
>
> Heres some elisp. It binds M-S-up/down to commands
> which move the active region (with respect to columns)
> or the current line prefix arg lines up or down.
> Have fun.
> -ap ...
Show full article (1.87Kb)
no comments

RELATED THREADS
SubjectArticles qty Group
Re: How to do Selective Desaturation (Selective Black and White) in video?rec.video.desktop ·