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 15:08:10 -0700 (PDT)

> > > 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.
> 
> `kill-ring-yank-pointer': dunno too, but you might get surprised, I
> would set it nil, too.

I really don't think so.  Did you try it?

> `yank-menu': Since unfrostedpoptart wants to free memory, I assume that
> he has some really huge kills in his kill ring and wants to get rid of
> these objects in memory.  These kills are stored in `yank-menu' too, so
> you'll have to reset this variable to garbage-collect those kills.

Agreed.

I was answering only the question about problems - an "illegal state"
from emptying `kill-ring'.  But you are right that emptying it alone
does not solve the memory problem.

`kill-ring-max' takes care of both sets of pastables.



reply via email to

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