1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-09 21:40:33 +02:00

deprecate set-repl-prompt!

* module/ice-9/boot-9.scm:
* module/ice-9/deprecated.scm (set-repl-prompt!): Deprecate, but wrap
  the (system repl common) implementation instead of the scm-style-repl.
This commit is contained in:
Andy Wingo 2010-06-18 11:33:16 +02:00
parent 91037860bd
commit 4f99a49919
2 changed files with 8 additions and 3 deletions

View file

@ -2669,8 +2669,6 @@ module '(ice-9 q) '(make-q q-length))}."
(define *unspecified* (if #f #f))
(define (unspecified? v) (eq? v *unspecified*))
(define (set-repl-prompt! v) (set! scm-repl-prompt v))
(define (default-pre-unwind-handler key . args)
;; Narrow by two more frames: this one, and the throw handler.
(save-stack 2)

View file

@ -53,7 +53,8 @@
collect
assert-repl-silence
assert-repl-print-unspecified
assert-repl-verbosity)
assert-repl-verbosity
set-repl-prompt!)
#:replace (module-ref-submodule module-define-submodule!))
@ -588,3 +589,9 @@ better yet, use the repl from `(system repl repl)'.")
(issue-deprecation-warning
"`assert-repl-verbosity' has moved to `(ice-9 scm-style-repl)'.")
((@ (ice-9 scm-style-repl) assert-repl-verbosity) v))
(define (set-repl-prompt! v)
(issue-deprecation-warning
"`set-repl-prompt!' is deprecated. Use `repl-default-prompt-set!' from
the `(system repl common)' module.")
((@ (system repl common) repl-default-prompt-set!) v))