Commit Graph

1768 Commits

Author SHA1 Message Date
Matthew Flatt
5500ad5b86 new error message convention
Add `raise-argument-error', `raise-result-error', `raise-arguments-error',
and `raise-range-error'.

The old convention was designed for reporting on a single (sometimes very
long line). The new convention is

 <name>: <short message>
   <field>: <detail>
   ...

If <detail> is long or itself spans multiple lines, then it may
also use the form

   <field>:
    <detail>

where each line of <detail> is indented by 3 spaces.

Backtrace information is shown as a multi-line "context" field.

original commit: 9e7548de615610a5be2adb33c4cf6ee10f9e7589
2012-05-25 15:08:05 -06:00
Robby Findler
71d054cc1f refactored contract opters so they return structs instead
of (8!) multiple values

original commit: 7221d01483eb92086ae98a16c63ae716e97ae267
2012-05-10 21:59:39 -05:00
Eli Barzilay
d8e0ca691a A bunch of fprintf' -> eprintf' conversions (and a few related things).
original commit: 17090fca4f19298f01d03fea419edb20f315d040
2012-05-06 12:06:00 -04:00
Eli Barzilay
28a3257f7f A bunch of scheme' -> racket' conversions.
I think that there are no user-visible changes from these changes.

original commit: 2b76d9e5b03ea97b8de155d2dda63e64256a3212
2012-04-19 16:02:03 -04:00
Matthew Flatt
21917f7b45 fix mzlib contract name test
Merge to 5.3

original commit: c64c55b86fd4a2b70caf814a2b06e27db78fcf71
2012-04-10 15:57:50 -06:00
Danny Yoo
29a27fd9cd fix flush for `make-pipe-with-specials'
Closes PR 12659

original commit: 0cfb3f1d396bb3d7bc817494b937063f5e8782ad
2012-03-29 14:55:13 -06:00
Jay McCarthy
0cb4ef4c3e Removing the thread previously introduced which is now no longer necessary given the real problem
original commit: dfb4bc112d3947566282d6e16ddb60ed72acac5e
2012-03-23 10:47:56 -06:00
Jay McCarthy
3f6a5bb5ef Fixing the error message from PR12443
original commit: 9b579d8c2aa8548e6b49c9aeec0a7a4cf107bd58
2012-03-23 10:44:43 -06:00
Eli Barzilay
2147d288a1 Remove no-longer used net/cgi exceptions.
original commit: 818e434c607a091704d65bca0a6c89c30eac29b0
2012-03-16 02:55:35 -04:00
Matthew Flatt
0ff0006120 mzlib/traceld: show submodule
original commit: 8eef24be8748c556e18cecf4a164a6e2924fce57
2012-03-10 10:51:56 -07:00
Matthew Flatt
e4759d6931 first cut at submodules
original commit: 3d69dfab863c116439ce5b747dbc69852db74938
2012-03-09 10:34:56 -07:00
Eli Barzilay
e8c17f99a1 Big newline at EOF scan.
original commit: f7c67b49a49a723534454ce561cd060e63889480
2012-02-29 00:28:11 -05:00
Matthew Flatt
a2ce5dbafd fix zip/gzip bug
Closes PR 12605

original commit: f9247ff3a5a772c8a314a4c9444e449c5b113053
2012-02-27 08:34:26 -05:00
Robby Findler
b2faf6534a added nand, nor, and implies to racket/bool
original commit: 4b2f78477a2f6144044fc2645750f07be923d85d
2012-02-19 08:05:11 -06:00
Matthew Flatt
0bc53ba416 handle-evt' cannot wrap handle-evt'
The prohbition against `handle-evt' on `handle-evt' is as
document and as originally intended. I'm not sure why it
was allowed.

Existing programs that use `handle-evt' incorrectly
can break. I found and fixed one incorrect use and one
questionable use in the Racket tree (which is a small
minority of the uses of `handle-evt' in the tree).

original commit: 084278fabcb3416250d7155faef674a31dac60b6
2012-02-15 18:59:24 -07:00
Jay McCarthy
fbea030c27 Fixing PR12443
There is a big comment in thread.rkt that explains the problem and the
"fix". I think something better could and should be done, but I don't
know what it is.

