Commit Graph

21658 Commits

Author SHA1 Message Date
Stephen Chang
37eca3412f change recon-val in stepper to use render-to-sexpr for non-lazy lists
Picked from 8956364 and edited for conflicts due to indentation changes.
2011-07-27 12:37:15 -04:00
Stephen Bloch
861301537c Fixed an off-by-one bug in "myflip", an example for build-image. Now it passes its tests :-)
(cherry picked from commit 9a24e66df0)
2011-07-25 00:12:47 -04:00
Stephen Bloch
602ddbf48a Changed error messages in test case to match corrected error messages in
2htdp.
(cherry picked from commit ab01d563ca)
2011-07-25 00:12:43 -04:00
Matthew Flatt
7895045a1c win32: fix `copy-file' handling of file-exists error
The specific error reported by CopyFileW doesn't seem
to be documented. It's unclear whether Racket's old test
for ERROR_EXISTS_ALREADY was the wrong choice (as opposed
to ERROR_FILE_EXISTS) or whether some Windows versions
use it; we test for both for now.

Also, improve error reporting when an errno or
GetLastError() value is available.

Closes PR 12074

Merge to 5.1.2
(cherry picked from commit c9d4e0fb8c)
2011-07-25 00:11:57 -04:00
Matthew Flatt
fd6e9c28d3 fix compiler/zo-parse for sequence splice
Merge to 5.1.2
(cherry picked from commit 42f41d868a)
2011-07-23 02:23:27 -04:00
Matthias Felleisen
7ee468a857 revised history, push to release branch
(cherry picked from commit b4d091438d)
2011-07-23 02:23:17 -04:00
Matthias Felleisen
40637616ad fixed a totally misleading error message in big-bang; MUST GO INTO RELEASE
(cherry picked from commit ed7f16c872)
2011-07-22 11:22:42 -04:00
Robby Findler
cbd7e37cfc fix the png conversion code for 2htdp/image images
closes PR 12061
  please merge to the release branch
(cherry picked from commit 56b82ba83c)
2011-07-22 10:39:53 -04:00
Matthew Flatt
ad4377d44b work around win64 drawing problem
Merge to 5.1.2
(cherry picked from commit 8711aa6c5d)
2011-07-22 10:10:57 -04:00
Robby Findler
8ccff338fd add version number to release notes
please merge to release branch
(cherry picked from commit f7f3971d15)
2011-07-21 23:14:40 -04:00
Stephen Chang
631fed5386 fix lazy stepper test - lazy-cond1
(cherry picked from commit 7eedae8f69)
2011-07-21 16:08:56 -04:00
Stephen Chang
4db334ee2a add make-lazy-proc to lazy stepper skipped fns list
(Edited version of 3f79c37)
2011-07-21 16:07:58 -04:00
Matthew Flatt
4389a4671d code-inspector fix for top-level code from bytecode
Merge to 5.1.2
(cherry picked from commit 530bb1b9ba)
2011-07-20 17:24:32 -04:00
Matthew Flatt
f87c5acdf9 fix `raco ctool -e' for syntax taints
Merge to 5.1.2
(cherry picked from commit 8504996862)
2011-07-20 17:24:29 -04:00
Matthew Flatt
eddf893dc6 fix validation of top-level define-{syntaxes,values-for-syntax}
(Only appears in bytecode for non-module code.)

Merge to 5.1.2
(cherry picked from commit 0d2b08f053)
2011-07-20 17:24:27 -04:00
Matthew Flatt
196ac13bdd fix bug in .zo writing
The bug showed up in the "racket/embed.rktl" test.

