all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Joe Wells <jbw@macs.hw.ac.uk>
Cc: bug-gnu-emacs@gnu.org, rms@gnu.org
Subject: Re: frames vs. weak hash tables and garbage collection
Date: Sat, 29 Sep 2007 14:28:16 -0400	[thread overview]
Message-ID: <jwvhcldmit9.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <867im9xx2f.fsf@macs.hw.ac.uk> (Joe Wells's message of "Sat\, 29 Sep 2007 17\:20\:40 +0100")

>> But it seems that `values' is never flushed, so it is a source of leaks.
>> We should probably fix it (I'd remove it since almost noone even knows that
>> it exists, but I guess Richard uses it once in a blue moon).
>> 
>> I don't use it myself.  I put it in because a history of values
>> is a useful thing for any read-eval-print loop.  We could delete it,
>> but it might be better to do more to inform people about it.
>> For instance, mention it in the text in the *scratch* buffer.
>> 
>> Then they might indeed find it useful.  Or if they don't,
>> we could delete it.
>> 
>> I agree with the suggestion to truncate it to a specified maximum
>> length.  How about 40?


> Personally, I can't remember using anything more than (car values).
> Maybe once I used something older than the most recent addition to the
> list.

> So it seems to me a length of 3 would probably be plenty.

> By the way, the name “values” is not good.  I would suggest
> “eval-expression-recent-values”.

ielm implements its own mechanism for it and it calls it "*", "**", and
"***", giving access only to the last 3 values.
I do use these occasionally (contrary to `values' which I've never used).

So I guess 3 is plenty indeed.  In many circumstances where I could use this
kind of feature I prefer using (setq sm-tmp <exp>) and then refer to that
value as `sm-tmp' this way I can reuse this value many times easily
(whereas with `values' I'd have to keep track of the position within the
list etc...).


        Stefan




  reply	other threads:[~2007-09-29 18:28 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-30  1:27 frames vs. weak hash tables and garbage collection Joe Wells
2007-08-30  2:07 ` Eric Hanchrow
2007-08-30  3:00 ` Thien-Thi Nguyen
2007-08-30  3:07 ` Thien-Thi Nguyen
     [not found] ` <mailman.47.1188442895.18990.bug-gnu-emacs@gnu.org>
2007-08-31 15:15   ` Joe Wells
2007-08-31 15:42     ` Thien-Thi Nguyen
2007-08-31 15:50     ` Thien-Thi Nguyen
     [not found]     ` <mailman.116.1188575498.18990.bug-gnu-emacs@gnu.org>
     [not found]       ` <xnjir6tyj35.fsf@csb.bu.edu>
2007-09-02  2:00         ` Thien-Thi Nguyen
     [not found]     ` <mailman.115.1188574978.18990.bug-gnu-emacs@gnu.org>
     [not found]       ` <xnjhcmdyirv.fsf@csb.bu.edu>
2007-09-02  2:13         ` Thien-Thi Nguyen
2007-09-25 23:23     ` Joe Wells
2007-09-27  7:20       ` Glenn Morris
2007-09-27  8:50         ` Thien-Thi Nguyen
     [not found]           ` <mailman.1408.1190931512.18990.bug-gnu-emacs@gnu.org>
2007-09-28 14:34             ` Stefan Monnier
2007-09-28 14:56               ` Joe Wells
2007-09-28 16:27                 ` Stefan Monnier
2007-09-28 16:50                   ` Joe Wells
2007-09-28 18:22                     ` Stefan Monnier
2007-09-28 18:48                       ` Joe Wells
2007-09-29 16:10                   ` Richard Stallman
2007-09-29 16:20                     ` Joe Wells
2007-09-29 18:28                       ` Stefan Monnier [this message]
2007-09-29 19:25                         ` Drew Adams
2007-09-30 12:55                           ` Richard Stallman

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvhcldmit9.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=bug-gnu-emacs@gnu.org \
    --cc=jbw@macs.hw.ac.uk \
    --cc=rms@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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.