Re: move-lines.el: a lazy programmer's package to move lines around

Juri Linkov <[email protected]>
Newsgroups gmane.emacs.devel
Organization LINKOV.NET
Message-ID <[email protected]>
>> Or you can directly use 'set-transient-map' like in 'indent-rigidly'.
>> IOW, we need to generalize 'indent-rigidly' that moves the selected text
>> only horizontally to a new command that will move the selected region
>> in any direction in which the cursor moves until exiting the transient mode.
>
> Thanks for the pointer… I’ll study it.

You could even try to generalize is so that any cursor motion would move
the selected region with it, e.g. by activating 'post-command-hook'.
This would work like 'mouse-drag-and-drop-region' but without its complexity,
by just moving the region while moving point.  This will be very useful.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.