From 8c81c2389bc779a62cc579ca58da845ff189f1f6 Mon Sep 17 00:00:00 2001
From: ram <ram>
Date: Tue, 28 Dec 1993 16:54:01 +0000
Subject: [PATCH] Changed query-readline to be a function & to force output.

---
 code/query.lisp | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/code/query.lisp b/code/query.lisp
index 2a5efca2f..9206a97ca 100644
--- a/code/query.lisp
+++ b/code/query.lisp
@@ -7,7 +7,7 @@
 ;;; Scott Fahlman or slisp-group@cs.cmu.edu.
 ;;;
 (ext:file-comment
-  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/query.lisp,v 1.3 1991/02/14 19:03:24 ram Exp $")
+  "$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/code/query.lisp,v 1.4 1993/12/28 16:54:01 ram Exp $")
 ;;;
 ;;; **********************************************************************
 ;;;
@@ -25,9 +25,10 @@
 
 (export '(y-or-n-p yes-or-no-p))
 
-(eval-when (compile)
-  (defmacro query-readline ()
-    `(string-trim " 	" (read-line *query-io*))))
+(defun query-readline ()
+  (force-output *query-io*)
+  (string-trim " 	" (read-line *query-io*)))
+
 
 ;;; Y-OR-N-P  --  Public.
 ;;;
@@ -38,8 +39,7 @@
    enter any other characters."
   (when format-string
     (fresh-line *query-io*)
-    (apply #'format *query-io* format-string arguments)
-    (force-output *query-io*))
+    (apply #'format *query-io* format-string arguments))
   (loop
     (let* ((line (query-readline))
 	   (ans (if (string= line "")
-- 
GitLab