[Top][All Lists]

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

Re: defadvice on garbage-collect doesnt work?

From: Tim X
Subject: Re: defadvice on garbage-collect doesnt work?
Date: Wed, 14 Mar 2007 18:08:20 +1100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (gnu/linux)

address@hidden (John Paul Wallington) writes:

> address@hidden writes:
>> I would like to use the information returned by (garbage-collect) but
>> it doesnt seem right to do a garbage collect everytime the modeline is
>> displayed, therefore i would like to store the values calculated by
>> the last gc in a variable:
> How about sticking something to collect information on `post-gc-hook',
> the hook run after garbage collection has finished ?

I suspect this would be a better approach. While defadvice is a really great
feature, I've found you can have some issues with it when trying to use it on
very low level functions - mainly those which are based in C source. 


tcross (at) rapttech dot com dot au

reply via email to

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