From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: lread.c's `values' variable Date: Mon, 04 Nov 2002 07:01:52 -0500 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200210311955.g9VJtMN31048@rum.cs.yale.edu> <5xr8e3lab9.fsf@kfs2.cua.dk> Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1036412409 2804 80.91.224.249 (4 Nov 2002 12:20:09 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 4 Nov 2002 12:20:09 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu, emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 188gD5-0000it-00 for ; Mon, 04 Nov 2002 13:20:03 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 188gKb-0003lV-00 for ; Mon, 04 Nov 2002 13:27:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 188gBj-0003EI-00; Mon, 04 Nov 2002 07:18:39 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 188fva-0007Ta-00 for emacs-devel@gnu.org; Mon, 04 Nov 2002 07:01:58 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 188fvU-0007Ru-00 for emacs-devel@gnu.org; Mon, 04 Nov 2002 07:01:56 -0500 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 188fvU-0007Ro-00 for emacs-devel@gnu.org; Mon, 04 Nov 2002 07:01:52 -0500 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 188fvU-0007ZK-00; Mon, 04 Nov 2002 07:01:52 -0500 Original-To: storm@cua.dk In-reply-to: <5xr8e3lab9.fsf@kfs2.cua.dk> (storm@cua.dk) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9103 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9103 Yes, it uses (car values). values is supposed to provide a history that you can look at whenever you wish. It's not just meant for the functions that look at it. 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.