[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#46621: Copy line
From: |
Lars Ingebrigtsen |
Subject: |
bug#46621: Copy line |
Date: |
Thu, 07 Jul 2022 09:58:23 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Juri Linkov <juri@linkov.net> writes:
>>> duplicate-line should keep point at the same column.
>>
>> Ah, yes, that might be nice...
>
> 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>.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/07/01
- bug#46621: Copy line, Juri Linkov, 2022/07/06
- bug#46621: Copy line,
Lars Ingebrigtsen <=
- bug#46621: Copy line, Juri Linkov, 2022/07/07
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/07/07
- bug#46621: Copy line, Juri Linkov, 2022/07/07
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/07/07
- bug#46621: Copy line, Juri Linkov, 2022/07/08
- bug#46621: Copy line, Lars Ingebrigtsen, 2022/07/10
- bug#46621: Copy line, Juri Linkov, 2022/07/14
- bug#46621: Copy line, Andreas Schwab, 2022/07/14
- bug#46621: Copy line, Juri Linkov, 2022/07/14