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

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

bug#48478: 28.0.50; yank-from-kill-ring and kill-ring-yank-pointer


From: Eli Zaretskii
Subject: bug#48478: 28.0.50; yank-from-kill-ring and kill-ring-yank-pointer
Date: Thu, 20 May 2021 23:10:52 +0300

> From: Juri Linkov <juri@linkov.net>
> Cc: 48478@debbugs.gnu.org
> Date: Thu, 20 May 2021 22:56:35 +0300
> 
> > However, I'm not sure I understand what happens when I edit the
> > kill-ring entry before hitting RET, which gets it inserted.  Is the
> > edited entry added to the kill-ring?  It looks like it isn't, because
> > the next C-y inserts the last kill-ring entry, i.e. neither the
> > original entry I edited nor the edited entry actually inserted.  Why
> > does the kill-ring-yank-pointer gets reset to the front of the
> > kill-ring in this case?
> 
> After inserting the edited entry it resets the kill-ring-yank-pointer
> for the same reason why the kill-ring-yank-pointer gets reset
> when a new entry gets added to the kill-ring after C-w,
> i.e. like this line in 'kill-new':
> 
>   (setq kill-ring-yank-pointer kill-ring)

I could understand that if the edited entry were added to the
kill-ring.  But it isn't is it?





reply via email to

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