bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#46621: Copy line


From: Juri Linkov
Subject: bug#46621: Copy line
Date: Thu, 07 Jul 2022 19:45:23 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu)

>> Here is the patch that does this.  So if you have
>>
>>   foo 1 bar
>>
>> and need to get
>>
>>   foo 1 bar
>>   foo 2 bar
>>   foo 3 bar
>>   foo 4 bar
>>   foo 5 bar
>>
>> it requires typing the minimal number of keys -
>> move point to the column with 1, and type:
>>
>>   C-u <copy-line> 2 <down> 3 <down> 4 <down> 5 <down>
>
> I think I've changed my mind about moving point -- leaving it where it
> is makes sense if you've bound `duplicate-line' to a single key, and
> then you'd say, for instance, `M-o' `M-o' `M-o' `M-o'.  And then you'd
> not want point to move, but be left where it is, so you can start
> editing by hitting <down>.

This is optimized for a rare workflow.  Why would anyone want
to type a long key sequence `M-o M-o M-o M-o ... <down>' when
it's much easier to type just `M-4 M-o' and immediately start editing.





reply via email to

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