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

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

Re: Make <delete> save the deleted text into the killing ring


From: aitor
Subject: Re: Make <delete> save the deleted text into the killing ring
Date: Thu, 15 Dec 2022 09:31:43 +0100

On Thu, Dec 15, 2022 at 08:14:21AM +0200, Eli Zaretskii wrote:
> > <delete> char is bound to `delete-forward-char` which does not save the
> > deleted text into the kill ring by default. How can I change this
> > behavior and make <delete> actually save the killed text into the ring?
>
> Any reason why you think you need that?  Doing so will fill the
> kill-ring with meaningless single-character entries.  You have 'undo',
> which can undelete the deleted text, so why do you want to put every
> single character you delete in the kill-ring?

I usually select portions of text using shift+arrow keys, and then
delete them by pressing <delete>. Often, I find myself wanting to yank
the deleted text into another place (using C-y or shift-insert), but as
said 'delete-forward-char' doesn't save it in the kill ring.

I know that I can kill the selected text with C-w instead of <delete>,
thus saving the text into the ring, but my muscle memory is somehow used
to the <delete> key.



reply via email to

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