Commit Graph

3567 Commits

Author SHA1 Message Date
Sam Tobin-Hochstadt
40d2fd65b0 Add OrderedAnd patterns, and use them in ? patterns.
This guarantees that patterns like (? pred pat) will
always check `pred` before matching any of `pat`.
However, `and` patterns are not required to match left-
to-right.
2013-01-22 14:59:41 -05:00
Matthew Flatt
c298062259 racket/match: add doc note on `for-syntax' exports 2013-01-22 09:12:00 +01:00
Matthew Flatt
48e0509381 add `file-truncate' 2013-01-18 11:03:46 -06:00
Matthew Flatt
a605452b0f minor doc repair 2013-01-18 11:03:46 -06:00
Asumu Takikawa
15a73e2c00 Example for with-handlers 2013-01-18 10:39:36 -05:00
Sam Tobin-Hochstadt
230172cf94 Use syntax-procedure-alias-property with struct constructor procedures as well.
This uses a new `racket/private/procedure-alias` module
which provides the relevant symbol via `protect-out`.
2013-01-14 14:27:33 -05:00
Matthew Flatt
2adf0bdf2e ffi/unsafe/objc docs: clarification on `import-class'
Merge to v5.3.2
2013-01-13 15:33:48 -07:00
Ryan Culpepper
1109e0f86d fix rounding in ~r, docs
Merge to 5.3.2.
2013-01-13 15:52:08 -05:00
Vincent St-Amour
2c8e5f9acb Move Optimization Coach to PLaneT 2. 2013-01-11 18:40:23 -05:00
Matthew Flatt
5134bc0888 scribble doc corrections
Merge to v5.3.2
2013-01-09 18:52:16 -07:00
Jay McCarthy
9015c15eec test - Supporting packages in raco test 2013-01-09 08:12:56 -07:00
Jay McCarthy
3e0fff7dff Extending raco test to work on collections 2013-01-09 07:59:47 -07:00
Eli Barzilay
79b9acd444 2012 -> 2013 2013-01-09 01:17:26 -05:00
Asumu Takikawa
83766e1b11 Doc fix
Closes PR 13420

Please merge into 5.3.2
2013-01-08 19:45:15 -05:00
Matthew Flatt
3e8b6b9866 scribble: add +m' / ++main-xref-in' flag
The `+m' flag is a long-overdue shorthand for `++xref-in setup/xref
load-collections-xref', which links to installed documentation in
the same way as DrRacket's "Scribble HTML" button.

That is, use `+m' to link to installed documentation,

  scribble +m mine.scrbl

instead of the previously recommended

  scribble ++xref-in setup/xref load-collections-xref mine.scrbl

Merge to 5.3.2
2013-01-08 16:25:28 -07:00
Asumu Takikawa
5e78aa7d9e Add examples & slight fix for stxparam docs 2013-01-06 16:26:02 -05:00
Asumu Takikawa
470a8c8892 Minor rewording 2013-01-06 16:26:02 -05:00
Asumu Takikawa
3885ea7cdd Fix doc typos 2013-01-03 02:27:30 -05:00
Vincent St-Amour
18389532e7 Move define-inline to racket/performance-hint.
Move begin-encourage-inline to racket/private for dependencies.
2013-01-02 12:18:36 -05:00
Matthew Flatt
1f8370d2d6 revise README and "Getting Started" info
Addresses PR 13356
2013-01-01 15:55:44 -07:00
Matthew Flatt
b67ca6350c fix doc typo
Closes PR 13353
2013-01-01 15:55:44 -07:00
Matthew Flatt
55f98a15d4 racket/gui gtk: make `on-demand' for menus work better
There appears to be no way to make `on-demand' work right for the
Unity window manager's global menu bar, since there's no notificiation
when the menu bar is clicked. We approximate the correct behavior
by calling `on-demand' when a containing frame loses the keyboard
focus, which might be because the menu bar was clicked; that may be
too late (because the menu has already been shown), but it should
work most of the time.

Closes PR 13347.

Relevant to PR 13395, but DrRacket will have to change to work
around the remaining limitations of `on-demand'.
2013-01-01 15:55:36 -07:00
Danny Yoo
c70f7d2ed2 Disambiguate sentence on custodian shutdown.
See:
http://lists.racket-lang.org/dev/archive/2012-December/011373.html

Motivated by Sgeo's question in:
http://racket-lang.org/irc-logs/20121229.txt at 22:10.
2013-01-01 00:48:50 -08:00
Matthew Flatt
cdfc4912ad racket/base: add exn:fail:filesystem:errno and exn:fail:network:errno
Provide raw error codes when available, which is mostly from filesystem
and networking primitives.
2012-12-31 12:04:03 -07:00
Matthew Flatt
8b7379a7ad docs: clarification for `immutable?' 2012-12-30 20:30:20 -06:00
Asumu Takikawa
4041e3c841 Fix sandbox doc example 2012-12-30 01:55:44 -05:00
Matthew Flatt
480ae5e262 doc repair 2012-12-28 12:53:48 -06:00
Matthew Flatt
f2d870859a logging: allow name in `log-message', report it in a log-receiver evt
The synchronization result of a log receiver is now a vector of four
values, instead of three, where the last one reports the name.

Also, an optional argument to `make-logger' provides a notification
callback for each event sent to the logger.

