Re: (warn) isn't doing what I expect it to
- From: Pascal Bourguignon <spam@xxxxxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 05:43:44 +0200
Nathan Baum <nathan_baum@xxxxxxxxxxxxxx> writes:
> In the real code, the newline is provided elsewhere. It turned out
> that way because CLISP doesn't put a newline after a warning:
>
> (progn (warn "foo")
> (princ "bar"))
>
> I don't feel the need to change things, since putting a newline in
> there messes up the display, and removing it from where it is
> displayed at the moment means that normal Lisp warnings (which I'm not
> yet redirecting to a log) will be messed up when using CLISP.
The point is that lisp is old enough to be born at a time when
newlines were inserted _before_ the lines. You needed to move to a
new-line to be able to print the current line or punch the current
card.
Note that even on a video terminal, it might be useful to use the
newline before convention, since it gives you one more line on the
screen. With the newline after, you always get the last like blank
(not that matter much in a 80x60 emacs window ;-).
If you want to follow unix convention, you need to make intensive use
of ~&: (format t "~&bar~%") instead of (princ "bar") to interact
nicely with "older" lisp code.
--
"Specifications are for the weak and timid!"
.
- Follow-Ups:
- Re: (warn) isn't doing what I expect it to
- From: Kent M Pitman
- Re: (warn) isn't doing what I expect it to
- References:
- (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Edi Weitz
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- Re: (warn) isn't doing what I expect it to
- From: Kent M Pitman
- Re: (warn) isn't doing what I expect it to
- From: Nathan Baum
- (warn) isn't doing what I expect it to
- Prev by Date: Re: (warn) isn't doing what I expect it to
- Next by Date: Re: Resume questions, how convey?
- Previous by thread: Re: (warn) isn't doing what I expect it to
- Next by thread: Re: (warn) isn't doing what I expect it to
- Index(es):
Relevant Pages
|