Commit Graph

25704 Commits

Author SHA1 Message Date
Matthew Flatt
1394f0eb7d macro-expander fix
The "simpliciation" of a syntax object's lexical context was dropping
module contexts that have no bindings, but those contexts now
contribute to the identifty of some bindings. Fix simplification
to replace the full rename rename with a simplified one, instead
of just dropping it.

Merge to v5.3
(cherry picked from commit 73e07f576b)
2012-07-20 14:32:48 -04:00
Eli Barzilay
c3fb6d7548 New Racket version 5.2.900. 2012-07-19 13:55:31 -04:00
Sam Tobin-Hochstadt
7468ae4e3c Document Struct.
Merge to release.
(cherry picked from commit a589d02751)
2012-07-19 12:53:53 -04:00
Matthew Flatt
5bd2ce24d9 fix related to module name resolver change
(cherry picked from commit 9413b30599)
2012-07-19 12:53:46 -04:00
Matthew Flatt
8c010ee190 collapse Racket history for v5.3 release
Merge to v5.3
(cherry picked from commit 27d729c3ff)
2012-07-19 12:53:42 -04:00
Robby Findler
f5ff23c00c bring back drscheme/private/number-snip.ss since it may
appear in saved wxme format files

also, improve the testing support for testing snip loading
(before this, the testing infrastructure could let one test
"leak" into another one in a way that could mask failures)

please include in release branch
(cherry picked from commit b342009e71)
2012-07-19 12:53:36 -04:00
Robby Findler
4e872ea198 fixed repl-test-misc.rkt for the error message changes
please include on the release branch
(cherry picked from commit ef5c2b825f)
2012-07-19 12:53:28 -04:00
Eli Barzilay
828452045a Fix typo from commit 12a4ee8.
(cherry picked from commit 36ee9f9bbd)
2012-07-19 12:53:24 -04:00
Eli Barzilay
6e878f99fd Disable the #:before-first' and #:after-last' functionality in `add-between'.
Leave it working in splicing mode.  I prefer doing that over always
splicing them, since that would make a less uniform interface, so I
rather keep all options open.  There is no longer a `#:nothing' keyword,
which is the main point of this downgrade.

(See mailing list discussion on "no-argument" for the reason.)
(cherry picked from commit 6565538b09)
2012-07-19 12:53:20 -04:00
Eli Barzilay
601c90541d Make it possible to use "~" or "~user" in the installer.
I've looked for a while, and it seems that there is no easy way to do
this, not even in bash, and worse with /bin/sh.  So this is kind of
resorting to a simple parsing of the input, and using `eval' if it
starts with a tilde.  Note the hack of not doing that when there is a
space, otherwise the `eval' thing will silently ignore it.

This hack means that it's easy to get into a mess if quotes are used
after a tilde, but that was already the case with the use of `eval' to
handle environment variables.  It's not a real security issue, however,
since we're talking about a user who can just run any command anyway.

Also including a test file for the expansion functionality.  If anyone
wants to improve this code, making the tests pass would reveal the
tricky issues.

[FWIW, I've asked on the #bash channel, and the only serious suggestion
was getting the paths as command-line arguments.  This will, however,
defeat the point of being newbie friendly...]

Closes PR 12893.
(cherry picked from commit 0814fd5fb5)
2012-07-19 12:53:15 -04:00
Eli Barzilay
9ba9ffb957 Add missing meta information for the new "future-visualizer" collection.
(cherry picked from commit 1635ac1bc5)
2012-07-19 12:53:10 -04:00
Matthew Flatt
a0f7f72780 racket/gui/init: fix load handler
(cherry picked from commit b111241afe)
2012-07-19 12:53:05 -04:00
Matthew Flatt
66f5696400 typo
(cherry picked from commit a3b316c02f)
2012-07-19 12:53:00 -04:00
Robby Findler
7f96a5c228 module lang test now up to date with error message changes
please include in release branch
(cherry picked from commit 17594ec804)
2012-07-19 12:52:55 -04:00
Robby Findler
d53e53f837 adjusted the repl test suite for the new error messages
and the change to the racket/gui load-handler

(unfortunately, there is still another problem that keeps
the test suite from passing)

please merge to the release branch
(cherry picked from commit d8204b1624)
2012-07-19 12:52:50 -04:00
Robby Findler
4d15bcbaca bring the language test up to date with the latest error messages
include in the release branch, please
(cherry picked from commit 8744cd7811)
2012-07-19 12:52:43 -04:00
Ryan Culpepper
8992b82e04 Revert "Moved some mzlib library implementations to racket"
This reverts commit 403aaac7d4.

Conflicts:
	collects/racket/place.rkt
2012-07-19 12:51:14 -04:00
Ryan Culpepper
88a2382ecd Revert "Fix unit test broken by mzlib movement"
This reverts commit 3158acd61d.
2012-07-19 12:49:21 -04:00
Ryan Culpepper
6f2f7e7b88 Revert "Update props file for racket/private/shared-body.rkt"
This reverts commit 68d550e2c3.
2012-07-19 12:49:13 -04:00
Ryan Culpepper
18b8e8367b Revert "doc fixups for struct' variants in scheme/unit', etc."
This reverts commit 3ded3934ee.
2012-07-19 12:48:48 -04:00
Eli Barzilay
59353fbc0b Fix version string 2012-07-18 20:43:07 -04:00
Ryan Culpepper
d15edaf6cc Alpha version number for the v5.3 release 2012-07-17 19:20:47 -04:00
Matthew Flatt
6b3e207ecd fix related to recent module-resolver change 2012-07-17 15:32:42 -06:00
Matthew Flatt
949d12e2c6 revert use of lazy-require' in racket/match' implementation
Using `lazy-require' under `begin-for-syntax' expands to a use of
`define-runtime-path' under `begin'for-syntax'. Unfortunately,
`define-runtime-path' doesn't yet work with `raco exe' when it
appears under `begin-for-syntax'. Although `define-runtime-path'
should be fixed, it may take a while. Meanwhile, reverting the
change allows programs that require `racket/gui/base' to work
with `raco exe'.

