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

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

bug#46621: [External] : bug#46621: Copy line


From: Drew Adams
Subject: bug#46621: [External] : bug#46621: Copy line
Date: Tue, 28 Jun 2022 14:28:44 +0000

> > > In emacs terminology it's not copying the text
> > > (like to the kill-ring) but inserting or yanking
> > > it into the buffer (just not from the kill-ring
> > > but from the previous line). It seems closer in
> > > concept to how dabbrev and hippie use the term
> > > "expand".

This is important, IMO.
The name is awful - not helpful.

> > Why on earth is this called `copy-from-above-command'?
> >
> > "-command"?
> >
> > Maybe it would help to add a more discoverable alias?
> 
> Both good points.

The command inserts chars from the previous line at
point.  By default it inserts all of the text of the
previous line, starting just above point.

Can we please rename this poorly named command?

E.g. defalias a new name and deprecate the old one.

Do I need to create a separate bug / enhancement
request for this, or could it be taken care of in
this thread?

Maybe a name such as `insert-from-previous-line'?

___


`yank' isn't appropriate in the name, because the
`kill-ring' isn't involved.

`insert' is pretty good, though it might not be
super helpful for discovery.

`duplicate' could maybe be used in the name, but
I'm not sure how.  The name shouldn't include both
`duplicate' and `line', as that would be misleading.

reply via email to

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