Commit Graph

28433 Commits

Author SHA1 Message Date
Carl Eastlund
636f8a91dc Moved normalized-arity?, arity=?, and arity-includes? into racket/function. 2013-03-31 13:36:06 -04:00
Carl Eastlund
4dd011aa09 Added documentation for normalize-arity. 2013-03-31 13:36:05 -04:00
Carl Eastlund
e356c660ea Re-provide normalize-arity from racket/function. 2013-03-31 13:36:05 -04:00
Carl Eastlund
59b1e32fe9 Changed normalize-arity to coalesce arity-at-least with adjacent numbers.
For instance, (normalize-arity (list 1 (arity-at-least 2))) now produces
(arity-at-least 1).  The implementation and the tests for normalize-arity both
reflect this change.  The randomized tests now also check that the output
represents the same arity as the input.
2013-03-31 13:36:05 -04:00
Matthew Flatt
6e40caa7e2 ffi/com: repairs, including `mysterx' compatibility
Restore MysterX-style handling of parameterzied properties in
`com-get-property'.  It turns out that the original `com-get-property'
handles parameterized properties by allowing a list in place of a
property-name string, and that handling got lost in the re-write.

Fix the name of `com-get-active-from-from-coclass'.

Fix arity checking for optional arguments.

Closes PR 13603
Closes PR 13604
2013-03-31 11:12:45 -06:00
Matthew Flatt
2412611c07 file/untgz: allow extra bytes after tar content
Closes PR 13641
Closes PR 13644
2013-03-31 07:29:06 -06:00
Matthew Flatt
e93f977603 file/untar: handle unknown extensions by skipping
Also, add/improve logging.
2013-03-31 06:59:12 -06:00
Matthew Flatt
bfc9c41358 racket/gui: double-check size on attmpt to set editor scroll
A scroll request could fail if a resize notification is still
in flight (i.e., queued but not yet executed), so double-check
the size on a scroll request.

Closes PR 13582
2013-03-31 06:39:49 -06:00
Matthew Flatt
0a482b6159 raco setup: fix doc dependency check for PLTCOMPILEDROOTS
A doc build depends on its source's ".zo" file, which might
not be next to the source due to a PLTCOMPILEDROOTS setting.

Closes PR 13640
2013-03-30 17:28:25 -06:00
Matthias Felleisen
1ff3e3b942 fixed rate argument for run-movie, Closes PR13642 2013-03-30 18:07:00 -04:00
Carl Eastlund
68f526c2ed source-location-known? should not rely on "span" field 2013-03-30 16:17:27 -04:00
Matthew Flatt
9efb14e434 system-type: fix 'so-mode 2013-03-30 14:13:02 -06:00
Matthew Flatt
a1dccb4aa8 repairs for MinGW builds
The changes make extflonums work when compiling with SSE arithmetic
for `double's.
2013-03-30 10:55:59 -06:00
Ryan Culpepper
bace16a4ce added test for sequence syntax with keywords 2013-03-30 10:00:44 -04:00
Ryan Culpepper
d71cc04c22 fix show-dependencies handling of submodules 2013-03-30 10:00:44 -04:00
Ryan Culpepper
3dfab4d0aa factor out create-ehpat code 2013-03-30 10:00:44 -04:00
Ryan Culpepper
1b729d34d8 added rename option to lazy-require
closes PR 13624

also added examples
2013-03-30 10:00:44 -04:00
Ryan Culpepper
2eae24b0b1 use defform #:grammar 2013-03-30 10:00:44 -04:00
Ryan Culpepper
293b208af7 added optional #:grammar clause to defform, etc 2013-03-30 10:00:44 -04:00
Asumu Takikawa
ceac0d3a87 Scheme -> Racket 2013-03-29 17:55:10 -04:00
Matthew Flatt
ba270cde48 fix over-eager "optimization" of some unsafe-fx operations
As reported by Vincent.
2013-03-29 14:46:19 -06:00
Robby Findler
06315bf0fa syntax error check fix
closes PR 13639
2013-03-29 11:58:52 -05:00
Matthew Flatt
99453ac506 ffi/unsafe/objc: weaken cache of method-invoke functions
A non-weak table meant that on Cocoa, every key press leaked a
foreign-funciton stub.
2013-03-29 08:09:57 -06:00
Matthew Flatt
8e25f42fbc doc repair
Closes PR 13555
2013-03-29 07:23:50 -06:00
Matthew Flatt
70eb426aa4 contract error: shift path normalization to error time
Making a pathcollects-relative  at contract-formation time means a
lot of extra work then and a change to the needed sandbox permissions.
Aormalizing at error time is more consistent with other parts of a
contract message.
2013-03-29 07:23:50 -06:00
Matthew Flatt
3f7fcdf1b7 reference: doc clarifications on `guard-evt' 2013-03-29 07:23:49 -06:00
Matthew Flatt
5afd1b4118 syntax-color/racket-lexer: update for single-precision and extflonums
Includes a doc fix to note `+inf.t', etc.
2013-03-29 07:23:49 -06:00
Matthew Flatt
1dcc7ca4dc syntax-color/racket-lexer: fix long-standing number-parsing bug
The lexer mishandled cases like "#x1E+2", because "E" is
not an exponent marker for hexadecimal --- and it has been that
way forever, but the repair isn't all that difficult.
2013-03-29 07:23:49 -06:00
Matthew Flatt
f1ebb6136b reference: fix for reader's number grammar 2013-03-29 07:23:49 -06:00
Matthew Flatt
45f74eafe5 scriblib/footnote: fix for non-Latex output
Also, fix warnings generated even for Latex mode.
2013-03-29 07:23:49 -06:00
Greg Hendershott
59bba2d197 Combine adjacent code spans into one.
These result from something like

    @racket[(x y)]

