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:
parent
91037860bd
commit
4f99a49919
2 changed files with 8 additions and 3 deletions
|
@ -2669,8 +2669,6 @@ module '(ice-9 q) '(make-q q-length))}."
|
||||||
(define *unspecified* (if #f #f))
|
(define *unspecified* (if #f #f))
|
||||||
(define (unspecified? v) (eq? v *unspecified*))
|
(define (unspecified? v) (eq? v *unspecified*))
|
||||||
|
|
||||||
(define (set-repl-prompt! v) (set! scm-repl-prompt v))
|
|
||||||
|
|
||||||
(define (default-pre-unwind-handler key . args)
|
(define (default-pre-unwind-handler key . args)
|
||||||
;; Narrow by two more frames: this one, and the throw handler.
|
;; Narrow by two more frames: this one, and the throw handler.
|
||||||
(save-stack 2)
|
(save-stack 2)
|
||||||
|
|
|
@ -53,7 +53,8 @@
|
||||||
collect
|
collect
|
||||||
assert-repl-silence
|
assert-repl-silence
|
||||||
assert-repl-print-unspecified
|
assert-repl-print-unspecified
|
||||||
assert-repl-verbosity)
|
assert-repl-verbosity
|
||||||
|
set-repl-prompt!)
|
||||||
|
|
||||||
#:replace (module-ref-submodule module-define-submodule!))
|
#:replace (module-ref-submodule module-define-submodule!))
|
||||||
|
|
||||||
|
@ -588,3 +589,9 @@ better yet, use the repl from `(system repl repl)'.")
|
||||||
(issue-deprecation-warning
|
(issue-deprecation-warning
|
||||||
"`assert-repl-verbosity' has moved to `(ice-9 scm-style-repl)'.")
|
"`assert-repl-verbosity' has moved to `(ice-9 scm-style-repl)'.")
|
||||||
((@ (ice-9 scm-style-repl) assert-repl-verbosity) v))
|
((@ (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))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue