[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: |
Sun, 21 Feb 2021 10:54:24 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
> > >> In programming modes, if you need to declare a bunch of variables, you
> > >> may duplicate the current line several times and then proceed to rename
> > >> them. I see the proposed new command may be useful in that scenario.
>
> Once in a while I want to do that. It is easy: C-a C-k C-k,
> they C-y as many times as needed.
Let's compare these two solutions. Trying to copy 10 lines:
C-a C-k C-k C-y C-y C-y C-y C-y C-y C-y C-y C-y C-y
and adds an unrequested entry to the kill ring
that the user needs to remove from the kill ring later.
When bound to a short key, it's just
C-12 C-c c
and doesn't change the contents of the kill ring.
> Instead of a command to duplicate the current line repeatedly,
> how about a command to yank the current kill repeatedly?
> That would be useful in a much broader range of situations.
>
> I wonder if the current meaning of the numeric argument to C-y (reach
> back in the kill ring) is actually useful. Would it be better for
> it to repeat the yank in this way?
It's not realistic to change the meaning of the numeric arg to C-y.
People already use the current meaning for decades.
- bug#46621: Copy line, (continued)
- bug#46621: Copy line, Eli Zaretskii, 2021/02/20
- bug#46621: Copy line, Lars Ingebrigtsen, 2021/02/20
- bug#46621: Copy line, Eli Zaretskii, 2021/02/20
- bug#46621: Copy line, Lars Ingebrigtsen, 2021/02/20
- bug#46621: Copy line, Eli Zaretskii, 2021/02/20
- bug#46621: Copy line, Dmitry Gutov, 2021/02/20
- bug#46621: Copy line, Lars Ingebrigtsen, 2021/02/20
- bug#46621: Copy line, Juri Linkov, 2021/02/20
- bug#46621: Copy line, Richard Stallman, 2021/02/21
- bug#46621: Copy line, Richard Stallman, 2021/02/21
- bug#46621: Copy line,
Juri Linkov <=
- bug#46621: Copy line, Eli Zaretskii, 2021/02/21
- bug#46621: Copy line, Lars Ingebrigtsen, 2021/02/21
- bug#46621: Copy line, Eli Zaretskii, 2021/02/21
- bug#46621: Copy line, Lars Ingebrigtsen, 2021/02/21
- bug#46621: Copy line, Eli Zaretskii, 2021/02/21
- bug#46621: Copy line, Lars Ingebrigtsen, 2021/02/21
- bug#46621: [External] : bug#46621: Copy line, Drew Adams, 2021/02/21
- bug#46621: [External] : bug#46621: Copy line, Drew Adams, 2021/02/21
- bug#46621: Copy line, Richard Stallman, 2021/02/22
- bug#46621: [External] : bug#46621: Copy line, Drew Adams, 2021/02/21