From: joakim@verona.se
To: help-gnu-emacs@gnu.org
Subject: Re: defadvice on garbage-collect doesnt work?
Date: Thu, 15 Mar 2007 00:51:48 +0100 [thread overview]
Message-ID: <m3odmvv0x7.fsf@kurono.home> (raw)
In-Reply-To: 87y7m0480r.fsf@lion.rapttech.com.au
Tim X <timx@nospam.dev.null> writes:
> jpw@pobox.com (John Paul Wallington) writes:
>
>> joakim@verona.se 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
next prev parent reply other threads:[~2007-03-14 23:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.900.1173821943.7795.help-gnu-emacs@gnu.org>
2007-03-14 0:57 ` defadvice on garbage-collect doesnt work? John Paul Wallington
2007-03-14 7:08 ` Tim X
2007-03-14 23:45 ` Oliver Scholz
2007-03-14 23:51 ` joakim [this message]
2007-03-13 21:37 joakim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3odmvv0x7.fsf@kurono.home \
--to=joakim@verona.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).