being treated by Scribble as multiple RktXXX items rather than one. As
a result the Markdown emitted was:

    `(``x`` ``y``)`

But obviously instead we want:

    `(x y)`

Kludgosity alert: Although it would probably be more-correct to
consolidate the RktXXX items at the Scribble structure level, I don't
easily see how. `@racket` is baking in the concept of Racket
lexing (classifying text as various kinds of Racket elements). This is
handy when the render will be HTML or Latek, and is benignly N/A when
it will be plain text. But it's a bit square-peg/round-hole when the
render will be Markdown. Rather than attempt to "un-lex" the Scribble
structures (I'm having trouble seeing how), I'm handling it
"after-the-fact" -- adjusting the generated Markdown text.

If anyone thinks the preceding is an elaborate rationalization for an
ugly kludge, I wouldn't argue, but I would need some help
understanding the preferable way to go about it.
2013-03-29 07:23:49 -06:00
Greg Hendershott
a5f6686270 Fix problem handling examples and interaction.
Unlike plain `racketblock`, `examples` and `interaction` are
"nested". As a result we emitted bad Markdown like:

    ```racket
    Examples:
    ```racket
    some-code
    ```
    ```

Markdown code blocks can't nest, so this needs to be:

    ```racket
    Examples:
    some-code
    ```

Also: Updated the unit test with examples of `examples` and
`interaction`.
2013-03-29 07:23:49 -06:00
Matthew Flatt
a5f8584bab scriblib/figure: add `#:continue?' option 2013-03-29 07:23:49 -06:00
Jay McCarthy
7b832edae9 Adding pointer to dispatcher concept 2013-03-28 08:45:03 -06:00
Jay McCarthy
8a3f831807 Fixing standalone 2013-03-28 08:45:03 -06:00
Matthew Flatt
72b5b984b3 places: fix problem in clean-up
The problem was created by recent changes to allow GC
of threads that are blocked on certain place channels.
2013-03-27 17:17:33 -06:00
Matthew Flatt
325a9dd34b slideshow/pict: allow a color in a style for `text' 2013-03-27 17:17:33 -06:00
chrdimo
a499b22a3c improving performance of options 2013-03-27 16:16:25 -04:00
Eli Barzilay
9b99d3e314 New Racket version 5.3.3.8. 2013-03-27 03:30:16 -04:00
Carl Eastlund
1d351858f9 Used syntax/modcode in rackunit/docs-complete.
This simplifies the implementation, and also generalizes it so that it finds
documentation from installed packages, linked collections, and other sources.
2013-03-26 19:50:33 -04:00
Jay McCarthy
169a9ea28d Fixing broken rackunit display tests 2013-03-26 06:08:21 -06:00
Jay McCarthy
875c20119d Generalizing define-bibtex-cite 2013-03-26 06:08:21 -06:00
Robby Findler
0c5fa7d6c5 relax sandbox permissions now that contract error message
construction requires looking at the filesystem

assuming this is the right fix, it closes PR 13634
2013-03-26 00:03:34 -05:00
Robby Findler
55ef0e7c07 make negative blame also use "<collects>/" instead of having
the full collection path in there
2013-03-25 21:04:21 -05:00
Robby Findler
2ec097a955 fix bug in drracket's online check syntax renaming setup
Because of a limitation in our GC tech (and because I have not
sorted out how to program around it (which should be possible))
when the "is it safe to rename this variable" check may silently
just say "yes" when it really doesn't know the correct answer.

It turns out that this was happening on every attempt to rename
after the first one (in a given online check syntax run) due to
a bug, now fixed in this commit (the "loop" didn't actually loop...)

Also, moved the creation of the thread to its own function to
make the things it closes over more syntactically apparent.
2013-03-25 21:04:20 -05:00
Danny Yoo
eb7fa6f066 Sanitize the output from HTML escape characters.
Noted by ozzloy on IRC.  The search page appears to fail when
searching for the term 'string<?'; in truth, the search succeeds, but
the search link-printing code doesn't escape the '<?' part of the
identifier.
2013-03-25 12:51:19 -06:00
Eric Dobson
38409e0d7e Add descriptions to for: syntax classes.
Closes PR 13284.
2013-03-25 09:42:29 -07:00
Eric Dobson
d7f12d93f4 Add testcase.
Closes PR 12812.
2013-03-25 08:50:48 -07:00
Eric Dobson
f3fdd5c1d7 Call raise-argument-error correctly. 2013-03-25 08:49:42 -07:00
Jay McCarthy
5bb51aff4c Support all define-cite options in define-bibtex-cite 2013-03-25 08:27:51 -06:00