From: storm@cua.dk (Kim F. Storm)
Cc: monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org
Subject: Re: lread.c's `values' variable
Date: 05 Nov 2002 01:08:28 +0100 [thread overview]
Message-ID: <5x65vcri83.fsf@kfs2.cua.dk> (raw)
In-Reply-To: <E188fvU-0007ZK-00@fencepost.gnu.org>
Richard Stallman <rms@gnu.org> writes:
> Yes, it uses (car values).
>
> values is supposed to provide a history that you can look at whenever
> you wish.
Has anyone ever needed to look at that list?
Isn't the information typically found in the *Messages* buffer, in the
command history, or in the buffer where you evalled the expression
(e.g. *scratch*).
> It's not just meant for the functions that look at it.
It is quite obvious that functions can only really look at the car of
that list. So it is really _never_ for functions to look at (as a list).
>
> However, that doesn't explain why `values' needs to be a list of all
> expressions "which were read, evaluated and printed". Since it grows
> without ever being truncated, it is a memory leak IMO.
>
> It probably is not a significant leak, but if it is, we could make GC
> truncate it to a certain length.
If we keep it as a list, I think that is a reasonable compromise.
--
Kim F. Storm <storm@cua.dk> http://www.cua.dk
next prev parent reply other threads:[~2002-11-05 0:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-31 19:55 lread.c's `values' variable Stefan Monnier
2002-11-02 3:31 ` Richard Stallman
2002-11-03 1:19 ` Kim F. Storm
2002-11-04 12:01 ` Richard Stallman
2002-11-05 0:08 ` Kim F. Storm [this message]
2002-11-06 4:50 ` 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
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=5x65vcri83.fsf@kfs2.cua.dk \
--to=storm@cua.dk \
--cc=emacs-devel@gnu.org \
--cc=monnier+gnu/emacs@rum.cs.yale.edu \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).