I have NTEmacs 21.3 and Cormanlisp 2.5 on Windows XP home edition, both
installations fresh out of the box.
When I run cormanlisp as an inferior-lisp, I get no output when I hit
the RET key (comint-send-input). The input expression's font does change
to bold, the cursor moves to the next line, but the value of the
expression is not printed in the buffer.
When the inferior lisp is started, the initial prompt of the lisp
process is displayed in the inferior lisp buffer. Subsequent prompts are
not displayed.
Any ideas?
Thanks in advance,
Thomas
> I have NTEmacs 21.3 and Cormanlisp 2.5 on Windows XP home edition, both
> installations fresh out of the box.
>
> When I run cormanlisp as an inferior-lisp, I get no output when I hit
> the RET key (comint-send-input). The input expression's font does change
> to bold, the cursor moves to the next line, but the value of the
> expression is not printed in the buffer.
>
> When the inferior lisp is started, the initial prompt of the lisp
> process is displayed in the inferior lisp buffer. Subsequent prompts are
> not displayed.
>
> Any ideas?
>
> Thanks in advance,
> Thomas
>
lambda wrote:
> I have NTEmacs 21.3 and Cormanlisp 2.5 on Windows XP home edition, both
> installations fresh out of the box.
>
> When I run cormanlisp as an inferior-lisp, I get no output when I hit
> the RET key (comint-send-input). The input expression's font does change
> to bold, the cursor moves to the next line, but the value of the
> expression is not printed in the buffer.
>
> When the inferior lisp is started, the initial prompt of the lisp
> process is displayed in the inferior lisp buffer. Subsequent prompts are
> not displayed.
>
> Any ideas?
>
> Thanks in advance,
> Thomas
>
because redirection of output doesn't seem to work with cormanlisp.
I created an input file (evalme.txt) with a couple of lisp forms to
evaluate, and then executed the command line
c:\...\clconsole.exe <evalme.txt >output.txt
and the output file was empty. (It did not even contain the startup banner.)
To compare, I repeated the experiment with CLISP, and the output file
contained all the results from the evaluated forms.
A quick glance at the available sources of Cormanlisp revealed a
function call
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
which is indeed the Windows idiom to obey output redirections. I'm puzzled.
Supposing that Emacs inferior-lisp works with i/o redirection (what
else?), it's no surprise that the integration doesn't work.
regards,
Thomas
Hi Thomas,
lambda <······@nowhere.com> writes:
> I have NTEmacs 21.3 and Cormanlisp 2.5 on Windows XP home edition,
> both installations fresh out of the box.
> When I run cormanlisp as an inferior-lisp, I get no output when I
> hit the RET key (comint-send-input). The input expression's font
> does change to bold, the cursor moves to the next line, but the
> value of the expression is not printed in the buffer.
Possibly a variation of this problem:
Many command-line interpreters have two modes, interactive when they
run on a tty or console, and non-interactive when they run in a pipe
or when a script file is given on the command-line. Emacs on Unix
uses pseudo-ttys to force interactive mode, but Windows doesn't have
that concept.
The solution is either to write simple command loop script that you
run in the interpreter with prompting and all, or to add a
command-line flag to the interpreter to instruct it to use interactive
mode even if it doesn't detect a tty.
Hope this helps, benny
lambda <······@nowhere.com> writes:
>
> Any ideas?
There was a long discussion about this in the Corman Lisp mailing list
a month or two ago. The end result was (I think) for some people it
works, for others it doesn't. Strange.
Chris.