Advertisement
Guest User

Untitled

a guest
Jan 7th, 2021
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.97 KB | None | 0 0
  1. Unstaged changes (1)
  2. modified   module/ice-9/boot-9.scm
  3. @@ -1887,6 +1887,10 @@ non-locally, that exit determines the continuation."
  4.               (_ (default-printer)))
  5.             args))
  6.  
  7. +  (define (unbound-variable-printer . args)
  8. +    (apply scm-error-printer args)
  9. +    ...magic-and-pixie-dust-here...)
  10. +
  11.    (define (syntax-error-printer port key args default-printer)
  12.      (apply (case-lambda
  13.               ((who what where form subform . extra)
  14. @@ -1931,7 +1935,7 @@ non-locally, that exit determines the continuation."
  15.    (set-exception-printer! 'stack-overflow scm-error-printer)
  16.    (set-exception-printer! 'system-error scm-error-printer)
  17.    (set-exception-printer! 'try-again scm-error-printer)
  18. -  (set-exception-printer! 'unbound-variable scm-error-printer)
  19. +  (set-exception-printer! 'unbound-variable unbound-variable-printer)
  20.    (set-exception-printer! 'wrong-number-of-args scm-error-printer)
  21.    (set-exception-printer! 'wrong-type-arg scm-error-printer)
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement