mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-07-04 00:30:30 +02:00
* guile-readline/ice-9/readline.scm: Import hooks and reader modules. (activate-readline): Install via set-repl-reader!. * module/ice-9/boot-9.scm (abort-hook, before-backtrace-hook) (after-backtrace-hook): Move to (ice-9 scm-style-repl). (before-error-hook, after-error-hook, before-read-hook) (after-read-hook, before-eval-hook, after-eval-hook) (before-print-hook, after-print-hook, exit-hook): Move to (system repl hooks). (repl-reader): Move to (system repl reader). * module/system/repl/hooks.scm: * module/system/repl/reader.scm: New files. * am/bootstrap.am (SOURCES): Add the new files. * module/system/repl/repl.scm: * module/system/repl/server.scm: * module/system/vm/inspect.scm: * module/system/repl/error-handling.scm: * module/system/repl/debug.scm: * module/system/repl/common.scm: * module/system/repl/command.scm: * module/ice-9/top-repl.scm: * module/ice-9/scm-style-repl.scm: * module/ice-9/history.scm: * module/ice-9/deprecated.scm: Adapt to import new modules.
46 lines
1.5 KiB
Scheme
46 lines
1.5 KiB
Scheme
;;; Copyright (C) 2025 Free Software Foundation, Inc.
|
||
;;;
|
||
;;; This library is free software: you can redistribute it and/or modify
|
||
;;; it under the terms of the GNU Lesser General Public License as
|
||
;;; published by the Free Software Foundation, either version 3 of the
|
||
;;; License, or (at your option) any later version.
|
||
;;;
|
||
;;; This library is distributed in the hope that it will be useful, but
|
||
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
;;; Lesser General Public License for more details.
|
||
;;;
|
||
;;; You should have received a copy of the GNU Lesser General Public
|
||
;;; License along with this program. If not, see
|
||
;;; <http://www.gnu.org/licenses/>.
|
||
|
||
;;; Commentary:
|
||
;;;
|
||
;;;
|
||
;;; Code:
|
||
|
||
|
||
(define-module (system repl hooks)
|
||
;; FIXME: #:export instead of #:replace once deprecated code is
|
||
;; removed.
|
||
#:replace (before-error-hook
|
||
after-error-hook
|
||
before-read-hook
|
||
after-read-hook
|
||
before-eval-hook
|
||
after-eval-hook
|
||
before-print-hook
|
||
after-print-hook
|
||
exit-hook))
|
||
|
||
(define before-error-hook (make-hook))
|
||
(define after-error-hook (make-hook))
|
||
|
||
(define before-read-hook (make-hook))
|
||
(define after-read-hook (make-hook))
|
||
(define before-eval-hook (make-hook 1))
|
||
(define after-eval-hook (make-hook 1))
|
||
(define before-print-hook (make-hook 1))
|
||
(define after-print-hook (make-hook 1))
|
||
|
||
(define exit-hook (make-hook))
|