original commit: 022ce2d8d7de60d63d21eb67119466283d9e8be3
2012-01-03 15:05:37 -07:00
Eli Barzilay
2410b71326 Revise `net/sendmail'.
* Move the `X-Mailer' header to the top, so that the interesting headers
  are all together at the bottom (the top gets littered by server
  headers anyway).

* Use `subprocess' directly (`process*' wasn't really doing anything
  more than that).

* Allow the sender to be `#f', leaving the header out.  This makes all
  sendmails that I've used use the username that is running the process.

* Just search for a sendmail program: don't barf on windows, so it can
  be used in case there is a sendmail.exe executable there.

* Remove `no-mail-recipients' to make it in-line with other racket code
  that doesn't raise super-specific exceptions.

* Use port counting instead of doing the counts manually, much simpler
  code.

original commit: f9d07d84009e69a0202390fd828c00d330c19611
2011-12-20 15:53:40 -05:00
Matthew Flatt
d2112c9652 enable R5RS map' & for-each' (i.e., mmap' and mfor-each') inlining
original commit: 4b1f74671429f6d8955c6afa98569821fec9e8c7
2011-12-18 07:27:32 -07:00
Matthew Flatt
5a80a3b6e4 add datum-case', etc. as syntax/datum'
This library is used by Redex, which wants a `syntax'-like template
language, but for datum values instead of syntax objects. Using
`datum-case' and `datum' generates much less code. Redex uses
only a small part of the general functionality, so adding
`syntax/datum' could be overkill. It's implemented by generalizing
the `syntax-case' and `syntax' pattern matching and template
constructing code, though; it's not a lot of extra code, and it's
easiest to generalize completely. We may find other uses for
datum templates, too.

original commit: 25dd8727cb8aca54dc7c5cbf1814f2049234ad1d
2011-12-12 08:13:20 -07:00
Matthew Flatt
56a3841aa8 fix `print-convert' on cyclic hash key
Closes PR 12373

original commit: 0772cdf2e37a6ce4a634704816fef784d19d58cd
2011-11-26 17:09:23 -07:00
Robby Findler
4c1e4fd288 add add-make-prefix-to-constructor tests
original commit: c87cd47c64e443f11155d9dd78bf33c9281de11a
2011-11-24 09:42:55 -06:00
Matthew Flatt
d2604d85bb fix pconvert test
original commit: a40d0f0dd100214bbfff01ddd5a6b9a0e3d19275
2011-11-24 05:58:30 -07:00
Robby Findler
2d0fbd1f0c 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

original commit: d00aed6f1b2934f591204ea9b97199fae698ceae
2011-11-03 17:13:17 -05:00
Eli Barzilay
fff213f279 Removed the `plot' collection, in preparation for adding the new one instead.
original commit: e01e46b7728cbf52a79f46b873fce009a8291f12
2011-10-05 04:09:10 -04:00
Matthew Flatt
e85c17b090 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.

original commit: ac8990d5195312fa7c71966bdfaa925905902ca8
2011-09-29 09:22:10 -06:00
Ryan Culpepper
ee460be5b2 revert some (require racket/pretty) to (require scheme/pretty)
original commit: afc9210599b6abf3f4c2c62d57249ccda88f80c2
2011-09-28 19:01:27 -06:00
Ryan Culpepper
e3d2327c7c removed useless requires
original commit: c7f86d276c68b12e87dc46cef4a8e1b95538f88d
2011-09-27 19:28:44 -06:00
Matthew Flatt
4d0895ccff 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.

