Matthew Flatt
6e2978fe5c
save errno in write barrier signal handler
...
In case a write barrier happens between the set and use
of `errno`, make sure the barrier doesn't cause the
`errno` value to change in the process of making other
system calls.
2016-10-13 11:27:28 -06:00
Matthew Butterick
9422d66601
improve vertical positioning & paren shaping in syntax->string
2016-10-12 16:02:32 -05:00
Vincent St-Amour
ecadde3a65
Add #:logger keyword argument to with-intercepted-logging.
...
Closes #1486 .
2016-10-11 11:50:33 -05:00
Stephen Chang
58d9b3eb19
add doc example for make-provide-pre-transformer
2016-10-11 11:40:13 -04:00
Vincent St-Amour
241d87c011
Avoid tech collision.
...
Closes #1484 .
2016-10-09 10:54:53 -05:00
Alexis King
e340719e5e
Ignore git-http-backend stderr output in the pkg tests
2016-10-08 16:24:04 -07:00
Vincent St-Amour
d171218215
Post-release version for the v6.7 release
2016-10-07 14:52:26 -05:00
Vincent St-Amour
d597983bb9
Make pkg git credential format extensible.
...
Thanks to Eli.
2016-10-07 14:17:31 -05:00
Vincent St-Amour
456a72a36c
Have id-table-ref! call its failure thunks.
...
Closes PR15346.
2016-10-07 13:58:47 -05:00
Matthew Flatt
a1a2d9c2c7
fix missing expansion context for prop:rename-transformer
proc
...
When calling a procedure that is attached as a
`prop:rename-transformer` property value, make sure that
any available expansion context is accessible as reflected by
`(syntax-transforming?)`.
Syntax parameters as rename transformers particularly rely on that
information for local expansion.
Thanks to Jay for the "stxparam.rktl" test.
Closes #1479
2016-10-07 08:58:44 -06:00
Alexis King
d9750064b9
Merge pull request #1472 from lexi-lambda/pkg-git-credentials
...
Add support for git-backed packages that require authentication
2016-10-06 18:24:24 -07:00
Ben Greenman
65a69417cc
doc: clarify elements vs values in sequence/c
2016-10-06 18:46:46 -04:00
Ben Greenman
97c65102b3
add file/glob
...
implements globbing for path strings
- glob : globs -> listof path
in-glob : globs -> sequenceof path
glob-match? : globs path-string -> boolean
- wildcards are: * ? [...]
- braces {} get expanded to multiple globs
- if pattern ends with /, only match directories
- wildcards don't capture dotfiles by default (keyword arg overrides)
2016-10-06 18:41:26 -04:00
Alexis King
c459886fc5
Add some warnings about checkout credentials being stored unencrypted
2016-10-06 11:48:48 -07:00
Alexis King
4111dbc967
Add test for raco pkg install for authenticated git packages
2016-10-06 10:42:36 -07:00
Ben Greenman
684dd2d1cb
typo: redeclaration
2016-10-06 08:57:05 -04:00
Ben Greenman
1dd934c8cb
Add H: and R: search box options, to search for #lang and #reader providers
2016-10-04 13:05:00 -04:00
Matthew Flatt
9887669ab0
fix single-argument write-byte
and write-char
...
Repairs a mistake in 8e7792d8
Closes PR 15363
2016-10-04 10:09:48 -06:00
Alexis King
6d63e4443f
Make raco pkg try git-checkout-credentials when cloning a repository
2016-09-29 14:21:07 -07:00
Ryan Culpepper
c08a2fd57c
syntax/parse: add #:and and #:post side-clauses
2016-09-29 17:21:07 -04:00
Alexis King
afa17a3df6
Adjust net/git-checkout to raise exn:fail:git instead of exn:fail
...
This allows things like the package system to detect when something goes
wrong with the git transfer without catching everything else, too.
2016-09-29 13:59:52 -07:00
Alexis King
8de889df5e
Add support for the 'git-checkout-credentials raco config option
2016-09-29 13:58:42 -07:00
Alexis King
d409fb5e2e
Add #:username and #:password arguments to net/git-checkout
...
This can be used to provide authentication for accessing repositories
over HTTP(S), such as private repositories on GitHub.
2016-09-29 13:58:39 -07:00
Ryan Culpepper
6caec0249f
syntax/parse: document ~post
2016-09-29 15:53:26 -04:00
Matthew Flatt
00644821de
fix regexp-matching bug
...
In a pattern like
a*b
a naive attempt to match will take quadratic time on an input that
contains all "a"s an no "b". To improve that case, the regexp compiler
detects that a match will require a "b" and checks the input for a "b"
to enable linear-time failure.
That optimization mishandled `(?!...)` and `(?<!...)` patterns,
treating the must-not-match subpatterns as things that must match.
So,
(regexp-match "a*(?!b)" "aaaxy")
returned false, because the input doesn't contain "b".
Thie commit repairs the optimization.
Closes #1468
2016-09-24 14:46:28 -06:00
Tony Garnock-Jones
5ec147ee40
Add margin-note relating quote-source-file to __FILE__ and __file__.
2016-09-23 14:48:08 -04:00
Matthew Flatt
c19848f990
fix optimizer bug
...
Fix a regression relative to v6.4 caused by a refactoring of the
compiler between v6.4 and v6.5. The refactoring lost information about
letrecs that are converted internally to let* when a mutable variable
is involved, and it ends up allocating a closure before the box of a
mutable variable that is referenced by the closure. Something like
`with-continuation-mark` is needed around the closure's `lambda` to
prevent other optimizations from hiding the bug.
Closes #1462
2016-09-15 11:19:13 -06:00
Matthew Flatt
2174f4a029
fix optimizer bug
...
Closes #1461
Thanks to Gustavo for tracking down the problem.
2016-09-15 07:58:21 -06:00
Matthew Flatt
cfb2a7aa32
in-directory: sort entries
...
Make `in-directory` more like `directory-list` by sorting
directory content.
2016-09-15 06:11:30 -06:00
Jay McCarthy
903afe2240
Merge pull request #1460 from jbclements/add-xml-attribute-encode
...
add xml-attribute-encode function
2016-09-14 21:17:55 -04:00
John Clements
38622ce276
docs for xml-attribute-encode
2016-09-14 10:39:56 -07:00
John Clements
63d0f79847
add xml-attribute-encode function
2016-09-14 09:34:27 -07:00
Alex Knauth
62f5b2c4e4
syntax/srcloc: disarm and rearm when rebuilding syntax ( #1448 )
2016-09-12 18:08:57 -04:00
Ryan Culpepper
fd4ce5afe4
add more codes to lookup-errno, relax contract ( #1433 )
...
lookup-errno now returns #f when given an unknown symbol instead
of raising a contract error. It should not return #f for any
symbol that it previously accepted.
2016-09-12 18:07:44 -04:00
Alexis King
6e6056b9b8
Propagate srcloc information in wrap-expr/c from syntax/contract ( #1418 )
2016-09-12 18:06:57 -04:00
Robby Findler
a01cf359eb
bring line lengths down below recommended widths
2016-09-08 21:45:50 -05:00
Matthew Flatt
ce6b9d5931
fix chaperone-of?
on bytecode-unmashaled hash tables
...
Closes #1456
2016-09-08 20:23:07 -06:00
Asumu Takikawa
558fccce98
Add some examples for the JSON docs
2016-09-07 22:46:38 -07:00
Alex Knauth
1952bc4ede
fix typo in the syntax-arm docs ( #1447 )
2016-09-07 14:27:35 -04:00
Sam Tobin-Hochstadt
94dbcb12dc
Make sql-null?
a struct predicate. ( #1450 )
...
This allows Typed Racket to know that it's pure and safe to use
as an opaque value.
2016-09-07 10:57:10 -04:00
Andrew Kent
42f4784735
add vector-sort to racket/vector ( #1398 )
...
* add vector interface to private/sort.rkt
2016-09-06 17:07:20 -04:00
AlexKnauth
95e8ade091
procedure-rename: don't convert procs into methods or methods into procs
2016-09-05 11:30:27 -05:00
Jay McCarthy
5b1658c6b4
Merge pull request #1446 from AlexKnauth/cdot-left-assoc
...
make cdot reader left associative
2016-09-01 20:40:56 -04:00
AlexKnauth
17db8e57f0
update read-cdot documentation
2016-09-01 16:28:06 -04:00
Matthew Flatt
cd44e78211
fix dynamic-require
on certain forms of re-export from #%kernel
...
Closes #1445
2016-09-01 09:19:11 -06:00
AlexKnauth
f1906d572f
add tests for read-cdot option
2016-09-01 09:17:55 -04:00
AlexKnauth
d648c8cc42
make read-cdot group datums from left-to-right
...
so that X.Y.Z is read as (#%dot (#%dot X Y) Z)
2016-09-01 09:17:29 -04:00
Ben Greenman
5708526055
add index for 'chmod'
2016-08-30 17:55:38 -04:00
Sam Tobin-Hochstadt
4cc1503d15
Increase timeout.
2016-08-30 17:09:55 -04:00
Stephen Chang
1ddb4d025c
doc typo: nonnegative-exact -> exact-nonnegative
2016-08-30 13:34:22 -04:00