Merge to 5.1.2
(cherry picked from commit 5b8a892fbb)
2011-07-20 17:24:24 -04:00
Matthew Flatt
a6e596ba71 another try at Mac OS X 10.4 x86 libraries
Merge to 5.1.2
(cherry picked from commit 30174b3c81)
2011-07-20 17:24:20 -04:00
Sam Tobin-Hochstadt
925a6ae9f2 Fix types of kernel struct constructors to include parent fields.
Merge to 5.1.2.
(cherry picked from commit 7a763a2da8)
2011-07-20 17:24:18 -04:00
Casey Klein
35bbe90dcb Updates Redex history for v5.1.2
(cherry picked from commit 7d103bdfd8)
2011-07-20 17:24:16 -04:00
Matthew Flatt
533b8ed384 fix optimizer bug related to `case-lambda' at module level
The bug triggered a crash on ARM, and probably doesn't
affect other platforms, but I'm not competely sure.

Merge to 5.1.2
(cherry picked from commit d9ae1d048d)
2011-07-19 17:29:41 -04:00
Robby Findler
45d34dda04 change autowrapping preference default
please merge to release branch
(cherry picked from commit 2a78ea9723)
2011-07-19 17:29:39 -04:00
Eli Barzilay
32b53e6549 Remove xrepl from the release branch. 2011-07-19 17:03:17 -04:00
Eli Barzilay
ccd9ab07a7 Revert "Hook XREPL into a few places where readline' and enter!' are mentioned."
This reverts commit 3223a656a6.
2011-07-19 17:01:27 -04:00
Eli Barzilay
c7bf34d387 Improve macro stepper output, and some more ,stx outputs.
(cherry picked from commit 8109299ec8)
2011-07-19 16:57:07 -04:00
Eli Barzilay
36a0fea0cc XREPL tests.
Not too much, but already tests large parts of sensitive code.  Caught a
bug where ,top would use (enter! #f) but enter grabbed the wrong
namespace since it was instantiated in the wrong namespace.
(cherry picked from commit f5e53de4d9)
2011-07-19 16:57:05 -04:00
Guillaume Marceau
d1b79946f9 Fixes the (cons an image empty) error message
(cherry picked from commit 2ae0376476)
2011-07-19 16:57:01 -04:00
Matthew Flatt
18b8751ee2 win32: fix is-maximized' in frame%'
Merge to 5.1.2
(cherry picked from commit 255549c8c8)
2011-07-19 11:39:37 -04:00
Matthew Flatt
0083418b53 cocoa: fix image paste
Closes PR 12028

 Merge to 5.1.2
(cherry picked from commit c8b3763359)
2011-07-19 11:39:05 -04:00
Carl Eastlund
a03b11befc Fixed a macro stepper bug: can't use zero? on syntax span, as it can be #f.
Please include in the upcoming release.
(cherry picked from commit 302cbb5275)
2011-07-19 11:36:32 -04:00
Eli Barzilay
1f7e9658a3 Fix reading a 'line argument: always succeeds and returns the line as-is.
(cherry picked from commit 09c8880ea0)
2011-07-19 11:36:24 -04:00
Eli Barzilay
4c8a6aefe7 Add $F for ,sh commands.
(cherry picked from commit 261288c394)
2011-07-19 11:36:21 -04:00
Eli Barzilay
e8d3223ce5 Add an example for extending xrepl, the very stupid way.
For the record, a way to do this permanently is to add something like
this to your ~/.racketrc:

  (eval '(begin
           (saved-values-char #\~)
           (defcommand eli "stuff" "eli says" ["Make eli say stuff"]
             (printf "Eli says: ~a\n" (getarg 'line)))
           (defcommand er #f "alias for errortrace" ["Runs errortrace"]
             (run-command 'errortrace)))
        (module->namespace 'xrepl/xrepl))

But this is too stupid even for a section that has "Hacking" in its title.

There should definitely be an organized way to do this.  This will
require several things:

* A decent API for doing these things for user code.  (So the above
  `eval' turns to a `require' for your file which uses this API.)  This
  goes beyond just documenting what's in there -- there are issues to
  resolve like some argument reading protocol (separating the
  declaration of argument types from the command implementation code),
  so a new command can call another with arguments that it reads.

* There should also be some ,set command for customization
  options (reading and changing) and code to use the preference file for
  doing that.  I almost started to do this, but currently there are only
  three values that this could apply to (`saved-values-char', `-number',
  and `wrap-column' (which might be better to dump and use
  `pretty-print-columns' instead)).

* Also, it might be nice to have some command to do the same for simple
  aliases.  (But this might get into shady parsing issues if it's more
  than just "I want `foo' to be an alias for an existing `bar' command".)
(cherry picked from commit 3c1e624916)
2011-07-19 11:36:17 -04:00
Eli Barzilay
3223a656a6 Hook XREPL into a few places where readline' and enter!' are mentioned.
(cherry picked from commit 5fb8390609)
2011-07-19 11:36:14 -04:00
Eli Barzilay
f8974781fe XREPL documentation.
(cherry picked from commit d7c14cbd3f)
2011-07-19 11:36:10 -04:00
Eli Barzilay
8d0db4cd35 Lots of improvements:
* Rename `make-command-{reader,evaluator}' ->  `make-xrepl-{reader,evaluator}'

* Move the commented-out ,meta block to a better place

* Protect the prompt computation against errors, to avoid infinite
  exception output if an exception is raised.

* Add ",switch ?" to query namespaces, and ",switch - <name>" to remove
  one.  Forbid resetting the default initial `*' namespace.

* Clarify that multiple arguments can be sent to ,stx and fix it to
  display the current syntax when there are no arguments.

* Various minor typos and improvements.

* Restore the use-last-arguments-by-default functionality of ,rr

* Re-do argument reading to make it easier to have a default
  argument (as in ,enter and ,edit).
(cherry picked from commit c57ab7b4fc)
2011-07-19 11:36:07 -04:00
Eli Barzilay
e0a96d3e7e Typo in the `errortrace' language description.
(cherry picked from commit 50b74c453f)
2011-07-19 11:36:02 -04:00
Eli Barzilay
c1a82bf23e Use (banner) instead of a fixed "Welcome to Racket" in the More tutorial
and in the guide.

Also, add a tag to the readline "License Issues" to be able to link to
it from the xrepl docs.
(cherry picked from commit 45394bb7b6)
2011-07-19 11:35:59 -04:00
Eli Barzilay
71ea3183ba Rename prompt-shown' -> zero-column!', and use it only in the
non-readline reader.  Use line reading for ,install!.

(Cherry-picked from 3f8bb7a, and edited conflucts because
`port-set-next-location!' is not added to the release.)
2011-07-19 11:34:29 -04:00
Robby Findler
d5045184c9 fix missing argument to format
please merge to release branch
(cherry picked from commit 2b99c86321)
2011-07-19 11:28:53 -04:00
Matthew Flatt
4b13d54396 fix "block cache" layer to handle allocation failure
(cherry picked from commit 5efe7001d6)
2011-07-19 11:28:51 -04:00
Guillaume Marceau
d8c7bd138f Undoes the 'produces -> return' part of commit c31d352f, keeping the 'changes -> mutates' change and the assorted bug fixes it contained.
(cherry picked from commit adf965e92a)
2011-07-19 11:28:47 -04:00
Matthew Flatt
df42ae7cb7 fix `get-module-path' and associated exception
Closes PR 12029
(cherry picked from commit d8d762517f)
2011-07-19 11:28:45 -04:00
Matthew Flatt
34530173f9 fix `enter!' to set module source name
Merge to 5.1.2
(cherry picked from commit 67936b7a66)
2011-07-19 11:28:41 -04:00
Eli Barzilay
f8c4f23b5c Manually constructed patch from Robby: fixes the executable problem. 2011-07-19 11:27:51 -04:00
Matthew Flatt
70fdc4ef90 fix source name of built-in modules
Closes PR 12051

 Merge to 5.1.2
(cherry picked from commit 92671ab3ea)
2011-07-19 11:23:34 -04:00
Matthew Flatt
253ba1376b belated test case for cm ".dep"-read fix
Merge to 5.1.2
(cherry picked from commit 67272f114b)
2011-07-19 11:23:25 -04:00
Matthew Flatt
4af675677d fix printing of namespace with places enabled
This commit goes with 62acb298bd.
(cherry picked from commit 701c9666d6)
2011-07-19 11:23:22 -04:00
Matthew Flatt
5a5430f91e revert unnecessary refactoring
--- intended to avoid creating a dependency that already exists

 Merge 5.1.2
(cherry picked from commit ab0e78122c)
2011-07-19 11:23:19 -04:00
Matthew Flatt
bc46623eca restore deinprogramm reader module suffix
(cherry picked from commit fc914dfac8)
2011-07-19 11:23:16 -04:00
Matthew Flatt
ed4185cae9 don't compile test file with image constant
(cherry picked from commit bd10ccc1b7)
2011-07-19 11:23:05 -04:00