original commit: 0197902309c5400d463393829a88282c627dafd2
2011-09-20 13:50:36 -06:00
Kevin Tew
46a7e2ab15 dynamic-place now pipes standard io to standard out and error much like system.
original commit: b6972a3b7f867a187df24bba5718107621e3729f
2011-09-15 14:53:58 -06:00
Matthew Flatt
2b861d3e67 generalized `begin-for-syntax'
original commit: d3c56c9f13327d07513f8b6bf7ea0230acb7f489
2011-09-08 14:06:00 -06:00
Jon Zeppieri
c69253c388 Moved `net/url' code from unit to module.
original commit: d44a7a480a162f413e6f1f761c96f8aa14b5be58
2011-09-05 15:22:39 -04:00
Jon Zeppieri
7e1422f5c2 Moved `net/uri-codec' code from unit to module.
original commit: 3f69d4c8e86a9ccd4732e6f4ebb8ec905009c979
2011-09-05 15:22:39 -04:00
Jon Zeppieri
00534ded33 Moved `net/smtp' code from unit to module.
original commit: 647d3fb3657ec8f44dfcff74f0b5aebc3882e286
2011-09-05 15:22:39 -04:00
Jon Zeppieri
72a2be1b88 Moved `net/sendmail' code from unit to module.
original commit: 9ab674fd0cf1d857534e402f7867cd54412c0dc8
2011-09-05 15:22:38 -04:00
Jon Zeppieri
bddc8c4ae5 Moved `net/qp' code from unit to module.
original commit: d034297c768145a90f5d7527e557fcb6f892a62e
2011-09-05 15:22:38 -04:00
Jon Zeppieri
b4764faf3a Moved `net/pop3' code from unit to module.
original commit: 54deaac318f2bb76d9be56193aa4a1e83c1828f9
2011-09-05 15:22:38 -04:00
Jon Zeppieri
f2b3885666 Moved `net/nntp' code from unit to module.
original commit: df5fef0c95631daca92d5dbbe5822765b43e8e5b
2011-09-05 15:22:38 -04:00
Jon Zeppieri
78bce17be3 Moved `net/mime' code from unit to module.
original commit: 67ca846fd9440eec9c154ca5cde7d3019f12f821
2011-09-05 15:22:38 -04:00
Jon Zeppieri
7836a1050b Moved `net/imap' code from unit to module.
original commit: 9ae38402112eb4808abedd6df6350e9d8e97dbad
2011-09-05 15:22:38 -04:00
Jon Zeppieri
b53142f3a9 Moved `net/head' code from unit to module.
original commit: 095ee4e00761f1286ddcd600041e11df3425d931
2011-09-05 15:22:38 -04:00
Jon Zeppieri
875dd118ec Moved `net/ftp' code from unit to module.
original commit: 03237c06f2754ed75450defc61ad5da979adb47a
2011-09-05 15:22:38 -04:00
Jon Zeppieri
a32d226378 Moved `net/dns' code from unit to module.
original commit: a0eac7ac5c663fae4c57d3d6bf851da744d97e46
2011-09-05 15:22:38 -04:00
Jon Zeppieri
311fa622a0 Moved `net/cgi' code from unit to module.
original commit: a5222b948186d80552ff70ee154c86719d1db758
2011-09-05 14:17:36 -04:00
Jon Zeppieri
f5de3bb7a4 Moved `net/base64' code from unit to module.
original commit: 01041988759108dc93201ea8825dabd7bb651d1b
2011-09-05 14:13:04 -04:00
Eli Barzilay
8e2b1955b5 `purify-http-port' returns a new port, so make it close the old one.
original commit: 18e8b92fa1b4a34e3e79384fb528cf248c1952e3
2011-08-18 18:11:09 -04:00
Eli Barzilay
5555e8ccb9 Typo in error message.
original commit: cc69dfbd7192055b776c60ef4ef07d79171bf574
2011-08-17 10:00:55 -04:00
Jay McCarthy
eefd959974 De-unitizing cookies and making the serializable
original commit: b207f1051ac8845c75f2d2296dadbd0e88cbe397
2011-08-15 10:06:21 -06:00
Matthew Flatt
4692fba599 ftp: fix data download for some servers
original commit: 1c1d1934f4f597ee87778c01d356dfdba9eb5721
2011-08-10 08:28:13 -06:00
Matthew Flatt
8e79dbf235 syntax-taint repairs
for problems exposed by more agressive arming of `lambda'
and `#%app'

original commit: 001cb75bac6166541c2fc6803b4e1061743cbce3
2011-08-09 16:33:17 -06:00
Matthew Flatt
4138a2dc50 add `prop:liberal-define-context'
original commit: 39a96dd699a7bb287668cf97d76698fcbb3df1aa
2011-08-09 16:33:16 -06:00