mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-09 21:40:33 +02:00
ice-9 history integration
* module/system/repl/repl.scm (start-repl): (ice-9 history) integration via the before-eval-hook and the before-print-hook.
This commit is contained in:
parent
3a6f6678cf
commit
ccbbbe6d70
1 changed files with 7 additions and 2 deletions
|
@ -59,9 +59,14 @@
|
|||
(else
|
||||
(catch 'vm-error
|
||||
(lambda ()
|
||||
(call-with-values (lambda () (repl-eval repl exp))
|
||||
(call-with-values (lambda ()
|
||||
(run-hook before-eval-hook exp)
|
||||
(repl-eval repl exp))
|
||||
(lambda l
|
||||
(for-each (lambda (v) (repl-print repl v)) l))))
|
||||
(for-each (lambda (v)
|
||||
(run-hook before-print-hook v)
|
||||
(repl-print repl v))
|
||||
l))))
|
||||
(lambda (key fun msg args)
|
||||
(display "ERROR: ")
|
||||
(apply format #t msg args)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue