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

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

Re: defadvice on garbage-collect doesnt work?


From: joakim
Subject: Re: defadvice on garbage-collect doesnt work?
Date: Thu, 15 Mar 2007 00:51:48 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

Tim X <address@hidden> writes:

> 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 ?

That seems nice, but the hook runs after the gc, right? So how can I
acess the returnvalue of the gc from the hook?

> 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. 
>
> Tim
>
> -- 
> tcross (at) rapttech dot com dot au

-- 
Joakim Verona





reply via email to

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