Hi Neil, Neil Jerram <[email protected]> writes:
> I have a program that calls (read-elisp) in a loop, to read in a BBDB > file. When it gets to the end of the file, the next (read-elisp) throws > an error (wrong type arg, pair expected), and the attached patch makes > it return '*eoi* instead. > > Is that correct? ‘get-lexer/1’ can return '*eoi*, so yes, I think. > Is *eoi* better than #<eof> here? I don’t think so, since it’s the result returned by ‘read-elisp’, whose callers shouldn’t see '*eoi*. So I think ‘get-expression’ should return the EOF object when it encounters '*eoi*. Besides, you might want to check if it’s fixed in the elisp branch, who knows. :-) Thanks, Ludo’.
