Commit Graph

25083 Commits

Author SHA1 Message Date
Eli Barzilay
2cdfe18beb Rename {take,drop}-while' -> {take,drop}f'.
Also, improve the tests a little.
2013-03-09 15:47:42 -05:00
Stevie Strickland
7d1ad25d6c Revert hack for top-level, institute real fix.
As a side-effect of this fix, we don't need the thunking behavior for
external identifiers anymore.  Even better!

Also include some other cleanups suggested by Ryan and moves from
quasisyntax/loc -> syntax/loc where we don't use the quasiquoting.
2013-03-09 10:46:12 -05:00
Robby Findler
ba3e676057 adjust the expansion of #%module-begin so it doesn't
generate so much code

(Mostly to avoid pain with the macro stepper, but also
reducing the amount of code macros generates is good
for performance reasons)
2013-03-09 09:22:18 -06:00
Robby Findler
46eb91b578 fix a bug in the way let-values decided which variables are roots
also, Rackety
2013-03-09 09:22:18 -06:00
Robby Findler
eb41882843 add tests for plai's get-root-set (in gc2) 2013-03-09 09:22:18 -06:00
Robby Findler
3311387201 when anormalizing, never lift out identifiers from application expressions
The code used to avoid lifting identifier in more restricted circumstances,
but it seems safe to alway avoid that, which can lead to a lot
less lifting
2013-03-09 09:22:18 -06:00
Robby Findler
87f76e94f7 allow quote require forms in the argument to allocator-setup
This is mostly to better support test cases so that we
can set up namespaces that have specific collectors in them
(easiest to do with quote-based requires)
2013-03-09 09:22:17 -06:00
Robby Findler
609672bfa1 bugfix in the closure support 2013-03-09 09:22:17 -06:00
Stevie Strickland
2fb49aca15 Use old inefficient implementation for top-level for now. 2013-03-09 09:09:20 -05:00
Mike Sperber
b1db073ab8 Synch German string constants with latest. 2013-03-09 14:34:33 +01:00
Stevie Strickland
71a64bfb77 Remove additional cruft. 2013-03-08 23:36:05 -05:00
Stevie Strickland
57e9001868 Fix a couple of identifer references that were overlooked. 2013-03-08 23:04:32 -05:00
Stevie Strickland
539c25bb37 Fix with-contract so that contracts are only applied per mutation.
There's still a function application (here, a thunk) lurking in
external accesses, but since that's a trade-off for an entire contract
application, we profit.
2013-03-08 18:11:27 -05:00
Eric Dobson
1334e8dcc7 Reduce usage of check-below.
This pushes almost all uses of check below into tc-expr and
tc-expr/check. This means that the optimizer sees more precise types
and can make more optimizations.
2013-03-08 09:00:58 -08:00
Eric Dobson
1fd21ef640 Avoid TR internal error, by checking shape of args. 2013-03-08 09:00:10 -08:00
Eric Dobson
df581c3e4f Remove unused argument to tc/rec-lambda/check. 2013-03-08 08:59:57 -08:00
Matthew Flatt
454f4c3f0e slideshow: add `interactive'
The `interactive' pict constructor is a hook for interactive GUI
elements on a slide. The callback associated with an `interactive'
pict gets a `frame%' instance for a frame that floats over the pict.
2013-03-07 21:46:48 -07:00
Matthew Flatt
81a0451849 ffi/unsafe/objc
Avoid crash on duplicate Objective-C class declaration.
2013-03-07 21:46:48 -07:00
Matthew Flatt
9e0e2b932d scribble/srcdoc: add `begin-for-doc' 2013-03-07 21:46:48 -07:00
Jay McCarthy
0720ad231e raco setup, ignore this collect 2013-03-07 15:27:12 -07:00
Robby Findler
308a65e6ca fix plai tests 2013-03-07 16:02:51 -06:00
Eli Barzilay
b9406e6a75 Style changes.
No need to stick with the srfi-1 style of `lis' and `recur'.  I also
removed the srfi-1 comment since this code is straightforward.  (I keep
such comments if there's something non-trivial that was taken.)
2013-03-07 16:43:02 -05:00
Eli Barzilay
bbeb293b2a Fix renamed file in props. 2013-03-07 16:43:02 -05:00
Eli Barzilay
95abacd088 GCalc updates.
* Lots of racket-isms.

* Add ".rktd" to the sample file.

* Fix an old bug where the large display wouldn't get refreshed.
2013-03-07 16:43:02 -05:00
Robby Findler
0889133ca1 unbreak get-root-set 2013-03-07 13:52:37 -06:00
Robby Findler
9ef439d31f add in documentation for plai/gc2 2013-03-07 13:52:37 -06:00
Robby Findler
49ffca8fc2 remove ->address 2013-03-07 13:52:36 -06:00
Robby Findler
5c90a7ba83 adjust gc2's mutator language so that void-producing expressions
are allowed only in places where the value is discarded
2013-03-07 13:52:36 -06:00
Asumu Takikawa
bb17b6a8f6 Add take-while, drop-while to racket/list 2013-03-07 12:26:36 -05:00
Jay McCarthy
6bf03c1244 Extending cookie support with expiration
Providing access to paths on id-cookies

Change PNR to limit checksum updating unless forced
2013-03-07 10:21:03 -07:00
Jay McCarthy
9d3a42f166 using bcrypt 2013-03-07 10:21:03 -07:00
Jay McCarthy
39ae7a834b Removing saltification compat 2013-03-07 10:21:02 -07:00
Matthias Felleisen
ec0398fcdd Racket rename 2013-03-07 11:41:28 -05:00
Matthias Felleisen
c13d603c0e fixed .ss name in title 2013-03-07 11:41:28 -05:00
Matthias Felleisen
ef189b8e6e Racket rename 2013-03-07 11:41:28 -05:00
Robby Findler
eee43eb32f like d9c81a593, but this time only 4 pixels
(and this time under linux, not mac os x)
2013-03-06 16:38:59 -06:00
Robby Findler
d9c81a5931 declare failing test should not have failed
This test started failing due to the additions of the calls
to clip, introduced in commit e6dc9c28b4.  The actual
difference is only 9 pixels out of about 100,000 relevant
pixels. Even better, here's the precise rgb values for the
mis-matched pixels (the alpha values don't change):

   (224 251 255) vs (229 255 255)
   (200 242 255) vs (205 247 255)
   (205 242 255) vs (210 247 255)
   (205 242 255) vs (210 247 255)
   (205 242 255) vs (210 247 255)
   (205 242 255) vs (210 247 255)
   (200 242 255) vs (205 247 255)
   (224 251 255) vs (229 255 255)
   (242 255 255) vs (247 255 255)

It isn't clear to me why clipping like this would have this
particular change, but I think it is safe to assume that
Redex shouldn't change in response to this!
2013-03-06 16:35:37 -06:00
Burke Fetscher
1ed7e8c234 Redex: generation for judgment-form side-conditions
- enable generation for the above by compiling to
a disequation with "#f"

- wrap bare terms in relation definitons in
  side-conditions (require they not be "#f")
2013-03-06 16:00:05 -06:00
Robby Findler
4997800a76 make-traversal's optional argument is now ignored
Recent changes eliminated it, but it seems better
(for backwards compatibility) to leave it there but
ignore it
2013-03-06 12:31:50 -06:00
Robby Findler
2170e172a4 tidy up gui
Also improve the speed of compute-diffs by approximately 350x
(from 18+ seconds to about 50 milliseconds on the test case
that's currently failing)
2013-03-06 12:31:49 -06:00
Eric Dobson
f428191e1c Fix type of split-at and vector-split-at.
Closes PR12700.
2013-03-06 08:49:50 -08:00
Eric Dobson
ddf0c39e98 Reduce unnecessarily complicated restrict case. 2013-03-06 08:48:44 -08:00
Eric Dobson
d59a600be6 Make kw/opt lambda special checks work with other expected values.
Closes PR13544.
2013-03-06 08:48:14 -08:00
Eric Dobson
9f01d26f98 Cleanup kw/opt lambda annotations. 2013-03-06 08:48:14 -08:00
Matthias Felleisen
74c3c130f0 added a void contract to fix setup 2013-03-06 08:55:33 -05:00
Robby Findler
e6dc9c28b4 use clipping in the recent commit to actually test bounding boxes 2013-03-06 07:45:39 -06:00
Robby Findler
1bd11a0b77 bring mac os x bitmaps in line with recent commit made for the linux bitmaps 2013-03-05 22:47:51 -06:00
Robby Findler
39e4ac15e5 bring 'jump to definition' more in line with online check syntax
That is, when right-clicking on an imported identifier, if the
file that has that identifier's definition is open and online
check syntax has completed, then offer a "jump to definition" menu
item that just jumps there with the already computed informtion.
If the file isn't open or online check syntax hasn't completed,
instead offer just to go to the file, without jumping to the definition

also
- things should generally work slightly better with submodules
- jumping to identifiers should do a better job with scrolling,
  specifically it should scroll so the jumped-to identifier is
  about 20% from the top of the window (unless it was already visible,
  in which case no scrolling should occur)
2013-03-05 22:39:34 -06:00
Robby Findler
c7810ba2ae fix a with-handlers to avoid catching break exns 2013-03-05 22:39:34 -06:00
Robby Findler
007d18d145 properly handle eof in the online expansion code
It used to just kind of give up processing which, from the outside,
watching looked like

  (begin-for-syntax (custodian-shutdown-all (current-custodian)))

and so fell into that case in the code. Now, by explicitly raising
an exception, we get a more accurate response
2013-03-05 22:39:34 -06:00
Robby Findler
2b8f58c755 tweak arrow contract expansion to make the output a little easier to read 2013-03-05 22:39:34 -06:00
Robby Findler
4483bb9045 Bitmap test adjustments
- fill in unix bitmaps
- combine the horizontal metafunction test cases into a single bitmap
2013-03-05 22:12:46 -06:00
Burke Fetscher
edcb13e206 Fix pattern unification to deal with #f correctly 2013-03-05 21:52:56 -06:00
Matthew Flatt
18ad15c659 redex: fix `metafunction->pict' width correction for linebreaks
The revised implementation is more clearly and directly expressed
in terms of table cells that span columns.

Also, avoid `panorama' by removing a useless `inset' that seems
likely to be the reason for the `panorama'.

Unix bitmaps to go with the new tests are missing; Robby plans to
add them.
2013-03-05 11:07:20 -07:00
Matthew Flatt
8d03995b62 scribble/manual: add #:id' option to defthing'
Use this open in the HtDP language documentation in the same
way as for `defproc', which fixes the docs for `pi', `e', etc.
2013-03-05 07:48:26 -07:00
Patrick Mahoney
a8e99fa572 Remove use of mzscheme fluid-let in favor of parameters. 2013-03-05 02:22:06 -05:00
Eli Barzilay
75ece5c330 Minor sandbox improvements.
* Check `sandbox-path-permissions' for bad values such as
  '(<perm> <path1> <path2>) where <path2> would get silently ignored.

* Try to clarify the intent of `call-in-sandbox-context' as a meta tool
  rather than a safe execution tool.
2013-03-05 02:22:06 -05:00
chrdimo
0939cfcaf9 adding common special for the wrap-proc of the chaperone for option contracts on procedures 2013-03-04 21:48:52 -05:00
Jon Rafkind
e98b56228d autobib: document #:spaces keyword 2013-03-04 19:00:03 -07:00
Jon Rafkind
37f47f7d68 autobib: add #:spaces argument to define-cite that puts N spaces between each bibliography entry 2013-03-04 18:48:41 -07:00
Jon Rafkind
81d58b1cb6 [honu] fix lexical context for require forms. fixup the module name to replace _ with - 2013-03-04 18:48:41 -07:00
Jon Rafkind
9a9b30c751 [honu] many small things: allow with syntax to bind arbitrary patterns. provide time and time-apply. make compress-dollars recurse on sub-expressions. add an implicit pattern variable that consists of the result with an ellipses depth of 1. fix the while form. allow require forms to contain mostly anything and be separated by commas. 2013-03-04 18:48:41 -07:00
Jon Rafkind
c3716d5a97 [honu] mark/unmark syntax parsed through the expression syntax class 2013-03-04 18:48:40 -07:00
Eric Dobson
22ef10c544 Fix heterogeneous vector typechecking. 2013-03-04 09:36:56 -08:00
Eric Dobson
485f246f39 Fix type of set?. Closes PR13509. 2013-03-04 09:17:40 -08:00
Matthew Flatt
114ab498d6 scribble: fix regression in HTML rendering
Fixes a problem with 2d5884b26a.
2013-03-04 07:53:18 -07:00
Matthew Flatt
5e20f51415 fix mark handling for impersonatored procedures to match docs
Using an impersonator property to represent an application mark was
a bad choice. The property gets propagated, so it is also on any later
chaperone layer, and then things go bad: the docs say that special
treatment is triggered by supplying an argument to `impersonate-property',
but it was actually triggered by the chaperone having the property.

Change the implementation to match the documentation. Using an
impersonator property to supply the mark should be regarded as a hack,
but now the implementaiton is at least consistent with the documentaiton.
2013-03-03 10:16:51 -07:00
Matthew Flatt
8c3eb7dcb4 slideshow/pict: add #:alpha' argument to pin-line' 2013-03-03 10:16:50 -07:00
chrdimo
7f67252cb3 replacing applicable structures for procedure options with chaperones + tweak-option + with-contract mode 2013-03-02 23:36:21 -05:00
Robby Findler
be0e32b224 remove a use of normal-case-path
closes PR 6086
2013-03-02 20:41:51 -06:00
Asumu Takikawa
855ce453a0 Fix docs on udp-open-socket 2013-03-02 13:37:29 -05:00
Asumu Takikawa
312792ac4d Set the socket protocol family
Allows the use of an IPv6 nameserver
2013-03-02 13:36:34 -05:00
Asumu Takikawa
3ab83001b4 Support reverse lookups with IPv6 addresses 2013-03-02 14:26:28 -05:00
Asumu Takikawa
cf4c71a51f Shorten IPv6 addresses for display 2013-03-02 14:26:28 -05:00
Asumu Takikawa
c2e8ef30e4 Support querying AAAA records for IPv6 2013-03-02 14:26:27 -05:00
Asumu Takikawa
621fc2b256 Start to add internal documentation 2013-03-02 14:09:30 -05:00
Robby Findler
3a40afaf05 used the wrong dir when checking the info.rkt santity
thanks to Jos Koot for pointing out this bug
2013-03-01 19:38:57 -06:00
Robby Findler
42847ea523 follow up to William J. Bowman's commit
- put the tests together with the other define-union-language tests
- fix the docs
- add a release note
- construct the merged language a bit more directly
- properly deal with this kind of thing:
  (define-language L1 (e f ::= 1 2 3))
  (define-language L2 (e g ::= 4 5 6))
  (define-union-language L L1 L2)
2013-03-01 19:38:57 -06:00
William J. Bowman
b0db8798b6 Changed `define-union-language' to merge nonterminals and their
right-hand-sides instead of causing an error when more than one language
in the union defines the same nonterminal.
2013-03-01 19:38:57 -06:00
Robby Findler
32774924e2 tweak docs 2013-03-01 19:38:57 -06:00
Matthew Flatt
0acb9b8432 doc correction and test additions for `atan'
Closes PR 10324
2013-03-01 15:28:39 -07:00
Matthew Flatt
5ab12b36cf openssl: remove special handling of OpenBSD
This special handling is now built into `ffi-lib'.
2013-03-01 15:20:17 -07:00
Matthew Flatt
cdf0f6b9ab add 'so-mode to `system-type'
To work better with OpenBSD (which has been a problem since we
changed `ffi-lib' to open libraries in "local" mode by default).
2013-03-01 15:20:17 -07:00
Matthew Flatt
174a80f078 doc repair 2013-03-01 15:20:17 -07:00
Matthew Flatt
cb8dd143d9 slideshow/balloon: add `balloon-enable-3d' 2013-03-01 15:20:17 -07:00
Asumu Takikawa
c4cdcafec4 Minor fix in Guide chapter 11 2013-03-01 16:22:36 -05:00
Asumu Takikawa
94b2ebddfa Add DNS tests 2013-03-01 16:22:36 -05:00
Asumu Takikawa
50cd4645c1 Another small contract fix 2013-03-01 16:22:36 -05:00
Asumu Takikawa
e74c8b1b01 Fix broken link 2013-03-01 16:22:36 -05:00
Asumu Takikawa
ef4b3feb8d Improve Guide chapter 7
* Typos/grammar
 * Fix breakdown of contract error message
 * Show `struct/dc` instead of deprecated lazy contracts
2013-03-01 05:16:43 -05:00
Asumu Takikawa
14c77c39d2 Fix net/dns contracts 2013-03-01 00:48:11 -05:00
Asumu Takikawa
9d08d69d07 Add contracts to net/dns functions. 2013-03-01 00:05:40 -05:00
Robby Findler
3d0af847b6 add macports default path as a place to look for aspell 2013-02-28 20:45:23 -06:00
Eli Barzilay
5e9d1ce92f Use the `not-on-the-web' style *around* the installation comment.
Otherwise making it have a "display: none" style leaves a visible empty
div.
2013-02-28 15:11:04 -05:00
Asumu Takikawa
2065c8203e Guide chapter 6 tweaks 2013-02-28 10:08:54 -05:00
Asumu Takikawa
48d067741b Improve Guide section 5 2013-02-28 10:08:54 -05:00
Asumu Takikawa
43912bef50 Some tweaks for Guide section 4 2013-02-28 10:08:54 -05:00
Asumu Takikawa
5790667054 Remove duplicate non-terminals in define-extended-language
Fixes a problem with `define-union-language`
2013-02-28 12:16:25 -05:00
Matthew Flatt
2236363696 fix bug in hashing shortcut for transparency 2013-02-28 10:06:36 -07:00
Chris K. Jester-Young
9e93ee2682 Convert srfi/61/cond to use modern module style.
This ensures that `=>` and `else` have the same bindings as the ones in
`racket/private/cond`; otherwise it would not be possible to use SRFI 61
`cond` from a `#lang racket/base` program/module.

Tested under both `#lang racket` and `#lang mzscheme`.
2013-02-28 10:05:50 -05:00
Robby Findler
8a08cfcbbf adjust plai test suite tests to check the ports that things now go to 2013-02-28 07:12:15 -06:00
Eli Barzilay
b84a7bce66 Fix typo in `string-replace' keyword name. 2013-02-28 01:49:50 -05:00
Robby Findler
27d79aac18 don't try to re-use the active frame when it isn't shown
This is a bit suspicious, since it isn't clear why a frame
whose show method has been called with #f should be considered
an active frame. Since changing that is a much more dangerous
change then, for now: closes PR 13564
2013-02-27 22:35:39 -06:00
Robby Findler
0d3fc7db93 adjust test case for improved ->i handling in check syntax 2013-02-27 21:30:37 -06:00
Robby Findler
b0ed3b49e0 adjust plai test & co. to print only failing tests to stderr,
instead of printing all of them

also, adjust the plai test suites to cope with test results going
to two different places
2013-02-27 21:30:37 -06:00
Robby Findler
48b2410755 fix a bug in ->i parsing 2013-02-27 19:20:27 -06:00
Robby Findler
03751b8f34 Rackety
This commit is to giure out just how much Rackety can combat rightward drift
in this file (this was a region of code edited recently for other reasons)
Turns out that the first hunk's rightmost column (of code, not counting
comments) moved left by 39 chars and the second by 40 chars
2013-02-27 19:20:26 -06:00
Robby Findler
727d11df83 adjust plai's test facility to print test failures to stderr
instead of stdout (in addition to making errors red in drracket,
this will also make some of the existing test suites more
drdr friendly)
2013-02-27 19:20:26 -06:00
Danny Yoo
f5e85a6503 Modify exn:test:check to support prop:exn:srclocs to produce good error messages even without debugging enabled.
Closes PR-13451.
2013-02-27 12:02:00 -07:00
Matthew Flatt
17a99bf1d8 docs tweak 2013-02-27 08:53:43 -07:00
Matthew Flatt
f8c30338db fix problem with `raco exe' and cross-phase persistent modules
Relevant test is "teaching-lang-executable-creation.rkt" iin
"tests/drracket".
2013-02-27 08:53:43 -07:00
Matthew Flatt
abf44f8b49 add `module-compiled-cross-phase-persistent?' 2013-02-27 08:53:43 -07:00
Matthew Flatt
88a36a077c terminology change again: "cross-phases persistent" modules 2013-02-27 08:53:43 -07:00
Matthew Flatt
c1469b9480 fix a test 2013-02-27 08:53:43 -07:00
Matthew Flatt
a46849f3b9 minor decompiler tweak 2013-02-27 08:53:43 -07:00
Eli Barzilay
ee69dc58bc Allow "*" directories in distribution specs.
Useful to avoid deleting stuff from directories that might have
non-distributed materials.
2013-02-27 10:31:28 -05:00
Robby Findler
574fc8f50f add a missing arg to jump-to-next-callback
closes PR 13560
2013-02-26 21:55:17 -06:00
Robby Findler
9621a58c4c change expansion of ->i to make renaming work better in check syntax
Specifically, when expanding in the body of a dependent argument, put
the original variable for the dependened on field into that code, but
changing the expansion so that the binder becomes the original field's
x, not the x in the dependent declaration list.

This means that, for example, in this program:

(->i ([x any/c]
      [y (x) (begin x any/c)]
      [z (x) (begin x any/c)]) any)

the first x will be the binder and the other four now count as
bound occurrences.

Also, rip off Casey's redex check syntax tests to add tests

closes PR 13559
2013-02-26 21:55:17 -06:00
Burke Fetscher
76421ee786 Fix expansion for relations in term positions.
Explicitly disables random generation for relations in term
positions, but fixes a problem with runtime functionality
for the same.
2013-02-26 21:11:06 -06:00
Matthew Flatt
a04bfa5ba2 fix phase-collapsing-module inference
This bug was causing a crash in some DrRacket tests.
2013-02-26 19:19:57 -07:00
Matthew Flatt
e15569e006 add `racket/kernel/init' 2013-02-26 19:01:36 -07:00
Matthew Flatt
2646ff6895 try "phase-collapsing" instead of "phaseless" 2013-02-26 19:01:36 -07:00
Matthew Flatt
2e652fc2b3 fix some "phaseless" module holes 2013-02-26 19:01:35 -07:00
Asumu Takikawa
30c381f0b1 Various improvements to Guide section 3
* Examples
  * Scheme -> Racket
  * Grammar & style
2013-02-26 19:30:54 -05:00
Asumu Takikawa
ef08cc41e7 Enable contract and add a purpose statement 2013-02-26 17:38:05 -05:00
Matthew Flatt
899a3279c2 add experimental support for "phaseless" modules
The intent is to support phase-crossing data such as the `exn:fail:syntax'
structure type that is instantiaed by macros and recognized by contexts
that use `eval' or `expand'. Phaseless modules are highly constrained,
however, to avoid new cross-phase channels, and a module is inferred to
be phaseless when it fits syntactic constraints.

I've adjusted `racket/kernel' and improved its documentation a little
so that it can be used to implement a phaseless module (which can
import only from other phaseless modules).

This change also adds a `flags' field to the `mod' structure type
from `compiler/zo-structs'.
2013-02-26 14:55:28 -07:00
Danny Yoo
9b86d4452f Modify the src-pos error reporting in parser-tools to better show the token context.
Addresses PR 9924.
2013-02-26 13:20:47 -07:00
Robby Findler
bc479b41c5 adjust scribble-lexer test to handle errors 2013-02-26 12:41:25 -06:00
Robby Findler
3c295d14d0 fix lexer contract 2013-02-26 12:41:25 -06:00
Robby Findler
478ec22d02 add with-roots to plai's gc languages 2013-02-26 12:41:25 -06:00
Robby Findler
87a8e6f677 fix unstable/2d's lexer to handle eof better 2013-02-26 12:41:19 -06:00
Eli Barzilay
8117b6b471 Change the symlink that serves docs to the one that holds the tweaked version. 2013-02-26 09:43:54 -05:00
Eli Barzilay
d746850664 Add template file for tweaked docs. 2013-02-26 09:43:54 -05:00
chrdimo
a3a98fd933 support for keyword argumnets + transfer-option, exercise-option and waive-option do not raise an error on values without an option 2013-02-25 22:18:17 -05:00
Vincent St-Amour
2846c17cb4 Fix the fix to TR contracts. 2013-02-25 20:10:14 -05:00
Vincent St-Amour
034aacafab Fix TR contracts. 2013-02-25 19:25:39 -05:00
Vincent St-Amour
088006413f Generalize type of curry to functions of arity 3+. 2013-02-25 14:03:17 -05:00
Eli Barzilay
2abcb883cd Minor improvements to version-specific download pages. 2013-02-25 11:08:30 -05:00
Matthew Flatt
d113e79fb5 file/untgz: fix race 2013-02-25 06:44:45 -07:00
Robby Findler
8c0291e2c6 traditional chinese string constants update, also from Chongkai Zhu 2013-02-24 16:40:23 -06:00
Robby Findler
18a5dcb3d3 add port-count-lines? to the lexer contract 2013-02-24 16:37:06 -06:00
Robby Findler
a0059f791a more 2d lexer repairs 2013-02-24 16:37:06 -06:00
Eli Barzilay
250880d2a4 Add links to old documentations.
* The all-versions page has a docs column with html/pdf links, and also
  two links in the nightly builds footer.

* Specific version download pages have a link to the docs for that
  version.  (Only html, to save space.)
2013-02-24 17:12:03 -05:00
Eli Barzilay
9b1247b00d Revert "Adding link to prior versions of the docs."
Instead, add links to the web pages.

This reverts commit 87a5280b13.

Conflicts:
	collects/scribblings/main/config.rkt
2013-02-24 16:59:52 -05:00
Eli Barzilay
c7173cd1c6 Improve `file' tests.
* Move sha1 test to the same place, to be run like the others.

* Unify tests for untar and unzip.

* Also improve them: test results instead of failing with errors.  Also,
  generate random text to archive, and use 0 for group+other permission
  bits (to avoid world writable results on an error).
2013-02-24 15:16:00 -05:00
Eli Barzilay
cae6b53178 Make cat%' into a macro so ~a' etc get a proper name. 2013-02-24 15:16:00 -05:00
Eli Barzilay
7d2aa88f3d Improve label generation code. 2013-02-24 15:16:00 -05:00
Matthias Felleisen
3818954dc3 properly named 2013-02-24 15:13:42 -05:00
Robby Findler
b3e803c757 add context information into the error messages for option contracts
Also, minor code cleanup (don't create a function and pass it
around when has only one thing in its closure and you can
just pass that around, especially when passing the function around
makes the code harder to read and the created function has to
have a "dot" arglist and use "apply" in its body)
2013-02-24 09:04:47 -06:00
Robby Findler
4b8813bb0e adjust syntax browser to work better for literal hashes and vectors
closes PR 13537
2013-02-23 20:26:57 -06:00
Robby Findler
814b9e490c add a keystroke to widen a rectangle 2013-02-23 20:12:56 -06:00
Robby Findler
fe515e3ac7 fix bugs in unstable/2d lexer 2013-02-23 20:12:56 -06:00
Robby Findler
40363da511 forgot to add this file in my previous commit 2013-02-23 19:50:34 -06:00
Robby Findler
d25cbed6c0 add scrollbars 2013-02-23 16:51:30 -06:00
Robby Findler
5e2cc344c8 change the option setup: everyone has an option contract now and
the module lexer either exercises or not, depending on its level of trust
2013-02-23 16:26:46 -06:00
Robby Findler
64d7911fe5 add has-option? to check if a value has an option contract or not 2013-02-23 16:26:46 -06:00
Robby Findler
18c009276d fix up tests to reflect the module-lexer now behaves a little
better wrt to its first result

That is, instead of just returning the string "#lang" it now
returns the actual text that was there (it was supposed to be
doing that all along and my recent commit fixed it, but I
missed the test cases)
2013-02-23 15:42:43 -06:00
Danny Yoo
18889de808 Add 'extra' to emphasize the intended meaning.
Closes PR 13550.
2013-02-23 13:59:07 -07:00
Danny Yoo
9dd81411b0 Use @racket[] on the unquote-splicing identifier so that we get good hyperlinking.
Closes PR 13548.
2013-02-23 13:43:36 -07:00
Robby Findler
b0343aa9f0 add a contract on the interaction between the module-lexer and the
lexers it defers to

also, remove the checks in color.rkt in the framework (they are not
all covered by the added contract, but they mostly are and when they
aren't, most of those times are using the heavily tested racket-lexer)
2013-02-23 14:35:25 -06:00
Matthew Flatt
4cc9eb0326 Revert "racket/draw win32: work around a Pango bug"
This reverts commit 8f9606007f.

Figured out how to compile and fix Pango after all.
2013-02-23 08:42:36 -07:00
Eli Barzilay
334e1cfdd9 Some style things. 2013-02-23 02:09:56 -05:00
Eli Barzilay
cec73f5652 Newlines at EOFs scan. 2013-02-23 02:09:56 -05:00
Patrick Mahoney
b265e260b2 Move eopl language to Racket.
- sllgen.rkt - use begin-for-syntax+define-syntax instead of
  define-syntax-set.
- eopl.scrbl - rewrite *3-columns so that it no longer errors when 3
  doesn't divide the number of reprovided lang forms.
- Removal of mzscheme and mzlib requires.
- Updated docs.
2013-02-23 02:08:30 -05:00
Eric Dobson
f6df93ed96 Make mutable lists be sequences. 2013-02-22 21:01:21 -08:00
Robby Findler
b40e38bb11 fix documentation errors
closes PR 13543
2013-02-22 15:55:10 -06:00
Robby Findler
d403f3c6db add docs to address how image equality, rounding, and alpha values
can conspire to confuse

closes PR 13541
2013-02-22 15:40:08 -06:00
Robby Findler
17d6e162bc minor clarifications of the docs (that would have helped me
understand some of the details better).
2013-02-22 15:40:08 -06:00
Danny Yoo
7558eb4c9e Conditionally link to the SRFI docs on docs.racket-lang.org when rendering PDFs.
Closes PR 11804.
2013-02-22 12:06:19 -07:00
Matthias Felleisen
200c20967d make read-csv-file/rows available in BSL; closes PR 13542 2013-02-22 12:39:12 -05:00
Robby Findler
09f9f31213 various 0-sized image repairs
closes PR 13540
2013-02-21 19:25:48 -06:00
Danny Yoo
61db1d6405 Add link to the syntax of the @-reader.
Also defines the "@-form" term in the @-syntax section due to its
frequency.

Closes PR-12589.
2013-02-21 15:03:01 -07:00
Asumu Takikawa
e8b49e2c82 Add doc subforms for keyword types 2013-02-21 15:35:14 -05:00
Asumu Takikawa
1cf1e1baa4 Add an example for local-require 2013-02-21 14:45:45 -05:00
Vincent St-Amour
e69f66fd00 Add examples of function types with keyword arguments. 2013-02-21 10:49:58 -05:00
Vincent St-Amour
034d7245a4 Filters for comparisons with inifinity. 2013-02-21 10:49:57 -05:00
Vincent St-Amour
12aaa229a3 Fix subtyping for Negative-Single-Flonum. 2013-02-21 10:49:57 -05:00
Matthew Flatt
42b8163f8f fix docs on `case'
The Guide was was out-of-date in several ways, and the Reference
didn't describe the dispatch-time guarantee.
2013-02-21 08:34:54 -07:00
Matthew Flatt
71cffcffdf fix Guide spec for when' and unless'
Closes PR 13538
2013-02-21 08:34:54 -07:00
Matthew Flatt
772afd94fd fix docs for `begin0'
It's body currently isn't an internal-definition position.
2013-02-21 08:34:54 -07:00
Robby Findler
c37cd388a2 adjust docs example to use collection-file-path and
to say a little more about checksums
2013-02-21 07:49:24 -06:00
Eric Dobson
18d90115e7 Make naturals be a sequence type. 2013-02-20 21:25:02 -08:00
Eric Dobson
4f9f00680e Make (Set a) a subtype of (Sequenceof a).
Closes PR13485.
Closes PR12615.
2013-02-20 21:25:02 -08:00
Eric Dobson
a7bc758505 Fix subtyping of invariant data structures.
Closes PR13521.
2013-02-20 21:25:02 -08:00
Eric Dobson
ddb8e7f807 Add subtyping for Parameters.
Closes PR11992.
This required moving more stuff in to base-abbrev so that it could be
used in subtype.
2013-02-20 21:25:02 -08:00
Eric Dobson
0b87c999b3 Make struct types overlap with procedures.
Closes PR11971.
2013-02-20 21:25:02 -08:00
Robby Findler
5eddac7482 fix the use of impersonator-ephemerons in the framework preferences library 2013-02-20 21:13:02 -06:00
Robby Findler
a25a073bc3 new simplified string constants; from Chongkai Zhu 2013-02-20 21:13:01 -06:00
Robby Findler
661c29b8d4 tweak 2013-02-20 21:13:01 -06:00
Danny Yoo
fa4fb3ebaf Add reference to the DrRacket interface essentials from the Quick Start guide.
This adds a tag to DrRacket File menu docs.  It adds two margin notes
to the quick start, one linking to the essentials for using DrRacket,
and the other for saving Definitions.

Addresses PR 9501.
2013-02-20 17:15:32 -07:00
Danny Yoo
0b0ce6574a Note that integer-sqrt produces exact output when given exact input.
Closes PR 9542.
2013-02-20 16:39:36 -07:00
Stephen Chang
9e26cd0b7a one more integer-set test 2013-02-20 18:34:58 -05:00
Stephen Chang
aeff5922b7 add test for integer-set:
- check that taking the rest of an integer-set results in a proper integer-set
2013-02-20 18:32:01 -05:00
Stephen Chang
bd1141c670 fix bug in getting "rest" of an integer-set 2013-02-20 17:54:17 -05:00
Matthew Flatt
5fcc96e41a add space before "View Prior Versions" 2013-02-20 06:51:34 -07:00
Robby Findler
2f50cde745 signal error when attempting to generate from a
metafunction with no cases

closes PR 13536
2013-02-19 22:08:31 -06:00
Robby Findler
c6f106d285 remove spurious printf 2013-02-19 19:18:17 -06:00
Matthew Flatt
0afcda2a5a fix error checking for flreal-part' and flimag-part' 2013-02-19 16:47:39 -07:00
Asumu Takikawa
5e37134d94 Index some info.rkt fields for raco setup 2013-02-19 16:36:16 -05:00
Asumu Takikawa
db4a1632e5 Minor doc fixes 2013-02-19 16:36:16 -05:00
Asumu Takikawa
ea0c14dac2 Rackety 2013-02-19 16:36:16 -05:00
Matthew Flatt
ce960756cb scribble: fix 'aux stripping for hyperlinks and HTML titles 2013-02-19 14:03:01 -07:00
Matthew Flatt
c9c4d33a2f scribble/sigplan: add `subtitle'
Based on David Van Horn's suggestion.

Also, make both `author' and `authorinfo' work (even when mixed).
2013-02-19 14:03:00 -07:00
Danny Yoo
87a5280b13 Adding link to prior versions of the docs. 2013-02-19 13:33:49 -07:00
Robby Findler
d3e1c16159 adjust the c:x;n and c:x;p keybindings to use the
same information as the yellow green bubbles

Before, when you typed c:x;n, drracket would look at the identifier
you're on, find its binder, find all bound occurrences of that binder,
sort them by position in the buffer, and then jump to the one that
follows where you are.

This works great for things like the "x" in "(let ([x 1]) x x)"
but not so great for things like the "define" in:

  #lang racket
  (define x '(+ 1 2))
  (define y '(+ 3 4))

since that would jump to the quote, since there are bindign arrows
going from the "racket" to the define and to the quote.

Now, since it is using information ultimately derived directly
from (and only from) free-identifier=? (the arrows also come from
identifier-binding, which is how we get those arrows in the second
example above) you jump from the first define to the second define,
which seems better.
2013-02-19 13:52:42 -06:00
Robby Findler
164a5831b8 use impersonator-ephemeron to allow a
real contract on preferences:add-callback
2013-02-19 13:52:42 -06:00
Danny Yoo
796550bd9f Add example of mixin form to guide documentation.
Closes PR 13445.
2013-02-19 12:44:21 -07:00
Matthew Flatt
e99fcf65c1 add ackn 2013-02-19 08:56:03 -07:00
Matthew Flatt
8f9606007f racket/draw win32: work around a Pango bug
Pango crashes (with an assertion failure) on characters U+1D173
through U+1D17A. Trying to fix (or even just compile) Pango for
Windows is hard, so skip the characters at the `draw-text' and
`text-extent' level.

The bug is unlikely to be specific to just those characters in the
long run, but only those characters appear to be problematic on my
Windows 7 installation. So, the workaround may be enough for many
installations, and hopefully the Pango bug wil be fixed one day.

Relevant to PR 13513
2013-02-19 08:48:04 -07:00
Matthew Flatt
ca951294d4 JIT: inline char->integer' and integer->char' 2013-02-19 08:43:50 -07:00
Eli Barzilay
46894e0cc6 Improve comment. 2013-02-19 00:22:47 -05:00
Matthew Flatt
2d5884b26a scribble: fix "on this page" rendering
A recent change improved "on this page" handling and also
fixed a short-circuit test to almost certainly do what
was originally intended, but the test was wrong, so just
get rid of it.
2013-02-18 17:34:16 -07:00
Matthew Flatt
d043a08b82 fix `plt-games' launcher 2013-02-18 17:23:01 -07:00
Danny Yoo
7323dde0ea Revert most of the change to word break, but introduce a nbsp for browser metrics.
Related to PR 13305: I tried to use zero-width-space to force appropriate
line breaks, but unfortunately under Opera on Linux, this shows as
unsupported character glyphs.

Since I can't reliably use zero-width-space, I'm backtracking to the
prior solution on introducing spans with the mywbr class.  However,
I've added in a &nbsp element to the content of the span, as suggested
elsewhere on the web.  This appears to fix the _gcpointer issue that
Eric sees.
2013-02-18 17:19:17 -07:00
Matthew Flatt
7235c64355 fix cross-reference 2013-02-18 17:11:38 -07:00
Matthew Flatt
0e251be6cb Revert "avoid a wrapper on callbacks that get stored in a weak table"
This reverts commit d1357f2294.

Commit 38d6afe07c fixes the problem more generally.
2013-02-18 17:01:11 -07:00
Matthew Flatt
dbdfd4236f racket/snip: fix style-list%' notify-on-change' and contracts
The method uses the new `impersonator-ephemeron' function to
retain a callback as long any value that it impersonates
is reachable.
2013-02-18 17:01:11 -07:00
Matthew Flatt
79c4af4e45 racket/base: add `impersonator-ephemeron' 2013-02-18 17:01:11 -07:00
Matthew Flatt
d46411d317 ffi/unsafe: add _size', _ssize', _ptrdiff', _intmax', `_uintmax'
These additions could create backward-compatibility problems, but our
searches suggest that problems will be rare; it's more common for
`_size_t' to be incorrectly aliased to `_int', so having definitions
for these standard types is likely to avoid future problems.
2013-02-18 17:01:11 -07:00
Robby Findler
85f9fbbaee interactivity fix for online check syntax
commit e503850f21 broke drracket's
interactivity (for some files it could take 2 seconds to do
that one line)

This changes the bindings-table so that it maps to sets instead of
lists. Now, instead of mutating all entries in the table right after
collecting everything, just leave them as sets until we need the info
and just sort a single entry, when it is needed
2013-02-18 16:33:50 -06:00
Robby Findler
e720d1df92 add parameterize* to tabing and smart opening square bracket pref defaults 2013-02-18 13:38:34 -06:00
Matthew Flatt
08604b0277 scribble: preserve order of ".js", ".css", and ".tex" additions 2013-02-18 11:14:31 -07:00
Matthew Flatt
fdd8dc9376 JIT: fix bug in checking certain values before unboxing
The check was incomplete in the case that both arguments to a binary
[ext]flonum function need to be checked and the second one was not an
[ext]flonum and also not a fixnum.
2013-02-18 11:07:45 -07:00
Matthew Flatt
4271d987cd ffi/unsafe: fix a bug in conversion to UTF-16
Characters outside of the BMP were translated incorrectly.
2013-02-18 10:28:58 -07:00
Eric Dobson
13b205aa0a Fixes *-filter types and filter of zero?.
Closes PR13275.
2013-02-18 11:56:59 -05:00
Eric Dobson
36cc3220ea Improve type of make-immutable-hash.
Closes PR13297.
2013-02-18 11:56:58 -05:00
Eric Dobson
7d6888f229 Improve types for exit and in-naturals. 2013-02-18 11:56:57 -05:00
Eric Dobson
7e88895bd0 Add testcases for many already fixed bugs.
Closes PR11901.
Closes PR11972.
Closes PR12022.
Closes PR12224.
Closes PR12506.
Closes PR12533.
Closes PR12596.
Closes PR13198.
Closes PR13418.

Already fixed bugs, with existing testcases.
Closes PR12529.
Closes PR12631.
Closes PR13127.
Closes PR13128.
Closes PR12970.
2013-02-18 11:56:55 -05:00
Robby Findler
8fb49059cb add a 'jump to previous binding occurrence' keybinding 2013-02-18 10:38:43 -06:00
Robby Findler
e503850f21 fix the c:x;n keybinding when used with online check syntax info
(and perhaps other parts of online check syntax)
2013-02-18 10:38:43 -06:00
Robby Findler
1c2432e654 improve the interactions history window a little 2013-02-17 20:17:41 -06:00
Robby Findler
ddacc3efbb don't save repl interaction history when the new item is
a duplicate of the one before

closes PR 12763
2013-02-17 10:02:15 -06:00
Robby Findler
1a8ed3d74b unbreak scheme-lexer 2013-02-16 19:55:18 -06:00
Robby Findler
dbb1d8f360 adjust scribble lexer so its failures print to stderr, not stdout 2013-02-16 19:55:18 -06:00
Robby Findler
5c109946c2 add support to struct/dc to name the selector directly
and use that in struct/c

closes PR 13054
closes PR 13461
related to PR 13050
2013-02-16 17:24:11 -06:00
Ryan Culpepper
44e26d493d try to make tmp file path shorter (for drdr) 2013-02-16 15:18:55 -05:00
Eli Barzilay
93063be2b7 Remove binary file that was added by mistake. 2013-02-16 13:41:38 -05:00
Eli Barzilay
9e9adeae0c Consistent capitalization for "GRacket". 2013-02-16 13:41:38 -05:00
Matthew Flatt
83900f0d20 fix up some cross references 2013-02-16 09:49:24 -07:00
Matthew Flatt
9b04aef0f8 fix a problem with `syntax-local-lift-require' at top level
The problem was exposed by improved error checking
in the expander to detect references to exports of a module that
is not yet visited, and as triggered by the documentation for
`2htdp/planetcute'.
2013-02-16 09:29:16 -07:00
Matthew Flatt
72c39ca7ff test fixups 2013-02-16 08:56:21 -07:00
Robby Findler
fbeecdc1aa add gc log following info to the drr performance monitor 2013-02-16 07:39:33 -06:00
Mike Sperber
5db56e3186 Synch German string constants with latest. 2013-02-16 10:52:42 +01:00
Robby Findler
d5ffb1e3c0 add in the rest of the double barred chars (╬ and company)
and adjust the existing ones a little
2013-02-16 00:09:26 -06:00
Robby Findler
1ee765c7e3 fix bad test 2013-02-16 00:09:25 -06:00
Eli Barzilay
f27a48e46f Commentage. 2013-02-16 00:49:17 -05:00
Matthew Flatt
c8ae8c419a scribble Latex: support all 2d-cond characters 2013-02-15 21:09:18 -07:00
Matthew Flatt
23d0627acc scribble: improve HTML handling of 'unnumbered and 'toc-hidden
A part with style property 'toc-hidden no longer
hides child sections, which makes it consistent with Latex/PDF
rendering.

A part with style 'grouper and 'unnumbered does not make its
child parts render as more nested, which is consistent with
'gruper without 'unnumbered. An unnumbered grouper is represented
as "" in a section-number list (while #f is still used for
unnumbered non-grouper layers).
2013-02-15 20:11:18 -07:00
Matthew Flatt
80a22493bd doc clarification 2013-02-15 16:02:53 -07:00
Matthew Flatt
0c37849f81 racket/gui: fix contract of set-value' in gauge%' 2013-02-15 16:02:53 -07:00
Asumu Takikawa
9ef9330d4e Informative error message for raco pkg remove
When a user tries to remove a package installed in a
different scope, notify them.
2013-02-15 15:44:31 -05:00
Eli Barzilay
173f2896bd v5.3.3 installers info 2013-02-15 15:36:31 -05:00
Asumu Takikawa
e7a434559f Add a missing contract 2013-02-15 15:25:07 -05:00
Michael Filonenko
840fc9c657 full unboxing for extflonums, plus `ffi/unsafe' support
Includes a repair for floating-point `min' and `max' that affects all
x86 builds that use SSE arithmetic, leaving the (otherwise unused)
floating-point stack in a bad state, which might have affected
x87-using C/foreign libraries running alongside Racket.
2013-02-15 12:15:34 -07:00
Robby Findler
93bf0cd663 fix 2d lexer for the case when the #2d expression
isn't in the leftmost column
2013-02-15 10:29:34 -06:00
Robby Findler
4df519d8d7 I'm responsible for 2d 2013-02-15 07:47:42 -06:00
Matthew Flatt
655444ada9 racket/snip: contract repairs 2013-02-14 19:49:48 -07:00
Matthew Flatt
6a218e196a racket/enter: another submodule repair
When a submodule is required from the load handler and no such
module is available, the load handler is not supposed to raise
an exception.
2013-02-14 19:47:40 -07:00
Matthew Flatt
b22ac3b990 compiler/cm-accompice: log to a logger named 'cm-accomplice 2013-02-14 19:47:40 -07:00
Matthew Flatt
d5c1a75e38 racket/gui cocoa: fix over-eager refresh for 'gl canvas% 2013-02-14 19:47:40 -07:00
Robby Findler
ca8ad3b88b try to be slightly smarter about invalidating the green region
in the line numbers when it moves around

specifically, if the before and after green line are right
next to each other, then put it into a single edit sequence
(which unions the invalidated regions); if not, then we
may be jumping far away, so invalidate the two regions
and redraw them separately
2013-02-14 19:51:08 -06:00
Robby Findler
30ca1f0baf add syntax coloring for 2d syntax 2013-02-14 19:51:08 -06:00
chrdimo
79b8661e13 restoring the link to unix sockets docs 2013-02-14 20:27:03 -05:00
chrdimo
a4f4773597 docs for option contracts 2013-02-14 19:56:43 -05:00
chrdimo
26726ba26f tests for option contracts 2013-02-14 19:55:10 -05:00
chrdimo
ee81c98ae9 extending option contracts; now handle procedures, vectors, hashes, struct instances, adding support for invariants for vectors, hashes and struct instances 2013-02-14 19:53:26 -05:00
chrdimo
61e896c8d7 small fix in blame-update and small change in error message for multiple blame labels 2013-02-14 19:50:56 -05:00
Matthew Flatt
a96b093d97 ffi/unsafe: unbreak 2013-02-14 17:30:10 -07:00
Matthew Flatt
ccabbaa36e fix `current-subprocess-custodian-mode' for a #f argument 2013-02-14 17:30:10 -07:00
Matthew Flatt
6c49aee3a6 doc: add some links 2013-02-14 17:30:10 -07:00
Eric Dobson
5ed26e806b Make lists with minimum lengths be a subtype of sequences. 2013-02-14 18:24:52 -05:00
Eric Dobson
3c31803c19 Add a simple-Union and Bottom, and have code use them.
Requires splitting out the match expanders from base-abbrev.
2013-02-14 18:24:52 -05:00
Eric Dobson
b4beabc977 Make tc-let do unions correctly. 2013-02-14 18:24:52 -05:00
Vincent St-Amour
60959467cf Fix optimization of unary complex - and /. 2013-02-14 18:24:52 -05:00
Vincent St-Amour
c6029cacf8 Fix optimizations for complex unboxing.
Omitted parts were not used properly.
2013-02-14 18:24:52 -05:00
Vincent St-Amour
29a181175f Improve a number of numeric function types.
Closes PR13468.
2013-02-14 18:24:52 -05:00
Asumu Takikawa
471a1e1ee6 Refactor documentation of pen%, font%, brush% 2013-02-14 18:22:48 -05:00
Asumu Takikawa
bf4e69fea9 Export racket/draw's helper contracts and document them 2013-02-14 18:22:48 -05:00
Asumu Takikawa
ed13e87734 Refactor contracts 2013-02-14 18:22:47 -05:00
Matthew Flatt
dfdc22ea12 doc repair
Closes PR 13415
2013-02-14 15:55:07 -07:00
Matthew Flatt
3cd4ee1c0d ffi/unsafe: allow multiple values for a `(_fun ... -> _racket)' result
Closes PR 13496
2013-02-14 15:45:26 -07:00
Matthew Flatt
421cb24138 add `port-counts-lines?' 2013-02-14 15:45:26 -07:00
Matthew Flatt
99d5dc95bf add ackn 2013-02-14 15:45:26 -07:00
Tobias Hammer
7e2b443fa9 Support for multiple value return from wrap-evt and handle-evt
wrap/handle-evt that receives multiple values must have a handler function with adequate arity.

struct.c:
  change contract for wrap/handle-evt from (any/c -> any) to procedure?
thread.c:
  adjust sync processing
sync.rktl:
  add test for handle-evt, wrap-evt and prop:evt
2013-02-14 15:45:26 -07:00
Ryan Culpepper
1cb6c03488 clean up socket code 2013-02-14 17:19:08 -05:00
Ryan Culpepper
b3afbdd485 added unstable/socket 2013-02-14 17:19:08 -05:00
Ryan Culpepper
7a0b100ce0 tests for unstable/macro-testing 2013-02-14 17:19:08 -05:00
Danny Yoo
9ed78f2752 Include zero-width-space in string-normalize.
Closes PR 12683.
2013-02-14 13:24:31 -07:00
Matthew Flatt
f1b4c86519 net/ftp: put temp file for download in directory of destination 2013-02-14 13:03:58 -07:00
Matthew Flatt
294bed209e macro expander fix
Repair 73e07f576b added an item to a list without incrementing a
counter for the list length, which cause a different element of
the list to be dropped, which could mess up binding resolution in
arbitrarily bad ways.

(Ths bug falls into the "how did this not get exposed earlier?"  bin,
although part of the answer is that it requires a combination of
module re-expansion and simplification of syntax objects in the
residual program.)

Closes PR 13428
2013-02-14 07:11:16 -07:00
Ryan Culpepper
fbee1ed9c7 change stxparse tests to use unstable/macro-testing 2013-02-13 16:14:49 -05:00
Ryan Culpepper
1ef3845873 added unstable/macro-testing 2013-02-13 16:14:45 -05:00
Robby Findler
7dff18c385 add for/set and it's varieties to the default prefs 2013-02-13 10:50:06 -06:00
Matthew Flatt
c6eb82524b fix `syntax-local-module-exports' for submodules in expand mode 2013-02-13 08:28:23 -07:00
Matthew Flatt
8c2c84f74f fix context for `#%module-begin' form in a submodule 2013-02-13 08:28:22 -07:00
Matthew Flatt
4a0adb6a74 fix syntax-local-submodules' in expand' mode 2013-02-13 08:28:22 -07:00
Jay McCarthy
6ae2c71ed5 Add raco show -d and showing package deps on failed remove 2013-02-13 07:47:59 -07:00
Robby Findler
4494788017 fix rendering of example in Guide
closes PR 13517
2013-02-13 07:25:36 -06:00
Danny Yoo
db0234fb6f Amend comment. 2013-02-12 20:18:54 -07:00
Danny Yoo
29031f0972 Replace <wbr> and <span class='mywbr'> </span> with zero-width-space.
The zero width space is a more robust way to add place to line-wrap,
according to: http://www.quirksmode.org/oddsandends/wbr.html

Closes PR 13305.
2013-02-12 19:50:13 -07:00
Robby Findler
11ca461bf0 covered a missing case in the oc-status state machine 2013-02-12 16:50:34 -06:00
Eric Dobson
67c6d7804d Add tests for subtyping -poly. Closes PR13510. 2013-02-12 17:07:02 -05:00
Matthew Flatt
7f5b295308 fix problem with the initial continuation prompt
(Got it wrong in 2f7d4b5e.)

Closes PR 13494
2013-02-12 14:17:57 -07:00
Matthew Flatt
5c896395cd racket/gui: fix some contracts in docs 2013-02-12 14:17:57 -07:00
Robby Findler
d1357f2294 avoid a wrapper on callbacks that get stored in a weak table
This fixes a bug in DrRacket where by changing the font size
would cause the line numbers to encroach on the space allotted
to the main text of the definitions window (or, if the font size
is getting smaller, make a large gap)
2013-02-12 13:46:20 -06:00
Robby Findler
53853d696a add increase/decrease font size menu items (ala browsers) 2013-02-12 13:46:19 -06:00
Danny Yoo
61ddb91815 Correct Help Desk Search so it handles keywords and hash-colon-keyword lexemes.
Closes PR 13470.
2013-02-12 12:25:11 -07:00
Eli Barzilay
49ab87eadc "PLT Scheme Inc" -> "PLT Design Inc" 2013-02-12 08:06:30 -05:00
Eli Barzilay
2f4183242e Some shuffling of text, and a `-wiki' for all wiki links. 2013-02-12 06:45:30 -05:00
Eli Barzilay
4f13b3f1d5 More code therapy. 2013-02-12 04:49:12 -05:00
Eli Barzilay
08174ec5e4 Misc code improvements, help text typo. 2013-02-12 02:34:48 -05:00
Patrick Mahoney
894d7267fb Changes to move all games to Racket from Mzscheme.
Signed-off-by: Patrick Mahoney <paddy.mahoney@gmail.com>
2013-02-12 02:07:43 -05:00
Eli Barzilay
0ded7e4e26 Typo in error message 2013-02-12 01:52:03 -05:00
Robby Findler
89a2ff451e add long-missing space 2013-02-11 22:08:02 -06:00
Robby Findler
8edd010bec improve ->'s source location tracking
closes PR 13514
2013-02-11 20:37:15 -06:00
Danny Yoo
97005589e4 Add links to the Wiki from the Community page. 2013-02-11 18:42:39 -07:00
Vincent St-Amour
0bccf6b0b0 Forbid singleton types for integers whose type is platform-dependent.
Closes PR13501.
2013-02-11 14:30:19 -05:00
Danny Yoo
b9d1194225 Correct hyperlinks to 2htdp/image. 2013-02-11 08:43:43 -07:00
Jay McCarthy
2e7f4ba54a Allowing github URLs from PNRs to use illegal package names 2013-02-11 06:10:58 -07:00
Robby Findler
1420ce4ed2 clarify colorer docs
Also, some cleanups of the code and
make the syntax-color/ library docs
point to color:text<%> instead of
color:text% (as the interesting information
is attached to the interface, not the class)
2013-02-10 10:30:28 -06:00
Matthew Flatt
2fc7cad446 racket/enter: fix for `enter!' related to submodules
The load handler didn't obey the protocol with respect to a second
argument that is a list starting with #f.

Closes PR 13096
2013-02-10 05:57:25 -07:00
Danny Yoo
f1e7051652 Override readline's getc function to use Racket's read-byte.
Eliminates the busy-polling behavior observed in Mac OS X when
xrepl is required at the regular repl.

Closes PR 13350.
2013-02-10 05:54:52 -07:00
Robby Findler
246939f781 tighten up the checks in the place where the framework receives
values from the lexer (for syntax coloring)
2013-02-09 20:42:34 -06:00
Asumu Takikawa
59eb1ad13c Use up-to-date struct syntax in example 2013-02-09 19:42:21 -05:00
Robby Findler
2c35a98ad8 Adjust keybinding code to fall back from
get-active-canvas to get-canvas

Unclear if this is a bug in get-active-canvas or not

closes PR 13507
2013-02-09 14:58:21 -06:00
Robby Findler
5c21ab0e42 try to make the bug report form more robust when the
attempt to get the (nonexistent) captcha fails
2013-02-09 11:45:40 -06:00
Robby Findler
916f5d8ede add a test case
related to PR 13505
2013-02-09 11:45:40 -06:00
Matthew Flatt
dd50ac8652 catch module-not-available mimatches earlier 2013-02-08 22:57:37 -06:00
Matthew Flatt
d73ae88220 test case for `for' repair
Provided by Ryan to go with a85a71984d.
2013-02-08 22:57:37 -06:00
Danny Yoo
c19b8a4f7c Correct the contract in Example 3 to use and/c.
Closes PR 13486.
2013-02-08 14:05:46 -07:00
Neil Toronto
670efed007 Increased timeout for matrix tests 2013-02-08 12:18:48 -07:00
Sam Tobin-Hochstadt
4797173e58 Properly unquote in error message.
Fixes PR 13505.
2013-02-08 12:30:31 -05:00
J. Ian Johnson
469a69772c For/product treated like for/sum for special annotation. Also allowed no annotation to be consistent with the docs. 2013-02-08 11:32:21 -05:00
Eric Dobson
40a9794c8f Add missing pure functions. 2013-02-08 11:19:10 -05:00
Eric Dobson
19241c0979 Make overlap more precise. 2013-02-08 11:19:10 -05:00
Eric Dobson
c2b8671169 Fix :print-type. Closes PR13503. 2013-02-08 11:19:09 -05:00
Jay McCarthy
cd202f5411 Supporting headers and stateless in web-server/test 2013-02-08 07:01:36 -07:00
Robby Findler
995d4a4704 adjust test cases for recent changes to the lexers 2013-02-07 21:25:02 -06:00
Vincent St-Amour
830db3c908 Add extra tests and warning about -PosIntNotFixnum. 2013-02-07 15:19:42 -05:00
Eric Dobson
9030da217b Make static single flonum checks correct.
Closes PR13499.
2013-02-07 15:19:42 -05:00
Asumu Takikawa
9636a70f8b Add a test for PR 13490
The bug itself was already fixed by Eric Dobson
2013-02-07 13:49:50 -05:00
Robby Findler
4b9d43ce00 unbreak plai random mutator tests 2013-02-07 11:16:04 -06:00
Robby Findler
86b1f276eb tweak raco test output, yet again 2013-02-07 10:16:16 -06:00
Robby Findler
6c93cfea56 move dir-chars.rkt to unstable/2d to unbreak dependencies 2013-02-07 10:16:10 -06:00
Robby Findler
7750cf9800 change raco test's announcements to say "raco test" 2013-02-07 06:58:11 -06:00
Robby Findler
642ef7f136 dont use raco test for encode.rkt (as it expects command-line
arguments and doesn't have a test submodule)
2013-02-07 06:56:26 -06:00
Ryan Culpepper
a85a71984d preserve lexical context, src, etc for sequence syntax expansion
The previous version of the code replaced the implicit #%app with
the kernel #%app (ie, #%plain-app), causing sequence functions
that take keyword arguments to fail.
2013-02-06 18:01:59 -05:00
Vincent St-Amour
117c81e2a6 Increase timeout for TR random testing. 2013-02-06 17:28:13 -05:00
Robby Findler
bb216d142c 2d 2013-02-06 15:55:20 -06:00
Matthew Flatt
0aaf6b8086 make raco test' more like racket'
Instad of `(dynamic-require .. #f)', use `(dynamic-require .. 0)', which
has the effect of making compile-time code "available" (see docs) in
case the loaded module uses `eval' on syntax objects that refer to
non-kernel syntax.
2013-02-06 18:09:03 +01:00