From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jpw@pobox.com (John Paul Wallington) Newsgroups: gmane.emacs.help Subject: Re: defadvice on garbage-collect doesnt work? Date: Wed, 14 Mar 2007 00:57:47 +0000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1173836412 31832 80.91.229.12 (14 Mar 2007 01:40:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 14 Mar 2007 01:40:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 02:40:06 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HRITG-0002HO-5s for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Mar 2007 02:40:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRIU5-0004se-FV for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Mar 2007 20:40:57 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!news.kjsl.com!news.glorb.com!news-peer-lilac.gradwell.net!not-for-mail Original-Newsgroups: gnu.emacs.help X-Mailer: Norman X-Attribution: JPW X-Face: #uahb@^mo@bA"{q'"a4y[w$n3/V:haD\; YenWcT7)kXYx3/>#[DD9ExVe}; 9FG6X`l!Dm"V peub=u!&&?}s~{TOPtGdH)KA}/qCr; d"Gr*'9_V1PE@+K'tk2/Iq@PBKtJ+]&,CP9_Fl8'*R]LCR0| 6q; Xey'`:DX+)S.]p[KP^sNe`8B\W6(Nw{o5i)y+I!h=0bU5L`Tj`~Q0!G"t(s7o7eh)J\>P>,!~/w $$jGEVa%H%8(jTv User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.94 (windows-nt) Cancel-Lock: sha1:d1f7HjhycrBjGXmjklJhWbq+WJQ= Original-Lines: 9 Original-NNTP-Posting-Host: 217.169.11.186 Original-X-Trace: 1173833875 news.aaisp.net.uk 764 217.169.11.186:1111 Original-X-Complaints-To: aaispnews-abuse@gradwell.net Original-Xref: shelby.stanford.edu gnu.emacs.help:146340 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41944 Archived-At: 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 ?