original commit: cd321ea291954375d069ae78a3f61580e899645b
This commit is contained in:
Matthew Flatt 2001-12-07 15:51:58 +00:00
parent 4d55ff3b0b
commit 7a34e7ec27

View File

@ -2,6 +2,7 @@
(require (prefix wx: (lib "kernel.ss" "mred" "private")))
(require (lib "class.ss")
(lib "class100.ss")
(lib "file.ss")
(lib "process.ss"))
;;;;;;;;;;;;;;; Constants ;;;;;;;;;;;;;;;;;;;;
@ -5459,7 +5460,9 @@
"not supported by default on this platform"
subpath)]))])
; see if user has overridden defaults
(wx:get-resource "mred" "playcmd" b)
(let ([r (get-preference '|MrEd:playcmd| (lambda () #f))])
(when (and r (string? r))
(set-box! b r)))
((if async? (lambda (x) (process x) #t) system)
(format (unbox b) (expand-path f)))))))