From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: lread.c's `values' variable Date: 05 Nov 2002 01:08:28 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: <5x65vcri83.fsf@kfs2.cua.dk> References: <200210311955.g9VJtMN31048@rum.cs.yale.edu> <5xr8e3lab9.fsf@kfs2.cua.dk> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1036452639 14770 80.91.224.249 (4 Nov 2002 23:30:39 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 4 Nov 2002 23:30:39 +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 188qg1-0003pt-00 for ; Tue, 05 Nov 2002 00:30:37 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 188qnl-0001ys-00 for ; Tue, 05 Nov 2002 00:38:38 +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 188qaq-0002jY-00; Mon, 04 Nov 2002 18:25:16 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 188qKj-0003PW-00 for emacs-devel@gnu.org; Mon, 04 Nov 2002 18:08:37 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 188qKf-0003OS-00 for emacs-devel@gnu.org; Mon, 04 Nov 2002 18:08:35 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10) id 188qKe-0003O2-00; Mon, 04 Nov 2002 18:08:32 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id 944897C017; Mon, 4 Nov 2002 23:08:30 +0000 (GMT) Original-To: rms@gnu.org In-Reply-To: Original-Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 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:9121 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9121 Richard Stallman 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 http://www.cua.dk