mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-11 22:31:12 +02:00
define* in repl-reader
* module/ice-9/boot-9.scm (repl-reader): Use define*.
This commit is contained in:
parent
d9113d47c6
commit
17ee350cb2
1 changed files with 2 additions and 5 deletions
|
@ -3057,15 +3057,12 @@ module '(ice-9 q) '(make-q q-length))}."
|
|||
;;; The default repl-reader function. We may override this if we've
|
||||
;;; the readline library.
|
||||
(define repl-reader
|
||||
(lambda (prompt . reader)
|
||||
(lambda* (prompt #:optional (reader (fluid-ref current-reader)))
|
||||
(if (not (char-ready?))
|
||||
(display (if (string? prompt) prompt (prompt))))
|
||||
(force-output)
|
||||
(run-hook before-read-hook)
|
||||
((or (and (pair? reader) (car reader))
|
||||
(fluid-ref current-reader)
|
||||
read)
|
||||
(current-input-port))))
|
||||
((or reader read) (current-input-port))))
|
||||
|
||||
(define (scm-style-repl)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue