mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-24 21:50:20 +02:00
* * boot-9.scm (using-readline?): New procedure: Returns #t if
readline is used by the repl run by this thread. (handle-system-error): Print "Backtrace:" before backtrace since this is no longer done by display-backtrace.
This commit is contained in:
parent
6373eb6f4e
commit
755457ec4a
1 changed files with 7 additions and 0 deletions
|
@ -2580,6 +2580,7 @@
|
|||
((memq 'backtrace (debug-options-interface))
|
||||
(run-hook before-backtrace-hook)
|
||||
(newline cep)
|
||||
(display "Backtrace:\n")
|
||||
(display-backtrace (fluid-ref the-last-stack) cep)
|
||||
(newline cep)
|
||||
(run-hook after-backtrace-hook)))
|
||||
|
@ -2969,6 +2970,12 @@
|
|||
;; (set-current-output-port outp)
|
||||
;; (set-current-error-port errp)
|
||||
|
||||
(define using-readline?
|
||||
(let ((using-readline? (make-fluid)))
|
||||
(make-procedure-with-setter
|
||||
(lambda () (fluid-ref using-readline?))
|
||||
(lambda (v) (fluid-set! using-readline? v)))))
|
||||
|
||||
;; this is just (scm-style-repl) with a wrapper to install and remove
|
||||
;; signal handlers.
|
||||
(define (top-repl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue