Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions drracket-test/tests/drracket/example-tool.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
(define new-collection-root
#;
(string->path "C:\\tmp")
(make-temporary-file "drracket-test-example-tool~a"
'directory))
(make-temporary-directory "drracket-test-example-tool~a"))
(define coll (build-path new-collection-root "coll"))
(unless (directory-exists? coll) (make-directory coll))

Expand Down
12 changes: 5 additions & 7 deletions drracket-test/tests/drracket/no-write-and-frame-leak.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,11 @@ This test checks:
(process-container item)))))

(define (record-shortcut item)
(when (is-a? item selectable-menu-item<%>)
(when (send item get-shortcut)
(define k (append (sort (send item get-shortcut-prefix)
string<=?
#:key symbol->string)
(list (send item get-shortcut))))
(hash-update! shortcuts k (λ (v) (cons (send item get-label) v)) '()))))
(when (and (is-a? item selectable-menu-item<%>) (send item get-shortcut))
(define k
(append (sort (send item get-shortcut-prefix) string<=? #:key symbol->string)
(list (send item get-shortcut))))
(hash-update! shortcuts k (λ (v) (cons (send item get-label) v)) '())))

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not digging this change; the and seems harder to read, as does new set of line breaks.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The line breaks are fmt's doing. As for the when merging, I think I'll try adjusting that rule to only fire if there's three or more nested when forms. That seems more likely to be an improvement when it applies.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've filed jackfirth/resyntax#639 to address this.

(define (get-lab item)
(cond
Expand Down