.
original commit: e8b1a97158ca6a6720423c96888191da08c51303
This commit is contained in:
parent
d3b1690a46
commit
fb5f0c2d47
|
@ -27,12 +27,12 @@
|
|||
(define arrow-cursor (make-object cursor% 'arrow))
|
||||
|
||||
(define-values (up-bitmap down-bitmap up-click-bitmap down-click-bitmap)
|
||||
(with-handlers ([not-break-exn? (lambda (x)
|
||||
(values
|
||||
(make-object bitmap% 10 10)
|
||||
(make-object bitmap% 10 10)
|
||||
(make-object bitmap% 10 10)
|
||||
(make-object bitmap% 10 10)))])
|
||||
(with-handlers ([exn:fail? (lambda (x)
|
||||
(values
|
||||
(make-object bitmap% 10 10)
|
||||
(make-object bitmap% 10 10)
|
||||
(make-object bitmap% 10 10)
|
||||
(make-object bitmap% 10 10)))])
|
||||
(values
|
||||
(make-object bitmap% (build-path (collection-path "icons") "turn-up.gif"))
|
||||
(make-object bitmap% (build-path (collection-path "icons") "turn-down.gif"))
|
||||
|
|
|
@ -1454,7 +1454,7 @@
|
|||
(let ([t (wx:eventspace-handler-thread e)])
|
||||
(or t
|
||||
;; eventspace dead, or just no thread, yet?
|
||||
(with-handlers ([not-break-exn?
|
||||
(with-handlers ([exn:fail?
|
||||
(lambda (x)
|
||||
(if (wx:eventspace-shutdown? e)
|
||||
(raise-mismatch-error
|
||||
|
@ -7588,12 +7588,12 @@
|
|||
(lambda (file line col ppos)
|
||||
(if (is-a? the-snip wx:snip%)
|
||||
(if (is-a? the-snip readable-snip<%>)
|
||||
(with-handlers ([exn:special-comment?
|
||||
(with-handlers ([special-comment?
|
||||
(lambda (exn)
|
||||
;; implies "done"
|
||||
(next-snip empty-string)
|
||||
(raise exn))]
|
||||
[not-break-exn?
|
||||
[void
|
||||
(lambda (exn)
|
||||
;; Give up after an exception
|
||||
(next-snip empty-string)
|
||||
|
@ -7691,7 +7691,7 @@
|
|||
(let loop ()
|
||||
;; Wrap regexp check with `with-handlers' in case the file
|
||||
;; starts with non-text input
|
||||
(when (with-handlers ([not-break-exn? (lambda (x) #f)])
|
||||
(when (with-handlers ([exn:fail? (lambda (x) #f)])
|
||||
(regexp-match-peek #rx"^#!" p))
|
||||
;; Throw away chars/specials up to eol,
|
||||
;; and continue if line ends in backslash
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
[(_ orig-stx source path-spec)
|
||||
(let* ([c-file (resolve-path-spec #'path-spec #'source #'orig-stx #'build-path)]
|
||||
[content
|
||||
(with-handlers ([not-break-exn?
|
||||
(with-handlers ([exn:fail?
|
||||
(lambda (exn)
|
||||
(error 'include-bitmap
|
||||
"could not load ~e: ~a"
|
||||
|
|
Loading…
Reference in New Issue
Block a user