(maybe-return-history-cmd cmd cmd-args-string)))
(defun maybe-return-history-cmd (cmd cmd-args-string)
- (format *output* "~&~A" (user-cmd-input cmd))
+ (format *output* "~A~%" (user-cmd-input cmd))
(let ((dont-redo
(when (and (stringp cmd-args-string)
(plusp (length cmd-args-string))
(when (string-equal line "N")
t))
(when line
- (format *output* "~&Type \"y\" for yes or \"n\" for no."))
- (format *output* "~&redo? [y] ")
+ (format *output* "Type \"y\" for yes or \"n\" for no.~%"))
+ (format *output* "redo? [y] ")
(force-output *output*)))))
(if dont-redo
*null-cmd*
(error ()
(format stream "~&Prompt error> "))
(:no-error (prompt)
- (format stream "~&~A" prompt))))))
+ (format stream "~A" prompt))))))
(defun process-cmd (user-cmd)
;; Processes a user command. Returns t if the user-cmd was a top-level
((functionp (user-cmd-func user-cmd))
(add-to-history user-cmd)
(apply (user-cmd-func user-cmd) (user-cmd-args user-cmd))
- (fresh-line)
+ ;;(fresh-line)
t)
(t
(add-to-history user-cmd)
(defpackage #:sb-aclrepl-system (:use #:asdf #:cl))
(in-package #:sb-aclrepl-system)
-;; Work-around for optimization note from EQL specializer
-(declaim (optimize (sb-ext:inhibit-warnings 3)))
-
(defsystem sb-aclrepl
:author "Kevin Rosenberg <kevin@rosenberg.net>"
:description "An AllegroCL compatible REPL"
(defmethod perform ((o test-op) (c (eql (find-system :sb-aclrepl-tests))))
(or (funcall (intern "DO-TESTS" (find-package "SB-RT")))
(error "test-op failed")))
-
-(declaim (optimize (sb-ext:inhibit-warnings 0)))
(results (multiple-value-list (sb-impl::interactive-eval form))))
(unless *noprint*
(dolist (result results)
- (fresh-line)
- (prin1 result)))))
+ ;; Don't fresh-line before a result, since newline was entered by user
+ ;; in *repl-read-form-fun*
+ (prin1 result)
+ (fresh-line)))))
(defun repl-fun (noprint)
(repl :noprint noprint :break-level 0))
;;; checkins which aren't released. (And occasionally for internal
;;; versions, especially for internal versions off the main CVS
;;; branch, it gets hairier, e.g. "0.pre7.14.flaky4.13".)
-"0.8alpha.0.25"
+"0.8alpha.0.26"