Skip to content
This repository has been archived by the owner on Jul 23, 2022. It is now read-only.

Commit

Permalink
remove version dependency (fixes #1)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbutterick committed Jun 10, 2016
1 parent b83a09e commit 7903287
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions beautiful-racket-lib/br/main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,12 @@

(require racket/class)
(define (indenter t pos)
(send t compute-racket-amount-to-indent pos (λ(x)
(case x
[("with-pattern" "with-shared-id") 'lambda]
[("define-macro") 'define]
[else #f]))))
(with-handlers ([exn:fail? (λ(exn) #f)]) ; this function won't work until gui-lib 1.26
(send t compute-racket-amount-to-indent pos (λ(x)
(case x
[("with-pattern" "with-shared-id") 'lambda]
[("define-macro") 'define]
[else #f])))))

(define (my-get-info key default default-filter)
(case key
Expand Down
2 changes: 1 addition & 1 deletion beautiful-racket-lib/info.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
(define version "0.01")
(define deps '("base"
"sugar"
["gui-lib" #:version "1.26"])) ; for indenter fix
"gui-lib"))
(define build-deps '("racket-doc" "rackunit-lib" "scribble-lib"))

0 comments on commit 7903287

Please sign in to comment.