From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Bad value from read-from-string Date: Wed, 29 May 2002 13:08:10 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <20020529130436.CB27.LEKTU@terra.es> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1022670523 12110 127.0.0.1 (29 May 2002 11:08:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 29 May 2002 11:08:43 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17D1Jr-00039D-00 for ; Wed, 29 May 2002 13:08:43 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17D1c8-00020F-00 for ; Wed, 29 May 2002 13:27:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17D1KR-0005mH-00; Wed, 29 May 2002 07:09:19 -0400 Original-Received: from [62.22.27.141] (helo=mail.peoplecall.com) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17D1JM-0005jg-00 for ; Wed, 29 May 2002 07:08:12 -0400 Original-Received: from jbarranquero (jbarranquero.ofi.peoplecall.com [62.22.27.143]) by mail.peoplecall.com (8.11.6/8.11.6) with ESMTP id g4TB8A916875 for ; Wed, 29 May 2002 13:08:10 +0200 Original-To: emacs-devel@gnu.org X-Mailer: Becky! ver. 2.00.11 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4481 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4481 On HEAD: emacs -q --no-site-file M-x ielm 1 [enter] => Args out of range: "1", 7, 1 Only happens with the first expression evaluated. It is caused by the value returned by read-from-string. Perhaps related to: > 2002-05-28 Colin Walters > > * lread.c (readchar_count): New variable. > (readchar): Increment it. > (unreadchar): Decrement it. > (read_multibyte): Decrement it. > (Vread_with_symbol_positions): New variable. > (Vread_symbol_positions_list): New variable. > (read_internal_start): New function, created from Fread and > Fread_from_string. Handle Vread_symbol_positions_list and > Vread_with_symbol_positions. > (readevalloop, Fread, Fread_from_string): Use it. > (read1): Use readchar_count to add symbol positions to > Vread_symbol_positions_list if Vread_with_symbol_positions is > non-nil. > (syms_of_lread): DEFVAR_LISP and initialize them. > > * lread.c (read0, read1, read_list, read_vector, read_multibyte) > (substitute_object_recurse, substitute_object_in_subtree) > (substitute_in_interval): Prototype. > (read_multibyte): Return c if it's less than zero. /L/e/k/t/u