[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keybinding to transpose current line with next line

From: Marcin Borkowski
Subject: Re: Keybinding to transpose current line with next line
Date: Wed, 23 Sep 2020 10:09:49 +0200
User-agent: mu4e 1.1.0; emacs 27.0.50

On 2020-09-23, at 07:02, Emanuel Berg via Users list for the GNU Emacs text 
editor <> wrote:

> Yuri Khan wrote:
>> This might be good for you
> ...
>> but org-drag-line-* have a couple advantages over
>> this:
>> * They do not pollute the kill ring.
> OK, so use `let', `thing-at-point' (with 'line) and
> `insert' instead.
>> * As you drag the line, point stays on the same
>> character where you started.
> If you want to edit the line, why start with moving
> it? It is more likely you wish to edit the
> other line.

Why?  Imagine working on a book, and in the file, every sentence has its
own line.  You may want to move some sentence and then reword it
(e.g., change "above" to "below" etc.).

And a similar case can be made for code, JSON, whatever.


Marcin Borkowski

reply via email to

[Prev in Thread] Current Thread [Next in Thread]