This is the mail archive of the
kawa@sourceware.org
mailing list for the Kawa project.
Re: Kawa in Emacs
- From: Per Bothner <per at bothner dot com>
- To: Sascha Ziemann <ceving at gmail dot com>, "kawa at sourceware dot org" <kawa at sourceware dot org>
- Date: Fri, 22 Mar 2013 11:57:48 -0700
- Subject: Re: Kawa in Emacs
- References: <CAGUt3y7Bq6r0T_c6MrA0+JSpL=VqGr3RVJuv2x3RsbqsaGTzig at mail dot gmail dot com> <514C8E5D dot 8090401 at bothner dot com> <CAGUt3y4-fruL6H8W-7LHAvpxGyyUWUqLdt7Uc_yPHKgpWn=n5Q at mail dot gmail dot com>
On 03/22/2013 11:28 AM, Sascha Ziemann wrote:
2013/3/22 Per Bothner <per@bothner.com>:
#|kawa:1|# #|(---:2|# #|(---:3|# #|(---:4|# #|(---:5|# #|kawa:6|# 0
Those are the prompt strings, one for each line. Kawa's REPL,
unlike that of most Lisp/Scheme implementations, emits a prompt
per input line, not per top-level expression.
What is the reason for that?
It's traditional in shells, and I think it makes sense: Having
the program ask for more input with no indication why and with no
feedback seems rather user-unfriendly.
I am used to write Scheme interactively and I test every function
while I am writing it. Often I wrap my whole source with a (begin ...)
in order to be able to evaluate it with one C-x C-e. When I do that
with Kawa the whole *scheme* buffer is full of prompt strings. Is it
possible to get a more quiet prompt?
To completely shut up prompts, do:
(set-input-port-prompter! (current-input-port) (lambda (port) ""))
Tweaking it so you still get a prompt on the first line should be
possible, too. As a model, see how default-prompter (in
kawa/lib/ports.scm) checks the input-port-read-state.
I tried -w but it would not help because Emacs can not write into the window.
Cut/copy/paste should hopefully work, but I can understand you
might want something morer.
--
--Per Bothner
per@bothner.com http://per.bothner.com/