The other handler is meant for type name environments.
In practice, this should never come up in the current
codebase, but extensions that use `lookup-type` could
rely on it.
Seems to work for Mac OS X 10.9 (Mavericks), at least.
In Retina mode, a drawing unit corresponds to two pixels on
the screen or in a bitmap created by `make-screen-bitmap'.
In particular, a bitmap created by `make-screen-bitmap' is
actually twice as big in each dimension as requested, and the
bitmap is scaled when transferring to other drawing contexts.
When transferring onto the screen, scalings cancel so that the
result looks right.
Adds `get-display-backing-scale` to `racket/gui/base`, and
also `get-backing-scale` to `bitmap%`.
To do: add a way to set the backing scale of a bitmap. That
option will provide a way to give controls higher-resolution
bitmaps as labels.
This has no effect on the truth table, but affects
side effects. It shouldn't actually matter because
`check-all-registered-types` is not called in the
TR top-level anyway, but this seems safer.
Make sure it's at the end of the `raco setup` command line, and set
the executable name to "raco" instead of "raco setup" so that the `-l`
flag is effectively implied.
When files passed to the default application-file handler cannot be delivered
because no frame is active or the frame does not accept files, then retry
when the active frame changes in the future (in addition to when the
application-file handler itself is changed).
This adjustment should fix a long-standing problem where files are
not delivered to DrRacket on Mac OS X.
specifically:
- make <menukey>-9 always go to the last tab
(following chrome, as suggested by Jens Axel)
- make the <menukey>-1 thru <menukey>-9 menu items
always be present in the menu, even when there aren't
tabs, so that the shortcuts always appear taken
(and so that cmd-4 never inserts a 4 into your buffer)
No need to limit ourselves to x86.
Regardless of architecture, sun_path is always 108 bytes long on Linux.
Signed-off-by: Jan Dvořák <mordae@anilinux.org>
Improves tests/typed-racket/succeed/new-metrics.rkt by about 33% overall runtime.
Major changes include:
- Handling memoization entirely inside the `subtype*` function.
- Remembering only previously seen pairs of types when one of them
might be a recursive type (such as Mu or a structure).
Thanks to Ryan Newtown for this this idea, which enables the
previous change as well.
- Doing as much as possible without touching parameters.
(Unfortunately, not as much as I hoped was possible here).
- Replacing uses of => in `match` with #:when (written for this purpose).
- Significant improvement to the `Type-key` system so that it is
useful much more often.
- Use of unsafe operations.
- Minor optimizations to a few other operations.