[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
readline
- To: (BUG LISP) at MIT-MC
- Subject: readline
- From: JONL at MIT-MC (Jon L White)
- Date: Tue, 11 Jul 78 22:19:00 GMT
- Original-date: 11 JUL 1978 1819-EDT
Currently, (READLINE input-arg eof-val) will return the
eof-val if the last "line" of the file doesn't have a carriage
return ending it; KMP suggests that the eof condition act like a
carriage-return character, so that READLINE will return the
non-null line. (If there are no characters "buffered up" by
READLINE, then it can return the eof-val). Also, after
closing a line "by force" when the eof is encountered, the
file should not be closed, but rather (FILEPOS input-arg T)
should be done, so that the subsequent call to READLINE (or indeed
any inputting fucntion) will cause the signalling of an eof condition.