added an exception catch

svn: r8473

original commit: 95f3915f6cfe917420a8d87b5c52db2fe8b32dda
This commit is contained in:
Robby Findler 2008-01-30 05:16:52 +00:00
parent 7052a0cd36
commit 13681c49c5

View File

@ -1018,8 +1018,9 @@
(define/override (editing-this-file? filename)
(let ([path-equal?
(λ (x y)
(equal? (normal-case-path (normalize-path x))
(normal-case-path (normalize-path y))))])
(with-handlers ((exn:fail:filesystem? (λ (x) #f)))
(equal? (normal-case-path (normalize-path x))
(normal-case-path (normalize-path y)))))])
(let ([this-fn (get-filename)])
(and this-fn
(path-equal? filename (get-filename))))))