How does one clear the kill ring in emacs? I use browse-kill-ring.el but the buffer it provides is read-only.
Mac – Clear the kill ring in emacs
emacstext-editors
emacstext-editors
How does one clear the kill ring in emacs? I use browse-kill-ring.el but the buffer it provides is read-only.
Best Answer
For me,
M-:
(setq kill-ring nil)
works. See also Internals of Kill Ring in the elisp manual. Don't ask me about side effects and security aspects, though.Invoking the garbage collection right away as in
makes the conses less accessible, so this might give you some degree of security.