Skip to content

Commit

Permalink
Use standard syntax when reading input in ccl:select-item-from-list
Browse files Browse the repository at this point in the history
Closes Clozure#206.
  • Loading branch information
xrme committed Apr 22, 2019
1 parent a2fc47e commit 88daad4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/misc.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -754,8 +754,10 @@ are running on, or NIL if we can't find any useful information."
(fresh-line *query-io*)
(let* ((string (get-string-from-user "Selection [number,q,r,?]:"))
(value (ignore-errors
(let* ((*package* *keyword-package*))
(read-from-string string nil)))))
(with-standard-io-syntax
(let ((*read-eval* nil)
(*package* *keyword-package*))
(read-from-string string nil))))))
(cond ((eq value :q) (throw :cancel t))
((eq value :r) (throw :redisplay t))
((eq value :?)
Expand Down

0 comments on commit 88daad4

Please sign in to comment.