*general-display-prefix* not inserted after questions
Subject: *general-display-prefix* not inserted after questions
From: Andrey G. Grozin
Date: Mon, 21 Nov 2005 16:25:00 +0600 (NOVT)
Hello *,
I've just filed a bug number 1362658, with a proposed fix. The patch to
macsys.lisp is
--- macsys.lisp.orig 2005-11-21 02:56:03.000000000 +0100
+++ macsys.lisp 2005-11-21 15:16:52.000000000 +0100
@@ -278,9 +278,10 @@
(princ *prompt-prefix*)
(displa msg)
(princ *prompt-suffix*)
(mterpri)))
- (mread-noprompt *query-io* nil))
+ (let ((res (mread-noprompt *query-io* nil)))
+ (princ *general-display-prefix*) res))
(defmfun $read (&rest l)
(meval (apply #'$readonly l)))
Can this be done simpler, without (let ...) ? Should I use
(format t "~a" *general-display-prefix*) instead of princ?
(I don't know how these things behave when maxima is using something other
than stdin/stdout for reading/writing). Finally, is this the natural place
for this fix, or it's better to patch mread-noprompt ?
I'd like the gurus to review this patch and then to apply it (maybe,
modified).
Andrey