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

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

RE: clear the kill-ring and free memory?


From: Drew Adams
Subject: RE: clear the kill-ring and free memory?
Date: Thu, 12 Sep 2013 13:56:32 -0700 (PDT)

> > > (setq kill-ring nil)
> > > (garbage-collect)
> > >
> > > but I don't know if that would leave some clipboard
> > > functions/variables in an illegal state.
> >
> > Nope. Go for it. No problem.
> 
> Sure?  What about `kill-ring-yank-pointer' and `yank-menu'?

What about them?  I don't think that either is a problem (e.g.,
"illegal state").  But I'll be glad to be shown wrong.

`Edit > Paste from Kill Menu' won't be emptied too, but there
is no problem with that, AFAIK.

If you are worried, do this instead:

(setq kill-ring-max 1)
Copy some text.
(setq kill-ring-max 60) ; or whatever



reply via email to

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