There's another `lazy-require' under `begin-for-syntax' that
doesn't seem to cause the same trouble, though.
2012-07-17 15:32:42 -06:00
Robby Findler
3b5eb1da41 add a View menu item for the optimization coach 2012-07-17 13:45:33 -05:00
Robby Findler
a66c735b82 removed the check syntax mode support 2012-07-17 13:07:41 -05:00
Robby Findler
3463f4233e adjust the contract obligation aspect of check syntax
so that it uses tooltips instead of the modes

(so hopefully now people will actually see it ...)
2012-07-17 13:07:41 -05:00
Robby Findler
160eef8366 added a tooltip for set!'d variables 2012-07-17 13:07:41 -05:00
Robby Findler
36aeda60a4 fix sizing bug in tooltip windows 2012-07-17 13:07:41 -05:00
Robby Findler
70fac182c6 Add support to the show menu item to make ordering the items
simpler.

Use that support to adjust the Show menu to have a better
ordering for the built-in DrRacket items.
2012-07-17 13:07:41 -05:00
Robby Findler
83bae29b21 remove the "dock/undock test report" menu items from the show menu
(there are buttons in the window and this isn't really a show menu
type of thing)
2012-07-17 13:07:41 -05:00
Robby Findler
488cfed53a typo 2012-07-17 13:07:40 -05:00
Matthew Flatt
3ded3934ee doc fixups for struct' variants in scheme/unit', etc. 2012-07-17 11:00:46 -06:00
Matthew Flatt
67936fcc52 fix prop 2012-07-17 10:20:07 -06:00
Matthew Flatt
5e4866e54c fill in one more corner of submodules and `namespace-attach-module'
When submodules are not independently loaded, then pull submodule
declarations along when attaching a module to a namespace.
2012-07-17 10:16:32 -06:00
Matthew Flatt
c8f4ac6ae4 submodules: make .zo path stick for consistent independent loading
When a module is loaded from bytecode and then the value of
`use-compiled-file-paths' changes, an attempt to load a submodule
would fail, because source isn't used if the main module is
already declared, and the bytecode code is not used according to
`use-compiled-file-paths'. Make the bytecode path stick when it
is used once, so that submodule loads succeed, and make it work
even with `namespace-module-attach'.

The module-attach part of this protocol requires a change to the
API of a module name resolver: the notification mode gets two
arguments, instead of one, where the second argument is an
environment.
2012-07-17 09:47:05 -06:00
Matthew Flatt
cc2c701a7d racket/gui/init: make load handler chain to original
For a non-WXME file, fall back to the original load handler,
instead of re-implementing it. This makes module caching work
the right way. Falling back to the original means closing
the port and then re-opening the file to load, but that seems
ok.
2012-07-17 06:19:15 -06:00
Matthew Flatt
5f1c8d3ec9 Revert "racket/gui/init: module caching in the load handler"
This reverts commit 5c02b1c95a.

The caching table doesn't hold entries weakly, which means that
it can be a space leak.
2012-07-17 06:11:35 -06:00
Matthew Flatt
12a4ee8d98 FFI repairs for 64-bit big-endian
Again; missed pieces for b3c721a346.
2012-07-17 06:07:40 -06:00
Sam Tobin-Hochstadt
0c9bd915bc Fix error message for find-system-path.
Closes PR 12916.
2012-07-17 07:40:46 -04:00
Sam Tobin-Hochstadt
22904ef43e Use lazy instead of delay, as recommended by Eli. 2012-07-17 07:11:23 -04:00
Matthew Flatt
b3c7210a34 FFI repairs for 64-bit big-endian
Based on a patch supplied by Stephen Lewis
2012-07-16 19:22:31 -06:00
Matthew Flatt
8718a5dd62 doc and error-message fixes for module name resolver 2012-07-16 19:22:30 -06:00
Matthew Flatt
5c02b1c95a racket/gui/init: module caching in the load handler 2012-07-16 19:22:30 -06:00
Sam Tobin-Hochstadt
8358420fcc Use unstable/lazy-require to dynamically-load the compile-time of match. 2012-07-16 16:39:26 -04:00
James Swaine
b987be068e Move racket/future/visualizer, racket/future/trace --> future-visualizer, future-visualizer/trace 2012-07-16 12:23:46 -05:00
Matthew Flatt
a605183a0a more submodule repairs for `raco exe' 2012-07-16 10:02:13 -06:00
Eric Dobson
9dac995e36 Fix things broken by bad rebasing. 2012-07-15 19:21:26 -04:00
Eric Dobson
1df6165e9f Clean up of typechecking for heterogeneous vectors and structs. 2012-07-15 19:21:26 -04:00
Eric Dobson
dd078dcb95 Clean up of tc-app.rkt. 2012-07-15 19:21:26 -04:00