Commit Graph

20546 Commits

Author SHA1 Message Date
Matthew Flatt
4314b2ac28 make OpenGL gears example report a good error on failure 2011-11-03 17:42:36 -06:00
Matthew Flatt
0f6c267798 add #:fail argument to with-gl-context' in canvas%' 2011-11-03 17:42:36 -06:00
Matthew Flatt
9bd0486ca0 fix non-tail loop in GL lock manager thread
The non-tail loop would cause the gears example to grandually
slow down, for example.
2011-11-03 17:42:36 -06:00
Robby Findler
b7541c5d1b Revert "IN PROGRESS: starting to fix the repl-test for the new error icons"
This reverts commit 8ec968fe8f.
2011-11-03 17:14:06 -05:00
Robby Findler
d00aed6f1b fix the module reader for the case when there are non-ASCII unicode characters
in comments before the #lang line

also add an #:init-position argument to peeking-input-port
2011-11-03 17:13:17 -05:00
Robby Findler
8ec968fe8f IN PROGRESS: starting to fix the repl-test for the new error icons 2011-11-03 17:13:17 -05:00
Matthew Flatt
4bbb2d41aa cocoa: fix some GL problems 2011-11-03 09:12:13 -06:00
Eli Barzilay
40f3388051 Shuffle the sandbox parameters so they make a bit more sense.
(Specifically, more restrictions come earlier.)
2011-11-02 17:46:40 -04:00
Eli Barzilay
90f7a98dd6 Fix the default `sandbox-make-code-inspector'.
It now creates an inspector based on the original code inspector instead
of the (implicit) wrong default used by `make-inspector'.  Change
`sandbox-make-inspector' too, to make it explicit.
2011-11-02 17:40:24 -04:00
Eli Barzilay
b9bd1db58a Move the namespace creation so that it happens under the code-inspector.
This fixes a security issue where a toplevel evaluator could still use
things like `ffi/unsafe'.
2011-11-02 17:40:24 -04:00
Eli Barzilay
ad934255c5 Capitalize all subsection headers. 2011-11-02 17:40:24 -04:00
Eli Barzilay
8f1a4de253 Document `numeric'; closes PR 12338. 2011-11-02 17:40:24 -04:00
Eli Barzilay
1eec2b75e3 Improve unix installer tester.
* The installer is a command-line argument.

* Make it work in xterm too, by unsetting TERM.

* Works with version-less directories, from release installers.
2011-11-02 17:40:24 -04:00
Matthew Flatt
98cde53fa0 fix rename trans `free-identifier=?' propagation in int-def context
Closes PR 12333
2011-11-02 10:02:19 -06:00
Matthew Flatt
c7a0f1bef8 guard a space-safety test with a 3m check 2011-11-02 08:12:58 -06:00
Matthew Flatt
3885f4683b add missing `render%' init argument doc 2011-11-02 08:12:58 -06:00
Matthew Flatt
8d91efcee4 fix `get-bytevector-all' bug
Closes PR 12327
2011-11-02 08:12:58 -06:00
Matthew Flatt
e361acae0b handin server: add support for HTTPS uploads (when enabled) 2011-11-02 08:12:58 -06:00
Jay McCarthy
8b38c8e933 Changed the exn thrown 2011-11-01 13:01:09 -06:00
Jay McCarthy
6466c480b0 DrDr, test this push 2011-11-01 11:16:47 -06:00
Jay McCarthy
c2065b2128 Improving error messages for non-serializable continuation pieces 2011-11-01 11:16:47 -06:00
Robby Findler
cc86b6f06e disable incremental-keybindings.rkt 2011-11-01 11:33:07 -05:00
Robby Findler
5128f08810 minor docs fix 2011-11-01 09:51:28 -05:00
Ryan Culpepper
98d8acfd4e avoid including lazy-required names in (all-defined-out)
closes PR 12335
2011-10-31 18:19:07 -06:00
Robby Findler
8edfd4e87e add docs for the #:stronger argument to the contract constructors
closes PR 12312
2011-10-31 16:59:19 -05:00
Robby Findler
0ce6c75591 Rackety (mostly letrec-values => define and minimizing dependencies) 2011-10-31 09:14:34 -05:00
Robby Findler
64dfdb3c7f Change the expansion of reduction-relation so that it generates less code
(by expanding into a call to a 30 or so line procedure, instead of putting
that code directly into the result of the macro).

This produces about a 6x speedup on this reduction-relation

  (reduction-relation L (--> 0 1) (--> 1 2) ... (--> 99 100))

where L is

  (define-language L)

