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: Wed, 26 May 2021 15:05:16 +0300

> From: Juri Linkov <juri@linkov.net>
> Cc: 48478@debbugs.gnu.org
> Date: Tue, 25 May 2021 23:35:48 +0300
> 
> > If you want yank-from-kill-ring to leave kill-ring-yank-pointer
> > unaltered, we could move the pointer in yank-pop, after
> > yank-from-kill-ring returns.  WDYT?
> 
> When yank-from-kill-ring returns an edited string,

When does it do that?  AFAICT, it _inserts_ the edited string.

> how yank-pop could use it to adjust kill-ring-yank-pointer?

yank-from-kill-ring is a new function, and its return value isn't
documented.  So you could change it to return kill-ring-yank-pointer
instead, and then yank-pop could move it.





reply via email to

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