Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove the top entry (pop) from the emacs kill-ring?

Tags:

emacs

elisp

I need to replace the top killed string to another one. I can (yank) it and then (kill-region ...), but after that, there will be two strings: the old one, and my new. How to remove the old entry completely from the kill-ring?

like image 307
Necto Avatar asked Jan 15 '23 04:01

Necto


1 Answers

It can be as simple as

(pop kill-ring)
like image 131
Oleg Pavliv Avatar answered Jan 21 '23 12:01

Oleg Pavliv