The time it takes to run "racket r6rs.rkt" in the shell from the
directory collects/redex/examples/r6rs speeds up by about 10% (15%
with errortrace enabled), in the case where all .zo files are built,
except the ones in the r6rs directory. (Also worth noting that "racket
-l redex" takes more than 50% of that time.) And the change has no
noticeable effect on the time it takes to run r6rs-test.rkt.
2011-10-31 08:53:09 -05:00
Robby Findler
41f68af64a delay the construction of the compatible-closure grammar (the 'cross' thing)
until it is actually used. (This can make a big difference for large grammars
in models that don't actually use the compatible closure stuff.)
2011-10-30 22:36:53 -05:00
Ryan Culpepper
1dade8ee1d db: added support for postgresql arrays 2011-10-30 18:51:16 -06:00
Ryan Culpepper
e2e63684de data/order: added support for transparent structs, added tests 2011-10-30 18:51:16 -06:00
Robby Findler
e362888d6d add a menu item to put the interactions window beside/below the definitions window 2011-10-29 20:56:42 -05:00
Matthew Flatt
d9b9cbe16a fix space-safety bug in composable continuations 2011-10-29 09:37:12 -06:00
Mike Sperber
007927892b Sync German string constants with latest. 2011-10-29 12:06:54 +02:00
Matthew Flatt
506aa79d14 fix editor refresh problem when line numbers are shown
More generally, fix horizontal refresh when an editor has left
padding. Otherwise, deleting a character in DrRacket with line
numbers shown seems sluggish, because the update waits for a
refresh event.
2011-10-28 20:01:19 -06:00
Sam Tobin-Hochstadt
3caf08da43 Fix curried function type parsing without (). 2011-10-28 15:43:29 -04:00
Eli Barzilay
d77a89ac42 Avoid spaces and caps in file names.
(Also fixes a bug, AFAICT, since "SpeechBubble" wasn't uniformly.)
2011-10-28 15:15:17 -04:00
Robby Findler
e9d32dfdff adjust the planet cute images so they cooperate with executable creation better 2011-10-28 13:51:31 -05:00
Robby Findler
f48e12240a clean up the docs for the Planet Cute images 2011-10-28 13:51:31 -05:00
Matthew Flatt
457f4a4f52 another attempt to fix the build script 2011-10-28 06:43:20 -06:00
Matthew Flatt
932ef94cb3 fix contract 2011-10-28 06:43:20 -06:00
Robby Findler
feb3bfc165 adjust the text to match the creative commons license 2011-10-27 19:18:25 -05:00
Robby Findler
dc24fbf62d added the Planet Cute images to the (new) 2htdp/planetcute library 2011-10-27 18:50:59 -05:00
Robby Findler
91866f58c7 shrink the max size of the filename popup menu in drracket
closes PR 12317
2011-10-26 21:10:45 -05:00
Robby Findler
0dff5ca92b special case the four cardinal directions during rotation so they rotate
exactly (this also makes flip-horizontal and flip-vertical work equally
well)

closes PR 12323
2011-10-26 16:36:07 -05:00
Robby Findler
48f9b8895c add documentation for racket/contract/base (also trim some
of the longer lines in the file)

closes PR 12311
2011-10-25 16:16:23 -05:00
Robby Findler
41b8b8142a adjust the colors of the little dot for online check syntax so it
is more informative (one more stage) and it turns green when online
check syntax is finished (instead of being blank in that case)
2011-10-25 16:16:22 -05:00
Sam Tobin-Hochstadt
706198c059 Add `typecheck-fail' form for explicit type errors. 2011-10-25 12:10:58 -07:00
Robby Findler
fb02a0a5cd make list/c produce chaperone contracts, as appropriate
closes PR 12319
2011-10-24 08:16:49 -05:00
Robby Findler
a1654f1532 adjust the implementation of 'contract-out' so that it does some
checking of the syntax (that it can) and then just throws everything
to the end of the module, instead of trying to have it figure out
what the actually provided variables are at the beginning.

closes PR 12295
2011-10-24 08:16:48 -05:00
Jay McCarthy
ab45f4f1db Incorporating section from Mike W 2011-10-24 06:50:47 -06:00
Jon Rafkind
6b519f7b64 [honu] remove extra semicolon from cond 2011-10-23 14:06:12 -06:00
Jon Rafkind
dccdcb0550 [honu] wrap expressions with a semicolon at the end of them in (%semicolon ...) 2011-10-23 14:06:06 -06:00
Jon Rafkind
b055ce9fe0 [honu] wrap blocks inside a definition context (with let) 2011-10-23 13:26:28 -06:00
Robby Findler
6228bc826e adjust the rendering of 2htdp/image examples in the docs to add an extra
pixel on the right and bottom so outline shapes look reasonable

closes PR 12313
2011-10-23 13:16:57 -05:00
Robby Findler
9d371153fd add the #:stop-when argument to apply-reduction-relation* 2011-10-23 12:10:56 -05:00
Eric Hanchrow
23d38b14a4 Add missing word 2011-10-22 20:58:56 -04:00
Eric Hanchrow
723934a608 add an "s" 2011-10-22 20:58:40 -04:00
Eric Hanchrow
b498d6e9e7 add missing word 2011-10-22 20:58:05 -04:00
Vincent St-Amour
edacae9082 Fix benchmark graphs in the presence of the coefficient of variation. 2011-10-22 20:56:18 -04:00
Vincent St-Amour
a40723d14d Don't run benchmarks when only showing what's available. 2011-10-22 20:52:38 -04:00
Vincent St-Amour
a0b987bc1e Improve Guile benchmarking.
Thanks to Andy Wingo for pointers.
2011-10-22 20:52:38 -04:00
Eli Barzilay
7e4eb501c5 Change test to match changed configure output 2011-10-22 07:06:08 -04:00
Matthew Flatt
e71abf5aba Add a tutorial to the FFI overview 2011-10-21 20:34:51 -06:00
Mike Sperber
36d3745d4c Unbreak "Enable signature checking".
Previously, if you disabled it once, it would stay disabled.
2011-10-21 20:43:50 +02:00
Eli Barzilay
0d642cf976 Indicate repl phase level when it's not 0. 2011-10-21 11:13:16 -04:00
Eli Barzilay
d8d79d22b2 Fix the old-style keybinding example. 2011-10-21 11:13:16 -04:00
Sam Tobin-Hochstadt
da5b68fd4d Fix wrapping of null' when provided as Any'.
Reported by 'dingfeng' on #racket.
Please merge to 5.2.
2011-10-21 10:55:57 -04:00
Robby Findler
7acc5b7852 adjust HtDP teaching languages' first and rest so that they accept circular lists.
This commit fix an unintentional change introduced by this commit:
  c7d67f9bab
(and it also adds in test cases for what that commit appears to have
been doing)

Assuming everyone agrees that the behavior for first rest from back
in 2010 is the behavior we still want (and the lack of release notes
on the subject makes me believe that we do), then:

Please include in 5.2.
2011-10-21 08:09:34 -05:00
Matthew Flatt
245f45d183 switch Mac OS X build default (32-bit vs 64-bit) to compiler default
That means the default is 64-bit for a typical Mac OS X 10.6 or 10.7
installation.
2011-10-20 14:30:02 -06:00
Matthew Flatt
a81054fef4 fix a marshaling bug for syntax objects
Closes PR 12300

Merge to 5.2
2011-10-18 20:53:43 -06:00
Carl Eastlund
cc70834024 Made constructed planet links force the minor version for more reliable self-reference. 2011-10-18 16:18:32 -04:00
Carl Eastlund
bb828c312f Fixed a typo (syntax-quote => quote-syntax). 2011-10-18 16:17:54 -04:00
Matthias Felleisen
8f804afcaa adjusted error message checking 2011-10-18 12:36:33 -04:00
Robby Findler
e011633b6f Improve the backtrace window to make it show both the errortrace and the
racket-level stack traces
2011-10-18 10:56:05 -05:00
Matthew Flatt
1e237d56d1 fix `get-char-{width,height}' to use current settings correctly 2011-10-18 09:07:16 -06:00
Matthew Flatt
29c7c28ba5 gtk: fix problems with on-focus' and on-activate' 2011-10-18 06:35:50 -06:00
Matthew Flatt
718229387c fix cocoa `get-clipboard-string' to never return #f; fix docs
Merge to 5.2
2011-10-18 06:35:38 -06:00
Casey Klein
57a8ed5c79 Fixes matching of prefab struct literals
Fixes PR 12298
2011-10-17 19:37:16 -05:00
Robby Findler
4a3997ac1c use the focus table mixin for the autosave window so that drdr tests work right 2011-10-17 17:32:37 -05:00
Matthew Flatt
a09543772a gtk: no freeze/thaw before/after unmap
Merge to 5.2
2011-10-17 15:53:07 -06:00
Eli Barzilay
3b93da83c4 Fix typo in htdp url.
Fixes PR 12282.  (Which was closed prematurely.)
2011-10-17 16:14:04 -04:00
Eli Barzilay
7bff0e888d Remove the unneeded `require' in that example. 2011-10-17 14:32:23 -04:00
Eli Barzilay
c66c669ee3 Remove preference for old-style menu bindings, and instead add a sample
keybindings file that does that.

(This reverts most of commit 26f6c588fcfa45a1a12c275e5824aede8ba23e3e.)
2011-10-17 14:09:26 -04:00
Eli Barzilay
016e6d771c Add an example for old-style keys. 2011-10-17 13:54:54 -04:00
Eli Barzilay
319a158dec Make `create-new-tab' public. 2011-10-17 13:18:18 -04:00
Eli Barzilay
8f66afe5a6 Document next-tab' and prev-tab'. 2011-10-17 13:18:18 -04:00
Eli Barzilay
6a323fe75e Make the example `rebind' more like other rebinds in Emacs and others. 2011-10-17 13:18:17 -04:00
Eli Barzilay
df4a227571 Add sqlite libraries to the `db' spec. 2011-10-17 13:18:17 -04:00
Rodolfo Carvalho
f43405543a Add missing word 'one', clarify behavior of the 'semi-or-amp mode. 2011-10-17 13:18:17 -04:00
Robby Findler
f2b5538b56 improved the known-good-contract? predicate by including more known
contracts and speeding it up
2011-10-17 08:47:33 -05:00
Robby Findler
1bedd9a9f6 make provide/contract generate only one definition to bind the positive
module name, instead of one per clause the in the provide/contract
declaration

do not include in 5.2
2011-10-17 08:47:33 -05:00
Matthias Felleisen
2a43c68dd7 on-release works without on-key; Closes PR12291 please propagate 2011-10-16 22:46:22 -04:00
Eli Barzilay
08b2d7b595 Lots of little changes and fixes, and an extensive testing script. 2011-10-16 18:53:30 -04:00
Eli Barzilay
3589a70308 Rewrote large parts of the unix installer script.
It's now simpler, shorter, and better.  Some of the text is revised,
accepts environment variables when asked for the path, some additional
fixes in misc places.
2011-10-16 18:53:30 -04:00
Eli Barzilay
f882c01e65 Misc improvements (no functionality changes, yet). 2011-10-16 18:53:30 -04:00
Eli Barzilay
08e70c5e45 Make the default answer for running an older uninstaller "yes".
This makes it behave more like the Windows installer, where the default
is to remove an older installation, which most people want to do anyway.
2011-10-16 18:53:30 -04:00
Robby Findler
abf722f19a adjust the code that checks to see if a file is in the module language so that it uses
read-language, in the case that the simpler check (that just looks for "#lang") fails.

please include in 5.2
2011-10-16 17:39:47 -05:00
Matthew Flatt
c514fd3470 fix an identifier binding bug
Merge to 5.2
2011-10-16 07:11:34 -07:00
Ryan Culpepper
f704d1620d db: remove superfluous pretty-print setup 2011-10-16 05:41:58 -06:00
Ryan Culpepper
eed6016793 scribble/eval: pretty-print results by default 2011-10-16 05:41:58 -06:00
Ryan Culpepper
8f2fe7a5aa db: updated note about sqlite3.dll
merge to 5.2
2011-10-16 05:41:53 -06:00
Ryan Culpepper
81fa15e27b updated documentation for syntax/trusted-xforms
closes PR 12269
  merge to 5.2
2011-10-16 02:40:41 -06:00
Ryan Culpepper
1695d73f5b rackunit: fixed test
merge to 5.2
2011-10-16 02:40:41 -06:00
Ryan Culpepper
18b3899e6a rackunit: fix tests
merge to 5.2
2011-10-16 02:40:41 -06:00
Robby Findler
9ab6a93127 fix the error check
closes PR 12290
2011-10-15 14:00:16 -05:00
Matthew Flatt
d4f7020cd2 add cross-reference between data and read/print descriptions
Closes PR 11096
2011-10-15 07:20:33 -07:00
Matthew Flatt
2a39a098a6 fix docs on reading characters
Closes PR 11102
2011-10-15 07:20:33 -07:00
Matthew Flatt
eba0ca2d4d add cross-ref from reference to guide on places 2011-10-15 07:20:33 -07:00
Matthew Flatt
e55e0a5e4a reader doc fixes
Closes PR 11086
2011-10-15 07:20:33 -07:00
Mike Sperber
2db0791e27 Synch German string constants with latest. 2011-10-15 14:28:22 +02:00
Neil Toronto
7270c27141 Fixed x/y mixup in 'axes'
Removed 'plot-tick-skip' parameter

Merge into 5.2
2011-10-14 22:06:15 -06:00
Robby Findler
db2e13a09b add a "Step Until Choice" option into the redex stepper 2011-10-14 13:37:12 -05:00
Neil Toronto
522ba14b9f Rename plot3d-animating? -> plot->animating?
Combine plot-ps-interactive? and plot-pdf-interactive? into plot-ps/pdf-interactive?
Rename plot3d-ambient-light-value -> plot3d-ambient-light
Fix off-by-one 2D plot area clipping
Add warning to docs about 'fit' disappearing
Stop providing 'fit', 'derivative', 'gradient' and 'make-vec' from the 'plot' module

Merge into 5.2
2011-10-13 16:16:02 -06:00
Matthew Flatt
6d608e392c add missing test for text% tab fix
Merge to 5.2
2011-10-13 06:03:10 -06:00
Matthew Flatt
5fb2f56fdf fix tab problem in text%
Merge to 5.2
2011-10-13 05:57:29 -06:00
Robby Findler
770c2d14f8 swapped the backwards triangles 2011-10-12 20:46:20 -05:00
Robby Findler
a43973157b add call to 'test-results' 2011-10-12 20:46:20 -05:00
Matthias Felleisen
8cdbd3285b document unexpected mouse event reporting; Closes PR 12278 2011-10-12 09:37:03 -04:00
Matthew Flatt
8c2dc5ccb7 parallel `raco setup': print "running" before insead of after
That is, before actually running the document, so that the
"running" message is a useful indicator of what is happening
now.
2011-10-11 17:17:58 -06:00
Matthew Flatt
f2082e6eeb fix framework doc reference to `set-icon' method
Merge to 5.2
2011-10-11 17:17:58 -06:00
Matthew Flatt
c74bce598b fix Ctl-C problems in parallel `raco setup'
The main problem was that when a place catches an exception,
it would continue in breaks-disabled mode. Also improve
`parallel-do' to detects additional breaks when waiting on
places and propagate them, in case a place was running something
that ate the initial break.
2011-10-11 15:54:22 -06:00
Matthew Flatt
5c0956d7b1 more memory accounting fixes for places
Fix memory accounting to detect when messages pile up in a
place channel and when shared values (such as the result of
`make-shared-bytes') pile up. Also fix problems where a GC
or free-page purge needs to be triggered.

The implementation causes a minor API change, which is that
a place channel sent multiple times as a message generates
values that are `equal?' but no longer eq?'.

Closes PR 12273

[Do not merge to 5.2]
2011-10-11 11:26:11 -06:00
Robby Findler
4d00b13ce0 adjust the autosave gui so that closing the window doesn't cause drracket to
exit (this only happened on non-mac os x platforms)

include in 5.2
2011-10-11 10:44:00 -05:00
Robby Findler
95e29376fd error message typo
include in 5.2
2011-10-11 10:43:37 -05:00
Robby Findler
10d19bf8d5 adjust 2htdp/image library so that it doesn't create arbitrarily large
bitmaps when rendering images

closes PR 12277 (except I didn't fix the make-bitmap contract)

include in 5.2
2011-10-11 08:33:50 -05:00
Matthew Flatt
32b5390ad2 add missing GC registration for places
Merge to 5.2
2011-10-11 06:45:14 -06:00
Matthew Flatt
dc912ee6de third attempt to fix 64-bit Lion hidden-window problem
After all the previous attempts, the problem seems almost trivial:
although Apple documents `NSAnyEventMask' as the constant #xFFFFFFFF,
it's actually NSUIntegerMax (and the difference matters in 64-bit
mode).

Merge to 5.2.
2011-10-10 15:48:30 -06:00
Matthew Flatt
9fd11ac92c Revert "another attempt to fix the 64-bit Lion hidden-window problem"
This reverts commit f6e5468dbb.

Merge to 5.2
2011-10-10 15:38:42 -06:00
Matthew Flatt
5724aa1d1b doc clarifications
Merge to 5.2
2011-10-10 14:45:53 -06:00
Matthew Flatt
6aaa0d44c0 fix argument-error report
Merge to 5.2
2011-10-10 14:18:40 -06:00
Neil Toronto
a0e2401cbe Fixed error: attempt to divide by (void) when axis bounds' length is a multiple of 1000
Please merge into 5.2
2011-10-10 13:28:36 -06:00
Robby Findler
90304687f1 improve the strategy for check syntax's tail arrow information collection
In particular, instead of trying to collect all of the arrows and do some kind
of a smart transitive closure (that tries to avoid adding links that would "skip"
expressions but doesn't always manage it), the new code tries instead to build
the right links directly while traversing the fully expanded expression

This also seems to have been a minor performance improvement. When running the
information collection phase of check syntax (ie, not counting the time for
expansion) on a 1.8 GHz core i7, for collects/framework/private/text.rkt,
the times went from:

cpu time: 7347 real time: 7413 gc time: 211
cpu time: 7328 real time: 7393 gc time: 239
cpu time: 7356 real time: 7418 gc time: 240

to:

cpu time: 7562 real time: 7632 gc time: 265
cpu time: 7555 real time: 7618 gc time: 269
cpu time: 7552 real time: 7617 gc time: 262

closes PR 11835

do not include in 5.2
2011-10-10 14:18:01 -05:00
Robby Findler
fa98274aed add a checkbox to the 'evaluation terminated' dialog to avoid seeing that dialog
closes PR 6575

don't include in 5.2
2011-10-10 14:18:01 -05:00
Eli Barzilay
ca64179b63 "half-screen" -> "right-half-screen".
(I don't know why this was needed, but calling it "half-screen" looks
like it's asking for future trouble.)
2011-10-10 13:35:00 -04:00
Eli Barzilay
e9db4df6c3 Clearer question about running an existing uninstaller. 2011-10-10 13:30:04 -04:00
Eli Barzilay
de40798d49 Rename "$WHERE1" -> "$BASE". 2011-10-10 13:30:03 -04:00
Kevin Tew
abc0af81d2 Slideshow --half-screen 2011-10-10 11:07:29 -06:00
Rodolfo Carvalho
a3890f7e32 Fix typo in Slideshow documentation 2011-10-10 11:49:24 -04:00
Jay McCarthy
b20ffdbe95 Fixing breakage from push 23693 2011-10-10 08:27:34 -06:00
Jay McCarthy
354283132d Fixing PR 12271 2011-10-10 06:45:42 -06:00
Matthew Flatt
c805728d3e fix compiler confusion: non-mutating vs reorderable unsafe ops
Reordering `unsafe-vector-ref' past an `unsafe-vector-set!' was
particularly bad. Meanwhile, some non-mutating operations like
`unsafe-mcar' were treated too conservatively.

Merge to 5.2
2011-10-09 19:46:24 -06:00
Matthew Flatt
b377cafdac mark OS jmpbuf as GC-ignored
This change is intended to make the QNX port work, but it
should also future-proof Racket a little for other platforms.
2011-10-09 10:45:24 -06:00
Matthew Flatt
8f0fa96d69 docs and release notes for `set-icon' change
Merge to 5.2
2011-10-09 09:45:42 -06:00
Sam Tobin-Hochstadt
1b69d742bd Change basic-top-level-window% to support `set-icon', and use to set icon for splash screen.
Closes 12241

Merge to 5.2
2011-10-09 09:43:32 -06:00
Matthew Flatt
8bd81f4806 fix ffi retain of callbacks
The FFI's weak table of callback procedures (to map Racket procedures
to FFI callback objects) suffered from the classic key-in-value
problem.

Closes PR 12228, probably

Merge to 5.2
2011-10-09 09:01:15 -06:00
Mike Sperber
334bf53bb9 Synch German string constants with latest. 2011-10-09 15:21:00 +02:00
Matthew Flatt
bf3f09a3c1 cocoa: fix `show #f' on already unshown frame shows it briefly
Merge to 5.2
2011-10-08 16:47:19 -06:00
Matthew Flatt
1bc80310e3 fix compiler bug that could cause infinite inlining loop
The bug was that a procedure could be incorrectly marked as
a "leaf" procedure, which could in turn cause the compiler
to keep inlining a very small procedure that calls itself.

Closes PR 12270

Merge to 5.2
2011-10-08 16:40:34 -06:00
Robby Findler
5db48b3e73 avoid calling the show method for tooltips unless the frame is shown.
please include in 5.2
2011-10-08 16:50:21 -05:00
Stephen Chang
79dd7df945 fix lazy stepper bug: annota of non-identifier fns
- fix lazy stepper bug where delaying of non-identifier fns
  wasnt being properly hidden
- add test case for this bug

include in 5.2
2011-10-08 15:59:32 -04:00
Robby Findler
fcc720f43e adjust uses of after-load-file to use the success? flag 2011-10-08 10:50:27 -05:00
Matthew Flatt
ed38297c97 editor<%> doc fixes 2011-10-08 09:12:31 -06:00
Matthew Flatt
379991c5bb fix text% `get-paragraph-{start,end}-position' bug and doc bugs
Merge to 5.2
2011-10-08 09:12:30 -06:00
Robby Findler
d362bda6d3 adjust the way languages are chosen when opening a file.
Specifically, in the case that we're inheriting a language setting
from some earlier preference or something and the language we're
inheriting is one that saves prefixes, and the current file being
opened does not match any of the possible prefixes, then revert
to the not-a-language language, instead of using the value from
the preference

Also: finish the removal of the EoPL language level from the
DrRacket langauge dialog, and clean up the 'get guidance' dialog

Please cherrypick this commit to the 5.2 release branch
2011-10-08 09:46:06 -05:00
Matthew Flatt
41b18e3608 windows: add sqlite3.dll
Merge to 5.2
2011-10-08 07:18:49 -06:00
Robby Findler
1eaf53d4cb adjust the module lexer so that it treats the entire range that
'read-language' uses as a single token in the case that read-language
fails. This helps it to deal with things like s-exp and at-exp
properly

closes PR 12260
2011-10-08 08:08:36 -05:00
Matthew Flatt
f6e5468dbb another attempt to fix the 64-bit Lion hidden-window problem
This fix uses the same`run'-vs-`finishLaunch' technique as before,
but patches up the modal-dialog problem by calling `run' again
with a callback to start a modal loop.

Merge to 5.2.
2011-10-08 06:12:17 -06:00
Eli Barzilay
7d1b00ff69 Typo in error message detection 2011-10-08 03:02:20 -04:00
Ryan Culpepper
192e039e66 fix docs (eval) for syntax/keyword 2011-10-07 19:40:48 -06:00
Ryan Culpepper
a1009bbf26 syntax/parse: add begin-for-syntax to kernel-literals 2011-10-07 19:40:48 -06:00
Ryan Culpepper
a100395626 rackunit: prevent test case from killing test-runner thread
closes PR 11586
2011-10-07 19:40:48 -06:00
Ryan Culpepper
528c05b228 emphasize syntax/id-table over syntax/boundmap 2011-10-07 19:40:48 -06:00
Ryan Culpepper
00c6f91e7c db: fix use of lazy-require 2011-10-07 19:40:48 -06:00
Ryan Culpepper
f7a6c4a3b6 rackunit: all checks return void
closes PR 12001
2011-10-07 19:40:48 -06:00
Ryan Culpepper
e72b9cc3fd macro-debugger: removed simplify-marks
closes PR 12248
2011-10-07 19:40:48 -06:00
Ryan Culpepper
d3cb67b756 syntax/parse: fixed docs
closes PR 12255
2011-10-07 19:40:48 -06:00
Neil Toronto
a07af20658 Fixed >=/c contracts 2011-10-07 19:22:33 -06:00
Neil Toronto
c655cd0efb Contract and parameter doc pages 2011-10-07 19:09:04 -06:00
Neil Toronto
50cf71466e Reduced the number of plot-specific contracts 2011-10-07 18:05:54 -06:00
Neil Toronto
644abe30fe Reworked number formatting for plot labels 2011-10-07 17:29:27 -06:00
Matthew Flatt
9aa93ab5ae Revert "cocoa: change the way the app is initialied"
This reverts commit 60101618db.

While this changes fixes a 64-bit Lion problem, it creates a
worse problem of breaking file and print dialogs.
2011-10-07 15:25:31 -06:00
Neil Toronto
8a60e1816a Fixed contracts in documentation 2011-10-07 13:09:27 -06:00
Robby Findler
7aa6153da1 adjust the calls to paragraph-{start,end}-position to specify the default argument 2011-10-07 14:02:27 -05:00
Robby Findler
2339046554 shrink some long lines 2011-10-07 11:48:39 -05:00
Robby Findler
93c1d1dd36 add a 'find longest line' menu item to the edit menu 2011-10-07 11:48:39 -05:00
Robby Findler
e7197c4129 fix tooltip placement in online check syntax (only affects mac os x) 2011-10-07 11:48:24 -05:00
Robby Findler
a40f288e48 relaxed the restrictions on planet requires in the teaching languages to allow the new forms 2011-10-07 11:48:24 -05:00
Robby Findler
57deb86f7b don't invalidate the error ranges for online check syntax when there is no admin
I believe that this can go wrong in the case that you edit a buffer and switch tabs
before drracket fully finishes responding to the edited buffer (due to a queue-callback
that postpones some of the response to editing the buffer) for online expansion.
At least, this is how I guess that the error below happened:

send: target is not an object: #f for method: get-view

 === context ===
/Users/robby/git/exp/plt/collects/racket/private/class-internal.rkt:4602:0: obj-error
/Users/robby/git/exp/plt/collects/drracket/private/module-language.rkt:1485:6: get-box method in .../module-language.rkt:1151:4
/Users/robby/git/exp/plt/collects/drracket/private/module-language.rkt:1397:6: invalidate-online-error-ranges method in .../module-language.rkt:1151:4
/Users/robby/git/exp/plt/collects/drracket/private/module-language.rkt:1387:6: clear-old-error method in .../module-language.rkt:1151:4
/Users/robby/git/exp/plt/collects/drracket/private/module-language.rkt:1177:6: buffer-modified method in .../module-language.rkt:1151:4
/Users/robby/git/exp/plt/collects/mred/private/wx/common/timer.rkt:34:38
/Users/robby/git/exp/plt/collects/mred/private/wx/common/queue.rkt:432:6
/Users/robby/git/exp/plt/collects/mred/private/wx/common/queue.rkt:472:32
/Users/robby/git/exp/plt/collects/mred/private/wx/common/queue.rkt:618:3
2011-10-07 11:48:24 -05:00
Matthew Flatt
b6a9330bf1 more `raco exe' cycle repairs 2011-10-07 10:32:49 -06:00
Matthew Flatt
f02ea92250 fix compiler bug related to `#%variable-reference' on local
The first compiler pass didn't properly shift the stack offset
when adjusting the context of a varref of a local.

Closes PR 12258
2011-10-07 09:42:33 -06:00
Eli Barzilay
f5230d858f Catch tcp failures in the http verification. 2011-10-07 11:05:15 -04:00
Eli Barzilay
a68ea14d8b Fix typo in symbol name, keep old one still.
Closes PR 12265.
2011-10-07 10:47:15 -04:00
Matthew Flatt
add50ab436 cocoa: undo hack of "-64" suffix on app names
Commit 60101618db seems to address the real problem.
2011-10-07 08:05:25 -06:00
Matthew Flatt
60101618db cocoa: change the way the app is initialied
Calling NSApplication's `run' works better than calling `finishLaunching'
directly, particularly in 64-bit Lion for some reason.

Relevant to PR 12102
Relevant to PR 12257
2011-10-07 08:05:15 -06:00
Neil Toronto
94a9a808ec Closes PR 12262. 2011-10-06 19:02:31 -06:00
Neil Toronto
55f71c9fa7 Finished doc page for plot/utils 2011-10-06 19:02:31 -06:00
Sam Tobin-Hochstadt
9cc2c441ee Add note on `match' semantics. 2011-10-06 18:32:05 -04:00
Sam Tobin-Hochstadt
463a34ec90 Revert "Fixing racket/match by removing errorneous optimization with test that shows it is broken"
This reverts commit 41307f1346.
2011-10-06 18:32:05 -04:00
Sam Tobin-Hochstadt
1d9ac41772 Use unsafe-vector* instead of unsafe-vector in a few benchmarks. 2011-10-06 18:17:45 -04:00
Rodolfo Carvalho
412201796a Fix typo in the documentation.
Affected section:
The Racket Guide > 17 Creating Languages
> 17.3 Defining new #lang Languages > 17.3.2 Using #lang reader
2011-10-06 17:08:22 -04:00
Neil Toronto
967fa41ad5 Merge branch 'master' of pltgit:plt 2011-10-06 14:05:14 -06:00
Neil Toronto
45dfafb0b1 Finished 3D renderer doc page 2011-10-06 14:04:51 -06:00
Neil Toronto
b5f30fd5de Finished 2D renderer doc page 2011-10-06 13:23:49 -06:00
Eli Barzilay
de01db7bf1 Adapt front page example for the new plot. 2011-10-06 15:07:21 -04:00
Neil Toronto
ce68c697fc Added plot-background-alpha and plot-foreground-alpha 2011-10-06 11:26:13 -06:00
Robby Findler
5829673215 adjust the scheme-lexer test suite so that it complains to stderr to fit
with drdr

also change two of the failing tests so they pass, but incorrectly and
add a note there to that effect so if someone does fix that eventually
they won't be confused (I hope)
2011-10-06 12:00:23 -05:00
Vincent St-Amour
f220ddc8ac Doc typo. 2011-10-06 10:37:36 -04:00
Matthew Flatt
0f5b53d349 scribble: fix Latex renderer treatment of table cell/column styles
The renderer was using symbol style names as command names, but only
strings should be treated that way.
2011-10-06 07:47:38 -06:00
Matthew Flatt
79a6981684 update docs related to embedding and changes due to futures/places 2011-10-06 07:36:17 -06:00
Neil Toronto
8ae5b8c1f3 Added "Porting" section to the PLoT docs 2011-10-05 22:30:27 -06:00
Neil Toronto
cd98c4ac89 Changed 'points' contract on vecs to (listof (vector/c real? real?)) 2011-10-05 20:57:24 -06:00
Matthew Flatt
7680adf486 fix compiler bug related to lifting and unbox flonums
As variables are dropped for lifted functions, the bitmap
for flonum closure variables was not shifted down by the
number of dropped variables.

Closes PR 12259
2011-10-05 19:25:59 -06:00
Neil Toronto
58fbc20294 Comment out 'fit' tests that randomly fail 2011-10-05 18:39:30 -06:00
Neil Toronto
11bb172acc Merge branch 'master' of pltgit:plt 2011-10-05 18:04:48 -06:00
Neil Toronto
20987fc320 Added plot-pict and plot3d-pict for slideshow plots
Added x, y, width, height arguments to plot/dc and plot3d/dc
2011-10-05 18:04:11 -06:00
Jay McCarthy
41307f1346 Fixing racket/match by removing errorneous optimization with test that shows it is broken 2011-10-05 16:29:16 -06:00
Jay McCarthy
9036e9ec61 Fixing slight error when a file fails to test properly 2011-10-05 16:29:16 -06:00
Neil Toronto
c9ffe2830b Changed uses of dynamic-require to uses of lazy-require
Changed return contracts of 'plot', 'plot-snip', 'plot3d' and 'plot3d-snip' to (is-a?/c image-snip%)
2011-10-05 14:31:13 -06:00
Robby Findler
d5e28ced91 fix documented contract to match actual function 2011-10-05 15:13:54 -05:00
Neil Toronto
35ef2ade0c Keep DrDr from running (and timing out on) the slideshow-test.rkt 2011-10-05 13:27:33 -06:00
Neil Toronto
32d789d4f8 Make most of 'plot' still function without libfit (all but 'fit') 2011-10-05 13:11:04 -06:00
Neil Toronto
06bbcfd8f6 Turned off deprecation warnings in compat-tests.rkt so DrDr won't complain about them 2011-10-05 12:50:11 -06:00
Matthew Flatt
e1a82481d1 try to fix dist-specs for libfit 2011-10-05 11:46:15 -06:00
Neil Toronto
d3b5e21cae Added new plot library and old libfit (which plot still depends on) 2011-10-05 10:26:49 -06:00
Matthew Flatt
ec380e34ed remove built-in reader and printing support for Honu
This is a backward-incompatible change, but I think it's
unlikely that any code depends on the removed bindings
or reader syntax.
2011-10-05 09:40:27 -06:00
Matthew Flatt
fe1909581b remove `raco exe' plot test 2011-10-05 09:40:27 -06:00
Robby Findler
560dfd5312 Allows selection of the various text objects inside DrRacket's display of
syntax objects

closes PR 6121
2011-10-05 08:43:18 -05:00
Matthew Flatt
6a8d3c34f1 win64: avoid msvcr90.dll
The libjpeg, libeay, and ssleay libraries for Win64 linked to
msvcr90.dll, because of the way that they were compiled with
MSVC 2008, but msvcr90.dll is not included with Win7, and
redistributing it is problematic. The new variants of the libraries
link instead of msvcrt.dll --- which you're not supposed to do
according to MS, but that's the way libraries like Gtk are
built, and it seems to be the right approach. See also

 http://kobyk.wordpress.com/2007/07/20/dynamically-linking-with-msvcrtdll-using-visual-c-2005/

I built libjpeg-8, while the other two are courtesey of
http://www.indyproject.org.

Closes PR 12246
2011-10-05 06:28:31 -06:00
Matthew Flatt
f38e57ff68 add #:get-lib-dirs and #:fail args to `ffi-lib'
Not currently used, because an experiment that used the additions
was abandoned, but another use in the future seems likely.
2011-10-05 06:28:30 -06:00
Eli Barzilay
515c8dc6c1 Fix for `make-module-evaluator' with a file.
It used to work, but now it fails since when it runs "/foo/bar/baz.rkt"
racket uses 'exists with "/foo/bar".  See the comment for the fix that I
used.
2011-10-05 07:20:59 -04:00
Eli Barzilay
e01e46b772 Removed the `plot' collection, in preparation for adding the new one instead. 2011-10-05 04:09:10 -04:00
Robby Findler
9b3f2427d7 make right-click in the space between the definitions and
interactions window pop up a menu to let you change from
vertical to horizontal orientation
2011-10-04 16:47:10 -05:00
Matthew Flatt
902ea5f7a5 fix `raco exe' for ELF starter 2011-10-04 12:59:18 -06:00
Matthew Flatt
3941a5d04f cocoa: make grow-box-spacer zero-width for 10.7 2011-10-04 12:59:18 -06:00
Robby Findler
6fd2e9c1d3 fixed planet docs; closes PR 12178 2011-10-04 12:56:35 -05:00
Robby Findler
63593285fe fix broken contract error message 2011-10-04 08:19:33 -05:00
Robby Findler
25413a4c05 fix the expansion of beginner-true and beginner-false so
they don't throw away source locations.

related to PR 12253
2011-10-03 17:11:54 -05:00
Eli Barzilay
c44d138ed1 Add "build.bat", "rbuildmode.c", and "sgc" from the worksp directory to
the windows source distribution.
2011-10-03 15:42:27 -04:00
Robby Findler
eb0165cae8 adjust drracket's "download plt" file functionality to follow redirections
closes PR 6675
2011-10-03 13:21:32 -05:00
Robby Findler
11a3d9b0ac add support for redirections to get-pure-port and add get-pure-port/headers 2011-10-03 13:21:30 -05:00
Robby Findler
1fa6129afc adjust the "Transfer-Encoding: chunked" code to re-use bytes more
agressively
2011-10-03 13:21:29 -05:00
Matthew Flatt
e640041dd6 fix raco exe' for cycles created via define-runtime-module-path' 2011-10-03 08:59:30 -06:00
Matthew Flatt
a0378d956a fix place refcount
Originally, the refcount was either 0, 1, or 2, so a `char' was
enough. It's not enough now that place channels increment the
refcount.
2011-10-03 06:39:18 -06:00
Stephen Bloch
753dfa3cb2 Fixed error messages, added tests for type errors. 2011-10-02 22:54:34 -04:00
Robby Findler
3bfce02bd6 fix my stupidity 2011-10-02 18:14:55 -05:00
Robby Findler
c455631eb3 fixed another path/string bug in the autosave recovery dialog 2011-10-02 17:19:27 -05:00
Ryan Culpepper
994c1f202c added functions, docs for show-dependencies 2011-10-02 14:17:07 -06:00
Ryan Culpepper
38d984367e syntax/parse: fix check-literals code (references to disappearing names) 2011-10-02 14:17:07 -06:00
Robby Findler
951de8cc51 add get-default-percentages to panel:dragable and then add a dragable panel
to the debugger
2011-10-02 14:34:28 -05:00
Robby Findler
721cdba2c1 adjst check syntax so that it only clears out style changes when clicking 'Run'
(style changes are not applied when running online check syntax)
2011-10-02 10:18:36 -05:00
Robby Findler
7b3e350f84 adjust initial value to be something less likely to cause problems 2011-10-02 08:38:27 -05:00
Mike Sperber
390d9c007d Synch German string constants with latest. 2011-10-02 13:47:23 +02:00
Robby Findler
57042de4da add a test case that ensures that the default values of optional arguments
are not subject to the argument on the contract
2011-10-01 16:03:28 -05:00
Robby Findler
533b898277 clarify the role of the #:rest portion of the contract
closes PR 12244
2011-10-01 15:58:50 -05:00
John Clements
79fbc970aa minor doc updates 2011-10-01 11:28:37 -07:00
Matthew Flatt
7de96490cf fix Windows source dist spec 2011-10-01 07:41:58 -06:00
Robby Findler
b71e562284 fix crlf mode initialization 2011-10-01 08:10:25 -05:00
Kevin Tew
e650764a4c place-channel? returns #t for place descriptors, doc clarification 2011-09-30 17:15:11 -06:00
Kevin Tew
a7b0c33896 QNX porting 2011-09-30 17:03:50 -06:00
Robby Findler
b52086ecae clarify the use-file-text-mode method. 2011-09-30 17:08:18 -05:00
Robby Findler
4a2757f200 Adjust DrRacket so that it saves files with CRLF
line terminators when:

  a) running under windows, and
  b) the file on the disk (when DrRacket first opens it)
     contains all CRLF line endings.

In all other situations, the file is saved with LF terminators.

Before this commit, DrRacket would always use the platform-specific
convention, regardless of the original content of the file.

closes PR 12242
2011-09-30 17:08:07 -05:00
Robby Findler
c63426e92e add docs for 'enable automatic parentheses' in prefs dialog 2011-09-30 17:08:05 -05:00
Robby Findler
b95b346a4e adjust various plumbing to get the drracket icon to the startup screen. Only to realize
that the startup screen is a dialog% and thus doesn't have set-icon

related to PR 12241
2011-09-30 17:08:03 -05:00
Robby Findler
56effc21f9 adjust the preferences setting for the module language auto-text
so that it deals with the trailing newline in a manner consistent
with the way the rest of that code works
2011-09-30 17:08:02 -05:00
Matthew Flatt
4535f5d8cc fix keyboard navigation (all platforms)
Also, fix `set-selection' in `list-box%' to not invoke the
tab panel's callback function (cocoa & gtk).
2011-09-30 13:44:24 -06:00
Sam Tobin-Hochstadt
88c7bf649c Parallel version of k-nucleotide.
2x faster on very big inputs, slower on small inputs.
2011-09-30 11:42:58 -04:00
Eli Barzilay
315060625a Robby's docs. 2011-09-30 10:51:28 -04:00
Eli Barzilay
093236fea4 Improve code generation in the framework collection.
Instead of generating a file for code and one for documentation, do both
via a macro instead.  Most of the code is the same (modulo reformatting
in a more modern style), and instead of printing the result to a file,
it just returns it as the result of a macro.  (Since this is done in a
naive way, the macro is bad -- it is unhygienic since this is basically
what it did before only through a generated file; it should eventually
be improved to avoid these hacks.)
2011-09-30 10:51:28 -04:00
Eli Barzilay
656de69636 Don't create a page-setup menu item if `file-menu:create-print?' returns #f. 2011-09-30 10:45:43 -04:00
Eli Barzilay
01c859072e Rename "standard-menus.rkt" -> "standard-menus.rktl".
Since it's a file that gets included.  This is likely to be temporary,
if I get on with turning the whole thing into a macro.
2011-09-30 10:45:43 -04:00
Ryan Culpepper
a22783f635 syntax/parse: added workaround for racket/runtime-path at phase>0 2011-09-30 04:13:09 -06:00
Ryan Culpepper
54fa605de9 added show-dependencies script 2011-09-30 04:13:09 -06:00
Ryan Culpepper
5befa7320f syntax/id-table: added uncontracted private version 2011-09-30 04:13:09 -06:00
Ryan Culpepper
323aff1efb syntax/parse: added syntax/parse/pre
No *residual* dependencies on racket/contract/base (the *disappearing*
macro transformers and compile-time support do use contracts, though).
2011-09-30 04:13:09 -06:00
Ryan Culpepper
1c6b8bd68e syntax/parse: lazily load most macro transformers and compile-time support 2011-09-30 04:13:09 -06:00
Ryan Culpepper
fcbe778de0 macro-stepper: add option to disable reader macro abbreviations 2011-09-29 19:37:11 -06:00
Ryan Culpepper
8c806c184f macro-stepper: fix reader abbreviations 2011-09-29 19:37:11 -06:00
Matthew Flatt
a0805f9b18 fix docs for `round' et al.
They don't return integers for +inf.0, -inf.0, and +nan.0.
2011-09-29 16:54:08 -06:00
Matthew Flatt
99fe14b080 fix problems with phase-1 syntax definitions
Closes PR 12234
2011-09-29 16:54:08 -06:00
Matthew Flatt
a857e9e041 fix JIT bug in `fl->fx'
For the case that the argument is unboxed.

Closes PR 12240
2011-09-29 16:54:08 -06:00
Matthew Flatt
73071ad186 improve GC logging (3m)
Show process time of start of GC and otherwise adjust to make
the output more compact, and attach a prefab struct to the
logged message to report all available data in Racket form
(including real start and end times, which are not shown in
the output).
2011-09-29 16:54:08 -06:00
Sam Tobin-Hochstadt
d279593c15 Parallel spectral-norm shootout benchmark. 2011-09-29 17:51:00 -04:00
Sam Tobin-Hochstadt
2d3a713f0d More shootout optimization. 2011-09-29 17:51:00 -04:00
Kevin Tew
09891c9263 rounded-rectangle/border gets #:corner-radius and #:angle arguments 2011-09-29 13:48:15 -06:00
Robby Findler
2c018a749c PR 5440 requests that the 'electric' > in XML boxes work properly in
this situation:

   <a x="<b

and, in particular, not do this:

   <a x="<b></b>

Looking into this a bit, it isnt' clear how to do this without actually
parsing the whole buffer, something that doesn't seem to be worth
the effort with the amount of use that the XML boxes seem to get

So, for now: closes PR 5440
2011-09-29 12:03:58 -05:00
Matthew Flatt
ac8990d519 add date*' and exn:fail:syntax:unbound'
The `date*' structure type is an extension of `date' with
`nanosecond' and `time-zone-name' fields.

The `seconds->date' function now accepts a real and returns a
`date*'. The fractional part of its argument goes into the
`nanosecond' field.
2011-09-29 09:22:10 -06:00
Matthew Flatt
58097a12fe inside: export scheme_alloc_flvector() and scheme_alloc_fxvector() 2011-09-29 09:14:00 -06:00
Robby Findler
3a3ce656c4 add splicing-* to the default indentation preferences setting 2011-09-29 06:55:05 -05:00
Ryan Culpepper
e7e990cc78 macro-debugger/emit: more flexible arguments for emit-remark 2011-09-28 23:52:22 -06:00
Ryan Culpepper
c074093339 check-requires: report renamings 2011-09-28 23:52:22 -06:00
Robby Findler
bef4ed1fd4 adjust frame position preferences for the case when a monitor has gone away 2011-09-28 21:04:56 -05:00
Ryan Culpepper
afc9210599 revert some (require racket/pretty) to (require scheme/pretty) 2011-09-28 19:01:27 -06:00
Robby Findler
1c630063c5 remove debugging edit 2011-09-28 19:56:37 -05:00
Robby Findler
c8cbe81e51 fix problems with the autosave recovery gui and add a drdr test for it 2011-09-28 17:06:30 -05:00
Robby Findler
abeaebcad0 remove debugging printf 2011-09-28 17:06:29 -05:00
Sam Tobin-Hochstadt
3ce46320ae Include millisecond timings with commas. 2011-09-28 15:52:59 -04:00
Matthew Flatt
b24c8eb4dd cocoa: fix control-refresh bug 2011-09-28 12:38:39 -06:00
Vincent St-Amour
2cc0b35ca9 Add a pointer to a vim plugin for scribble. 2011-09-28 11:34:41 -04:00
Sam Tobin-Hochstadt
f46d60c6c1 Improve tooltip time printing. 2011-09-28 11:01:08 -04:00
Robby Findler
e1d332a693 make the (non-online) check syntax error report window be resizable
closes PR 8161
closes PR 10177
2011-09-27 21:23:54 -05:00
Ryan Culpepper
c7f86d276c removed useless requires 2011-09-27 19:28:44 -06:00
Ryan Culpepper
755cedc5ef improved check-requires
Added option to list the names used by each KEEP or BYPASS module
and indicate how used (as reference, in syntax template, etc).

Improved BYPASS; it now gives a list of suggested replacements
(and, optionally, what dependencies each replacement satisfies).

Incompatibly changed exports of macro-debugger/analysis/check-requires;
the new analysis result type is too complicated (and volatile, still)
to document for 0 other clients; focus on the script/output instead.

Removed check-requires-script.rkt.

Updated module whitelist.

Fixed syntax-local-value when identifier later used in def ctx
(destroyed binding information). This manifested as missed references
to modules that does define-local-member-name.

Fixed identifiers without syntax-source-module such as intro'd by
unit-from-context. This manifested as missed references to modules
that provided bindings used by unit-from-context forms.
2011-09-27 19:28:44 -06:00
Ryan Culpepper
717bc17aaf db: adjust lazy requires for cross-place mode 2011-09-27 19:28:44 -06:00
Ryan Culpepper
52a738140d db: minimize dependencies 2011-09-27 19:28:44 -06:00
Ryan Culpepper
36149b92a7 db: added ssl support for mysql connections 2011-09-27 19:28:44 -06:00
Matthew Flatt
247a51d5bd change `get-preference' to treat read errors the same as other bad content
That is, return '(), but also now log an error.
2011-09-27 19:23:17 -06:00
Matthew Flatt
2ae6d0c55f fix expand of `#%variable-reference' on local variable
Closes PR 12231
2011-09-27 18:53:28 -06:00
Matthew Flatt
ec49225112 fix expand-imports' for renamed quote'
Closes PR 12235

Thanks to Carl for the report and test case
2011-09-27 17:45:18 -06:00
Robby Findler
34581b7050 try using size-in-pixels for the font primitive in 2htdp/image
closes PR 11883

(the earlier commit with this message was just completely bogus)
2011-09-27 16:24:23 -05:00
Robby Findler
53e8ff8c82 Revert "try using size-in-pixels for the font primitive in 2htdp/image"
This reverts commit a5b729421a.
2011-09-27 16:23:43 -05:00
Robby Findler
086ff122f9 clean up the way check syntax handles the various callbacks that tell it
that things have changed and it needs to show different stuff in the editor.

(hopefully tooltips now come and go properly)
2011-09-27 16:20:47 -05:00
Robby Findler
a5b729421a try using size-in-pixels for the font primitive in 2htdp/image
closes PR 11883
2011-09-27 16:20:46 -05:00
Robby Findler
d1007842bb add another note on keybindings to the docs 2011-09-27 09:00:11 -05:00
Robby Findler
135e3ee14d add a 'Racket Documentation' menu item to drracket 2011-09-27 08:33:55 -05:00
Matthew Flatt
fd9a3e3926 set DrRacket WM_CLASS class name to "DrRacket" 2011-09-26 18:07:18 -06:00
Matthew Flatt
c34dff1247 add 'wmclass/".wmclass" aux executable/launcher configuration 2011-09-26 18:07:18 -06:00
Matthew Flatt
f9dabb8994 add -J/--wm-class argument to set the WM_CLASS class on Unix 2011-09-26 18:07:18 -06:00
Matthew Flatt
8711feae2d fix `scribble -h' output 2011-09-26 18:07:18 -06:00
Robby Findler
0baa32bcf8 fix the way that the set of identifiers to rename is calculated so that
macros that do strange things like the one below are treated better

(define-syntax-rule (m q)
  (begin (lambda (q) q)
         (define q 1)))
(m x)
x
2011-09-26 13:00:23 -05:00
Robby Findler
ae34e1a960 fix a race (suggested by drdr test results) 2011-09-26 06:08:58 -05:00
Stephen Bloch
09b0a46dcd Corrected a few error messages. 2011-09-24 12:49:05 -04:00
Matthew Flatt
e226dd7e26 add `contract-out' 2011-09-24 22:30:56 +09:00
Matthew Flatt
9d27b21f91 add provide pre-transformers 2011-09-24 22:30:56 +09:00
Matthew Flatt
1ae6cc0505 change `syntax-local-lift-module-end-declaration' for phase N
Lift to the end of the module, instead of the end of the
enclosing `begin-for-syntax'.

Also, fix a bug in phase 2+ visits.
2011-09-24 22:30:56 +09:00
Robby Findler
cc42ac8b1f Rackety 2011-09-24 08:00:33 -05:00
Robby Findler
75be15700e clear out any old check syntax information before replaying information
gotten from online check syntax. closes PR 12154

also fix a bug where one piece of check syntax information could be dropped
from large files
2011-09-24 08:00:32 -05:00
Mike Sperber
a2b4d30441 Synch German string constants with latest. 2011-09-24 04:58:11 +02:00
Matthias Felleisen
b90710355f typos and one change to formulation 2011-09-23 18:40:36 -04:00
Robby Findler
abda257295 moved the 'send to repl' keystrokes to the manual (and added a test
suite to make sure the example code in the manual doesn't get stale)
2011-09-23 16:37:18 -05:00
Robby Findler
a553cd7a4b be more agressive about setting the current directory during check syntax
also, minor Rackety
2011-09-23 16:37:17 -05:00
Vincent St-Amour
ed6d3f3a6a Fix docs of underlay/offset.
Closes PR12227.
2011-09-23 16:44:09 -04:00
Vincent St-Amour
ef2acecb96 Forbid non-productive recursive types. 2011-09-23 14:40:17 -04:00
Vincent St-Amour
3851727c73 Fix acknowledgements. 2011-09-23 14:40:17 -04:00
Sam Tobin-Hochstadt
a55e86d93b Initial parallel versions of Shootout benchmarks. 2011-09-22 15:48:22 -04:00
Robby Findler
b1a360be9d Add the following keybindings in a (hopefully) transparent REPL-friendly way:
esc;c:x send-toplevel-form-to-repl
  m:c:x   send-toplevel-form-to-repl
  c:c;c:e send-toplevel-form-to-repl
  c:c;c:r send-selection-to-repl
  c:c;m:e send-toplevel-form-to-repl-and-go
  c:c;m:r send-selection-to-repl-and-go

  c:c;c:z move-to-interactions

Took the inspiration for the list from the keybindings
available in Scheme mode in Emacs.

Closes PR 12211 (and probably others)
2011-09-22 10:51:48 -05:00
Robby Findler
2ec720176a extend and refactor minor stuff in the framework
specifically add an argument to move/copy-to-edit so that it
does copy-only and export a function for trigger a submission
to the input port of a text:ports<%> object programmatically
2011-09-22 10:51:47 -05:00
Robby Findler
f07760bd02 adjust new string constant to more accurate 2011-09-22 10:51:46 -05:00
Robby Findler
469bc6ec00 change the online check syntax so it doesn't require any preferences to be
set up in the separate place
2011-09-22 10:51:46 -05:00
Robby Findler
52a7a96705 improve the docs for the triangle/[as][as][as] functions
closes PR 12219
2011-09-22 10:51:45 -05:00
John Clements
c8a15f7013 Stepper fix for possible race condition
Uses queue-callback to avoid a possible race condition in updating of editor
on non-eventspace thread.

Fixes PR 12217
2011-09-21 22:45:46 -07:00
Robby Findler
048fa1d7b8 get rid of the "open here" functionality
This is a backwards incompatible change; there is a more complex change
that just stubs this stuff out that may be better that we may need
isntead of this commit.
2011-09-21 22:53:03 -05:00
Robby Findler
c264ece3f4 added status messages to the (now often empty) error message bar 2011-09-21 22:53:03 -05:00
Robby Findler
d6f54435b7 adjust the interaction between online check syntax and the documentation
system to guarantee that killing online check syntax doesn't wedge the docs
information lookup process
2011-09-21 22:53:02 -05:00
Robby Findler
0ba3a8ef7c remember the default #lang line separately from the language preference
closes PR 12210
2011-09-21 22:53:01 -05:00
Robby Findler
6ccffddb71 extend BSL+ test suite timeout 2011-09-21 22:53:00 -05:00
Robby Findler
d399e094ed make tooltips and arrows come and go when scrolling (without moving the
mouse)
2011-09-21 22:53:00 -05:00
Robby Findler
e2f1611ab4 adjusted the color for 'is-documented' bindings in online check syntax to be
green so it doesn't look anythign close to how the "yellow" error messages
look
2011-09-21 22:52:59 -05:00
Ryan Culpepper
7cc1476170 syntax/parse: fix bug: integrated stxclass might not bind pvar to syntax 2011-09-21 16:58:52 -06:00
Eli Barzilay
81e0f3f3d7 Move scribblings/honu' to honu/scribblings'.
Also, use `user-doc' since it's not distributed, yet.
2011-09-21 16:10:48 -04:00
Jay McCarthy
c27372c43b Fixes pr 12216 2011-09-21 16:47:08 +09:00
Jon Rafkind
67c9e3e4af [honu] more doc updates 2011-09-20 18:05:28 -06:00
Jon Rafkind
34689f1711 [honu] checkpoint for docs 2011-09-20 18:05:27 -06:00
Robby Findler
13e16d2b12 add preferences for displaying error messages from online expansion
also improved the highlighting in the margin by invalidating only the region
of the editor that actually needs redrawing
2011-09-20 17:15:04 -05:00
Robby Findler
7e27cc5331 adjust the order in which the keymaps are added to the interactions
window so that repl-specific bindings override the general purpose
drracket editor bindings
2011-09-20 17:15:03 -05:00
Robby Findler
d654d3e09b add the place creation memory use to the memory-log test
(this required rearranging a bunch of local-member-names)
2011-09-20 17:15:02 -05:00
Robby Findler
35de11134b adjust the way the 'there is an erorr' margin annotation draws for online
expansion. mostly the goal was to make it look the same on all platforms,
but it needed more sharp edges (or so I thought)
2011-09-20 17:15:00 -05:00
Robby Findler
d4f3fe4442 adjust online expansion so that the space for the error messages doesn't
automatically go away, but instead just becomes empty (and requires a click
on a close button to go away) so that there is less bouncing around
2011-09-20 17:14:59 -05:00
Robby Findler
b1ecffe262 add missing default arg value to close-icon% docs 2011-09-20 17:14:58 -05:00
Robby Findler
5ce47fe988 adjust a syncheck test so hopefully to avoid mutating datastructures from the wrong thread 2011-09-20 17:14:57 -05:00
Ryan Culpepper
98f7907258 disable debugging code accidentally left in 2011-09-20 15:52:29 -06:00
Matthew Flatt
0ab6637539 remove obsolete and unused Racket-to-C compiler
Removes `raco ctool -e/-c', `mzc -e/-c', `compile-extensions',
`compile-extensions-to-c', `compile-c-extensions', `compiler/cffi',
`compiler/comp-unit', `compiler:inner^', and most options in
`compiler/option'.
2011-09-20 15:26:39 -06:00
Ryan Culpepper
2111f136aa updated macro-debugger tests 2011-09-20 14:49:50 -06:00
Ryan Culpepper
43d3b5d8bc rackunit: added #:wait? arg to test/gui 2011-09-20 14:49:49 -06:00
Ryan Culpepper
40439aa4ef removed useless requires 2011-09-20 14:49:49 -06:00
Ryan Culpepper
30d5381e98 updated macro debugger to work with begin-for-syntax changes
Also cleaned up support for lazy instantiation of phase>0
environments.
2011-09-20 14:49:49 -06:00
Ryan Culpepper
350c8214f8 unstable, syntax/parse: fix phase-of-enclosing-module
Was broken because with begin-for-syntax, offset no longer limited
to 0 or 1. But now varrefs give module base phase directly.
2011-09-20 14:27:33 -06:00
Ryan Culpepper
095b5a5131 syntax/parse: use new primitive cross-phase identifier comparison 2011-09-20 14:27:33 -06:00
Matthew Flatt
0197902309 add var-ref->mod-decl-insp' and switch cur-code-insp' uses
Macros and other tools that need syntax privilege used
`(current-code-inspector)' at the module top-level to try to
capture the right code inspector at load time. It's more
consistent to instead use the enclosing module's declaration-time
inspector, and `var-ref->mod-decl-insp' provides that. The
new function works only on references to anonymous variables,
which limits access to the inspector.

The real function name is longer, of course.
2011-09-20 13:50:36 -06:00
Matthew Flatt
f21187248a fix `raco setup' for a collection that disappears 2011-09-20 13:22:27 -06:00
Kevin Tew
099e89a297 Fix pr 12205 pass --disable-inline and --vv options through to parallel make 2011-09-20 11:10:56 -06:00
Matthew Flatt
a7c607a708 fix module expand bug 2011-09-20 09:48:48 -06:00
Matthew Flatt
5351d4c7b9 fix gc and stack-overflow problems in JIT, module expansion & run
The GC problem was related to generational GC and the way constant
values are associated to JIT-generated code. See `retaining_data'.

The stack-overflow problems affects the JIT, module expansion,
and module invocation.
2011-09-20 08:34:29 -06:00
Robby Findler
2fea831663 fix bug introduced in recent commit caught by drdr 2011-09-20 06:57:02 -05:00
Robby Findler
252db20c85 add menus and keybindings for jumping around to the errors in the defs
window

also a little line-length shrinking
2011-09-19 22:47:47 -05:00
Robby Findler
76e55071b0 use new copy-file argument that Matthew provided; this is a better fix than
commit f9e1c41cb0 was for the same problem
2011-09-19 15:19:04 -05:00
Casey Klein
83451fea98 Add evaluation contexts for by-need letrec calculus as an example 2011-09-19 12:20:45 -05:00
Matthew Flatt
7f887fdf60 fix problems in copy-file'; add exists-ok?' argument
The non-Windows `copy-file' had a race condition, and it could
behave in bad ways if the source of a copy is not a regular
file.
2011-09-19 08:20:22 -06:00
Eli Barzilay
7513c027c9 Use "Submit to" instead of "Assignment" for the field name
This way it doesn't clash with courses that might use "Assignment" in
the directory names, or even a different term like "Homework".
2011-09-19 01:48:22 -04:00
Eli Barzilay
c6ad3682eb Some racketization; rearrange and fix "client-gui.rkt" which had some
very broken parts.
2011-09-19 01:46:24 -04:00
Robby Findler
de62ac2f06 minor Rackety 2011-09-18 21:20:27 -05:00
Robby Findler
f9e1c41cb0 Change scribble so that is overwrites the destination file when it makes a .pdf file
instead of copying the file into place. This makes Lion's Preview happier (specifically
it now recognizes the file as a revision of the old one and updates itself instead of
treating it as a new file and opening a second window)
2011-09-18 21:20:27 -05:00
Matthew Flatt
e03a70025f fix another raco setup path-normalization (especially for Windows) 2011-09-18 08:09:04 -06:00
Guillaume Marceau
9b49de16e7 Fixed 'reference to an identifier before its definition' error in *SL. 2011-09-17 22:37:45 -04:00
Matthew Flatt
f280fb14b4 places: doc repair, refine error checking, fix a test 2011-09-17 07:29:07 -06:00
Matthew Flatt
48fdcdd65d fix a path test for windows 2011-09-17 07:29:07 -06:00
Matthew Flatt
376efea754 doc clarifications and tests for some file-locking corners 2011-09-17 07:29:07 -06:00
Mike Sperber
4c59f02cb0 Symch German string constants with latest. 2011-09-17 11:10:56 +02:00
Robby Findler
8e5bb730b3 guard a use of get-root-data in the token tree implementation
closes PR 12072
2011-09-16 19:04:14 -05:00
Matthew Flatt
5d10dceaf5 fix a corner case for `find-relative-path' 2011-09-16 18:03:32 -06:00
Matthew Flatt
8e9e8ee48e doc edits 2011-09-16 17:56:53 -06:00
Matthew Flatt
39601cedcf Revert "putting the "drscheme" collection last isn't useful anymore"
This reverts commit 89581f5e21.

Putting "drscheme" last is useful because it avoids having two
places try to compile "drracket" and "drscheme" at the same time,
in which case the "drscheme" place gets stuck waiting on the
"drracket" place. Moving "drscheme" to the end is a hack, but
it improves the build time for 2-4 cores.
2011-09-16 16:36:57 -06:00
Matthew Flatt
33831cbd8a add test to run test suite in multiple places
This is something we've done in the past, but it doesn't seem
to be in the tree anywhere.

Also, repair old "parallel.rktl" test.
2011-09-16 16:19:04 -06:00
Sam Tobin-Hochstadt
c55cceed8c Two types definitely overlap if they are equal.
Fixes infinite loop in Whalesong compilation.
2011-09-16 17:20:31 -04:00
Sam Tobin-Hochstadt
2570fae481 Minor comment formatting. 2011-09-16 17:20:31 -04:00
Eric Dobson
1f3d68e55e Added comments to explain TR's type on subprocess and friends. 2011-09-16 17:20:31 -04:00
Eric Dobson
7fcf28bef2 Gave subprocess and similar functions more precise types. 2011-09-16 17:20:31 -04:00
Kevin Tew
a605a97132 place* throw error on closed port 2011-09-16 13:24:39 -06:00
Robby Findler
443434fd01 adjust hangman test suite strategy; instead of waiting for a hangman frame to get teh focus,
instead wait for a frame in the user's eventspace that has the name "Hangman".

also, some minor rackety
2011-09-16 12:24:39 -05:00
Eli Barzilay
c5b3317daf Make `enter!' go into a module even if there was an error when it was instantiated.
Previously, when trying to `enter!' into a module, an exception would
abort the whole thing, leaving the repl where it was.  This behavior can
be very confusing:

  > (module foo racket/base (define x 123) (error "bleh!"))
  > (enter! 'foo)
  bleh!
  > x
  reference to undefined identifier: x
  > (enter! 'foo)
  > x
  123

Things are a little better with xrepl, since the prompt always indicates
the module that you're in.  Still, it's unfortunate that a module with
an error is more likely to be something you'd want to debug -- and most
people are likely to miss the fact that entering a second time will work.

So make `enter!' catch exceptions when requiring the module, change the
namespace, and then re-raise the exception so the user sees it and is
left in the expected namespace.
2011-09-16 11:31:41 -04:00
Eli Barzilay
16cd1ad78d Make `defproc' throw an error if two arguments have the same name.
Related to the already fixed PR 12114 and PR 12133, which motivated the
error, and a few additional typos of the same kind.

(Note that it uses the symbols, but that's how they'll render anyway.)
2011-09-16 11:14:18 -04:00
Eli Barzilay
f02d19553c Protect against bad values in `current-module-declare-name'.
Closes PR 12125
2011-09-16 10:48:18 -04:00
daniel watson
5cc277e40f fix missing word 'look' in git docs 2011-09-16 10:48:18 -04:00
Eli Barzilay
370678abf6 Avoid compiling wxme test files.
Since that requires `racket/draw', which requires libcairo, which is
missing on some build machines.  It might be needed in the future, but
for now it's better to make it easier to add build machines.
2011-09-16 10:48:18 -04:00
Eli Barzilay
84d24bac80 Works up to the current version number, which is "1.0.0e". 2011-09-16 10:48:18 -04:00
Eli Barzilay
623c7493ed Some selective #:when (not ...)' -> #:unless ...'. 2011-09-16 10:48:18 -04:00
Eli Barzilay
55a8471838 Quick typo. 2011-09-16 10:48:17 -04:00
Eli Barzilay
26857abe43 Preserve thread values.
This avoid problems with tests that are broken by changing environment,
like the TR tests that implicitly rely on a specific printer.
2011-09-16 10:48:17 -04:00
Eli Barzilay
29019a42ae Minor reformatting, indentation fixes, brackets fixes, etc. 2011-09-16 10:48:17 -04:00
Mike Sperber
e637806306 fix errortrace-conversion problem in DMdA languages
Follow commit 45331d1ae8 for the HtDP
languages.
2011-09-16 09:02:25 +02:00
Jon Rafkind
b4a74fc12d [honu] return eof at the repl if an eof-object is read 2011-09-15 17:21:24 -06:00