* Bad value from read-from-string
@ 2002-05-29 11:08 Juanma Barranquero
2002-05-29 19:05 ` Colin Walters
0 siblings, 1 reply; 3+ messages in thread
From: Juanma Barranquero @ 2002-05-29 11:08 UTC (permalink / raw)
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 <walters@gnu.org>
>
> * 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bad value from read-from-string
2002-05-29 11:08 Bad value from read-from-string Juanma Barranquero
@ 2002-05-29 19:05 ` Colin Walters
2002-05-30 13:56 ` Juanma Barranquero
0 siblings, 1 reply; 3+ messages in thread
From: Colin Walters @ 2002-05-29 19:05 UTC (permalink / raw)
Cc: christoph.conrad
On Wed, 2002-05-29 at 07:08, Juanma Barranquero wrote:
> 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.
Should be fixed now; please let me know if not.
The bug was caused by the order of evaluation of function arguments
inside Fread_from_string, and my code depended on it being
left-to-right. GCC always uses left-to-right, so I'm assuming this bug
was revealed because you use the Windows compiler.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bad value from read-from-string
2002-05-29 19:05 ` Colin Walters
@ 2002-05-30 13:56 ` Juanma Barranquero
0 siblings, 0 replies; 3+ messages in thread
From: Juanma Barranquero @ 2002-05-30 13:56 UTC (permalink / raw)
On 29 May 2002 15:05:10 -0400, Colin Walters <walters@gnu.org> wrote:
> Should be fixed now; please let me know if not.
Yes, now it works. Thanks.
> GCC always uses left-to-right, so I'm assuming this bug
> was revealed because you use the Windows compiler.
Yes, I was compiling with MSVC 6.0.
/L/e/k/t/u
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-05-30 13:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-29 11:08 Bad value from read-from-string Juanma Barranquero
2002-05-29 19:05 ` Colin Walters
2002-05-30 13:56 ` Juanma Barranquero
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).