These changes enable more control over loggers and events. Suppose
that you have processes A and B, and you want all log events of A
to be visible to B, but not vice-versa. Furthermore, you want the
log events to appear at B in the right order: if A logs an event
before B, then A's event should arrive at a log receiver's before
B's. Now that a log receiver gets the name associated with the
original event, and now that the name can be re-sent in a
`log-receiver', it's possible to give A and B separate loggers and
send all of the events from A's logger to B's logger. Furthermore,
you can use the notification callback so that when an event is logged
in B, you can make sure that all available events from from A's
logger have been transferred to B's logger.
2012-12-27 14:12:40 -06:00
Robby Findler
353da62843 added make-module-language-tag and use it and make-section-tag
in a few places
2012-12-27 11:10:40 -06:00
Matthew Flatt
ca3b712871 minor doc edits
consistent capitalization of section titles
2012-12-27 09:24:15 -06:00
Matthew Flatt
2d12431c0d move and fixup docs for the "help" collection 2012-12-27 09:24:15 -06:00
Matthew Flatt
f29230f8f2 add `scribble/tag' and clean up some tag-related documentation and functions
Includes the addition of `make-section-tag' and `taglet?' to
`scribble/base'.
2012-12-27 09:24:14 -06:00
Robby Findler
d2d1ac2f2c Improve the logger GUI in DrRacket
One drawback to the current situation (after this commit) is that all
log messages are sent into the user's logger, even messages that come
about as part of DrRacket's implementation. It isn't clear how to fix
this without enumerating all of the possible messages to share and
explicitly forwarding them (both of which are suboptimal things).

On the plus side, the GUI now uses the "debug@GC" notation in a text
field, and when the logger pane is not open, there is no extra work
going on. Plus other, minor GUI improvements.
2012-12-26 22:38:42 -06:00
Robby Findler
10137dc679 fix bug in help/search docs 2012-12-26 21:18:53 -06:00
Matthew Flatt
18a538050a guide: improve explanation of transformer procedures and identifier macros 2012-12-26 12:15:03 -06:00
Robby Findler
fa85d30773 adjust the search bubbles so they flicker less when typing 2012-12-25 17:40:32 -06:00
Matthew Flatt
b69573277c reference: rerrange docs on synchronizable events
Put the details consistently with event datatypes, instead
of trying to put them all in `sync', which better reflects
the extensibility of the set of synchronizable events.
2012-12-25 07:20:58 -06:00
Robby Findler
042bbbefe7 add an ASCII art rectangle => unicode rectangle keybinding to drracket 2012-12-24 11:38:54 -06:00
Matthew Flatt
4a57db4448 add (system-type 'word)
Returns 32 or 64 to indicate whether Racket is running as a
32-bit program or a 64-bit program.
2012-12-24 06:38:53 -07:00
Robby Findler
2fced5d7d6 drracket tracks the frame position and size on a
per-monitor-configuration basis and (possibly) moves/resizes
the frame when it changes
2012-12-21 19:22:59 -06:00
Robby Findler
3f9e60a908 add display-changed method 2012-12-21 19:22:59 -06:00
Matthew Flatt
aa08a68424 add phantom byte strings
A phantom byte string is a small object that the memory
manager treats as an arbitrary-sized object, where the
size is specified when the phantom byte string is created
or or when size is changed via `set-phantom-bytes!'.
2012-12-19 18:42:14 -07:00
Robby Findler
e19243329c adjust drracket to track an lru order on tabs and use it
when closing one to pick the next one to show

added the touched and get-last-touched methods to tab<%>
2012-12-19 10:50:01 -06:00
Matthew Flatt
4fc71951ee change subprocess handling to avoid waitpid(0, ...)
Keep track of whether any Racket-managed subprocesses are pending,
and use waitpid(0, ...) only if there is one, to better cooperate
with an embedding environment.

Also, add a chapter to the "Inside" manual to explain the issues.
2012-12-19 08:54:32 -07:00
Matthew Flatt
0f909af765 ffi/com: add `com-get-property*'
Accesses a "parameterized property", which is like a method call
but for a name that is categorized as a property.
2012-12-18 06:39:59 -07:00
Ryan Culpepper
714eba684a fix docs for raise-range-error 2012-12-16 22:29:43 -05:00
Matthew Flatt
bbfded59bf fix doc typo
Closes PR 13362
2012-12-16 13:11:56 -07:00
Matthew Flatt
59c693ddb2 fix docs on scheme_malloc_fail_ok
Closes PR 13363
2012-12-16 13:11:56 -07:00
Matthew Flatt
fb7cbcfeb1 date struct: improve docs
Closes PR 13371
2012-12-16 13:11:56 -07:00
Matthew Flatt
d3e4fbe7a7 make scheme_check_threads() run at least on thread quantum
As long as some thread is ready to run, and in case the threads
synchronize after very little work, keep checking threads for
at least one thread quantum.
2012-12-16 13:11:56 -07:00