This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Kawa in Emacs


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]