mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-06 23:50:18 +02:00
* boot-9.scm (exit-hook): New hook: Is run at the very end of an
interactive session.
This commit is contained in:
parent
20a3a88153
commit
2055a1bcd3
1 changed files with 7 additions and 1 deletions
|
@ -2936,7 +2936,9 @@
|
|||
(lambda ()
|
||||
(set-readline-prompt! "")
|
||||
(set-readline-read-hook! #f)))))))
|
||||
(scm-style-repl))
|
||||
(let ((status (scm-style-repl)))
|
||||
(run-hooks exit-hook)
|
||||
status))
|
||||
|
||||
;; call at exit.
|
||||
(lambda ()
|
||||
|
@ -2954,6 +2956,10 @@
|
|||
`(catch #t (lambda () ,expr)
|
||||
(lambda args #f)))
|
||||
|
||||
;;; This hook is run at the very end of an interactive session.
|
||||
;;;
|
||||
(define exit-hook '())
|
||||
|
||||
;;; Load readline code into root module if readline primitives are available.
|
||||
;;;
|
||||
;;; Ideally, we wouldn't do this until we were sure we were actually
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue