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, 03 Jun 2021 09:19:44 +0300

> From: Juri Linkov <juri@linkov.net>
> Cc: 48478@debbugs.gnu.org
> Date: Thu, 03 Jun 2021 00:10:18 +0300
> 
> >> 1. select the word "This" and type M-w
> >> 2. select the word "buffer" and type M-w
> >> 3. type M-y M-p
> >>
> >> The minibuffer looks like:
> >>
> >>   Yank from kill-ring: This
> >>
> >> but should be
> >>
> >>   Yank from kill-ring: buffer
> >
> > So you don't like that M-p yields "This" and M-n yield "buffer" in
> > this case?  Why not?  IOW, why did you expect M-p to yield "buffer"?
> > This is M-y, not C-y.
> 
> But this is not 'M-y C-y'.  The logic is the following:
> one key (either non-minibuffer 'C-y' or minibuffer 'M-y') should yank the 
> last item,
> two keys (non-minibuffer 'C-y M-y') should yank the second last item.

That's your logic, not necessarily that of others.  There's no
"M-y M-y" with a preceding C-y, so I don't see any problem in the
current behavior: it can be easily described in the documentation, and
feels natural to me.

But if you want to change it to the behavior you expect, I don't mind.
Just do that (and the setting of the kill-ring pointer) soon, because
currently the documentation of the new behavior of M-y in the manual
is incomplete, and I'd like to complete it before I forget.

Thanks.





reply via email to

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