[slime-devel] REPL results and output

The printing of repl results seems to have changed recently: CL-USER> (format *standard-output* "foo") NIL CL-USER> foo CL-USER> (format *standard-output* "foo~%") NIL CL-USER> foo i.e. The result is printed and the prompt is printed before the command's output. Do other people get this same behaviour? Is this backend/interaction mode specific? (I'm using cmucl). -- Madhu

On Tue Jan 30, 2007 at 03:04:01PM +0530, Madhu wrote:
The printing of repl results seems to have changed recently:
CL-USER> (format *standard-output* "foo") NIL CL-USER> foo
CL-USER> (format *standard-output* "foo~%") NIL CL-USER> foo
i.e. The result is printed and the prompt is printed before the command's output.
Do other people get this same behaviour?
Is this backend/interaction mode specific? (I'm using cmucl). --
I'm not getting it with SBCL 1.0.1 + SLIME 2007-01-24 CL-USER> (format *standard-output* "foo") foo NIL --Jeff

Thanks for checking. I looked at the code for this and noticed that this bug occurs only when :*USE-DEDICATED-OUTPUT-STREAM* is set to T. I believe this bug is related to the following Changelog entries * 2006-12-31 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de> | * swank.lisp (connection): New slot repl-results (a stream). | (make-output-function-for-target): New. | (open-streams): Use it here to also create a stream for REPL results. * 2006-12-29 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de> | Simplify the REPL-results protocol. The results are now printed | using special :WRITE-STRING events from the Lisp side. Now there are two issues I would like some elucidation on: 2. Doesnt the new design contradict using a dedicated output stream? The repl results stream is not the dedicated output stream (opened in OPEN-STREAMS). Assuming for a moment that it were, how can the new protocol for printing repl results talk to that? 1. What is the status of SWANK:*USE-DEDICATED-OUTPUT-STREAM* ? I remember there was a move to eliminate it. Am I the only person using it? (not unusual!) Actually I have not understood the presentation protocol and barely grasp the connections stuff. -- Madhu * Jeffrey Cunningham <20070201155908.GE8077@achilles.olympus.net> : | On Tue Jan 30, 2007 at 03:04:01PM +0530, Madhu wrote: |> The printing of repl results seems to have changed recently: |> |> CL-USER> (format *standard-output* "foo") |> NIL |> CL-USER> foo |> |> CL-USER> (format *standard-output* "foo~%") |> NIL |> CL-USER> foo |> |> i.e. The result is printed and the prompt is printed before the |> command's output. |> |> Do other people get this same behaviour? |> |> Is this backend/interaction mode specific? (I'm using cmucl). |> -- | | | I'm not getting it with SBCL 1.0.1 + SLIME 2007-01-24 | | CL-USER> (format *standard-output* "foo") | foo | NIL |

On Friday 02 February 2007 05:28, Madhu wrote:
Thanks for checking. I looked at the code for this and noticed that this bug occurs only when :*USE-DEDICATED-OUTPUT-STREAM* is set to T.
I also get it on sbcl 1.0.2 and slime HEAD with dedicated output stream.

Madhu <enometh@meer.net> writes:
The printing of repl results seems to have changed recently: CL-USER> (format *standard-output* "foo") NIL CL-USER> foo [...] i.e. The result is printed and the prompt is printed before the command's output.
I have checked in a fix for this problem. -- Matthias Köppe -- http://www.math.uni-magdeburg.de/~mkoeppe

* Matthias Koeppe <87hcu1aejn.fsf@moose.moosenet> : |> The printing of repl results seems to have changed recently: |> [...] i.e. The result is printed and the prompt is printed before the |> command's output. | | I have checked in a fix for this problem. ;; After this fix, with SWANK:*USE-DEDICATED-OUTPUT-STREAM* set to T, ;; one gets: CL-USER> (format *standard-output* "foo~%") NIL foo ;; However with SWANK:*USE-DEDICATED-OUTPUT-STREAM* set to NIL, one ;; gets: CL-USER> (format *standard-output* "foo~%") foo NIL Which is the desired result. I'm afraid I still haven't found answers to the questions I raised elsewhere in this thread, in the message with the following headers: Message-ID: <m3bqkgvoxi.fsf@robolove.meer.net> Date: Tue, 30 Jan 2007 15:04:01 +0530 Archived-At: <http://permalink.gmane.org/gmane.lisp.slime.devel/5932> And would appreciate your comments on this. -- Regards Madhu

[Correction in Message-ID details below:] * Madhu <m3fy6stjmw.fsf@robolove.meer.net> : | * Matthias Koeppe <87hcu1aejn.fsf@moose.moosenet> : | |> The printing of repl results seems to have changed recently: | |> [...] i.e. The result is printed and the prompt is printed before the | |> command's output. | | | | I have checked in a fix for this problem. | | ;; After this fix, with SWANK:*USE-DEDICATED-OUTPUT-STREAM* set to T, | ;; one gets: | | CL-USER> (format *standard-output* "foo~%") | NIL | foo | | ;; However with SWANK:*USE-DEDICATED-OUTPUT-STREAM* set to NIL, one | ;; gets: | | CL-USER> (format *standard-output* "foo~%") | foo | NIL | | Which is the desired result. I'm afraid I still haven't found answers | to the questions I raised elsewhere in this thread, in the message | with the following headers: | Message-ID: <m3bqkgvoxi.fsf@robolove.meer.net> | Date: Tue, 30 Jan 2007 15:04:01 +0530 | Archived-At: <http://permalink.gmane.org/gmane.lisp.slime.devel/5932> Archived-At: <http://permalink.gmane.org/gmane.lisp.slime.devel/5969> Date: Fri, 02 Feb 2007 09:58:38 +0530 Message-ID: <m3hcu589op.fsf@robolove.meer.net> | And would appreciate your comments on this. -- Regards Madhu
participants (4)
-
Gábor Melis
-
Jeffrey Cunningham
-
Madhu
-
Matthias Koeppe