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

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

bug#46621: Copy line


From: Eli Zaretskii
Subject: bug#46621: Copy line
Date: Sun, 21 Feb 2021 12:41:47 +0200
User-agent: K-9 Mail for Android

On February 21, 2021 10:54:24 AM GMT+02:00, Juri Linkov <juri@linkov.net> wrote:
> >   > >> 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.

What is the use case for an Emacs user to need to copy a line 12 times, and is 
it frequent enough to justify binding the command to a key, and to C-c key on 
top of that?

Also, let's not forget that Emacs has keyboard macros, and those can be run 
with a repeat count.





reply via email to

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