Macro stepper: show error message for interrupted expansion
svn: r7891 original commit: 1608a90ab031b590a4e5b9432d511efcf9e1898f
This commit is contained in:
parent
5f02ff4a7d
commit
6167d3b5a7
|
@ -93,6 +93,13 @@
|
||||||
(with-unlock -text
|
(with-unlock -text
|
||||||
(send -text insert text)))
|
(send -text insert text)))
|
||||||
|
|
||||||
|
(define/public (add-error-text text)
|
||||||
|
(with-unlock -text
|
||||||
|
(let ([a (send -text last-position)])
|
||||||
|
(send -text insert text)
|
||||||
|
(let ([b (send -text last-position)])
|
||||||
|
(send -text change-style error-text-style a b)))))
|
||||||
|
|
||||||
(define/public (add-clickback text handler)
|
(define/public (add-clickback text handler)
|
||||||
(with-unlock -text
|
(with-unlock -text
|
||||||
(let ([a (send -text last-position)])
|
(let ([a (send -text last-position)])
|
||||||
|
@ -200,6 +207,12 @@
|
||||||
(send sd set-delta-foreground "blue")
|
(send sd set-delta-foreground "blue")
|
||||||
sd))
|
sd))
|
||||||
|
|
||||||
|
(define error-text-style
|
||||||
|
(let ([sd (new style-delta%)])
|
||||||
|
(send sd set-delta 'change-italic)
|
||||||
|
(send sd set-delta-foreground "red")
|
||||||
|
sd))
|
||||||
|
|
||||||
;; Specialized classes for widget
|
;; Specialized classes for widget
|
||||||
|
|
||||||
(define widget-keymap%
|
(define widget-keymap%
|
||||||
|
|
Loading…
Reference in New Issue
Block a user