Commit Graph

22073 Commits

Author SHA1 Message Date
Matthew Flatt
530bb1b9ba code-inspector fix for top-level code from bytecode
Merge to 5.1.2
2011-07-20 14:25:24 -06:00
Matthew Flatt
8504996862 fix `raco ctool -e' for syntax taints
Merge to 5.1.2
2011-07-20 14:09:38 -06:00
Matthew Flatt
0d2b08f053 fix validation of top-level define-{syntaxes,values-for-syntax}
(Only appears in bytecode for non-module code.)

Merge to 5.1.2
2011-07-20 14:08:30 -06:00
Matthew Flatt
5b8a892fbb fix bug in .zo writing
The bug showed up in the "racket/embed.rktl" test.

Merge to 5.1.2
2011-07-20 13:57:52 -06:00
Matthew Flatt
30174b3c81 another try at Mac OS X 10.4 x86 libraries
Merge to 5.1.2
2011-07-20 13:26:48 -06:00
Sam Tobin-Hochstadt
7a763a2da8 Fix types of kernel struct constructors to include parent fields.
Merge to 5.1.2.
2011-07-20 15:19:53 -04:00
Matthias Felleisen
59f0732fa0 fixed docs for >=; Closes PR 12066 2011-07-20 15:20:22 -04:00
Casey Klein
7d103bdfd8 Updates Redex history for v5.1.2 2011-07-20 09:24:17 -05:00
Matthew Flatt
d9ae1d048d 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
2011-07-19 15:27:50 -06:00
Robby Findler
9595145d79 adjust the teaching languages so they print images specially.
I picked "#<image>" not because I think it is a good way to print,
  but just so that there is something there to be easily changed later,
  when someone who has an opinion decides to change it.
2011-07-19 16:17:06 -05:00
Robby Findler
2a78ea9723 change autowrapping preference default
please merge to release branch
2011-07-19 16:17:04 -05:00
Robby Findler
230f18a366 add some detail about bullet and o-bullet to slideshow docs
closes PR 12055
2011-07-19 16:17:02 -05:00
Robby Findler
3fa2cc0d67 adjust the size-pref frame mixin to track the position of the frame in a multi-monitor sensitive way
(also fix various issues with that code and unify the framework and drracket way of doing this)
2011-07-19 16:16:50 -05:00
Sam Tobin-Hochstadt
f67d46cd2f Pass the correct number of arguments to `display-size'. Closes PR 12062. 2011-07-19 17:04:51 -04:00
Eli Barzilay
1b86ff641a Typo in comment 2011-07-19 17:04:42 -04:00
Sam Tobin-Hochstadt
8a608ed840 Conditionalize use of contract. 2011-07-19 16:47:13 -04:00
Eric Dobson
e07ce478af Switched name field in struct type to identifier. Closes PR 11728.
Closes PR 11998. Closes PR11859.
2011-07-19 16:47:13 -04:00
Eric Dobson
81b1178a17 Fixed TR contracts to be more/less strict 2011-07-19 16:47:13 -04:00
Eric Dobson
a7f0f7591d Fixed types for path operations. Closes PR12057. 2011-07-19 16:47:13 -04:00
Eli Barzilay
8109299ec8 Improve macro stepper output, and some more ,stx outputs. 2011-07-19 16:39:15 -04:00
Eli Barzilay
f5e53de4d9 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.
2011-07-19 16:39:15 -04:00
Vincent St-Amour
419398ce1a Fix test to not be dependent on floating-point printing. 2011-07-19 15:19:17 -04:00
Vincent St-Amour
29882d8fa1 Remove redundant precision-loss messages. 2011-07-19 15:19:17 -04:00
Guillaume Marceau
2ae0376476 Fixes the (cons an image empty) error message 2011-07-19 13:01:07 -04:00
Jon Rafkind
a7768a13a3 use #%module-begin for honu modules so top level expressions get printed
macros return whether they terminate parsing
2011-07-19 11:00:32 -06:00
Matthew Flatt
255549c8c8 win32: fix is-maximized' in frame%'
Merge to 5.1.2
2011-07-19 08:55:33 -06:00
Matthew Flatt
6d073e0cf7 fix `get-slides-as-picts' to record margin with picts
Closes PR 12059
2011-07-19 08:45:11 -06:00
Matthew Flatt
c8b3763359 cocoa: fix image paste
Closes PR 12028

 Merge to 5.1.2
2011-07-19 08:12:39 -06:00
Stevie Strickland
6bf13ee2dd For lack of a colon, unit tests were failed. 2011-07-19 08:25:42 -04:00
Carl Eastlund
302cbb5275 Fixed a macro stepper bug: can't use zero? on syntax span, as it can be #f.
Please include in the upcoming release.
2011-07-19 03:07:53 -04:00
Matthew Flatt
23a2a075ea add get-display-count' and #:screen argument to get-display-size'
and to `get-display-left-top-inset'

 add -M <monitor> option to Slideshow
2011-07-18 20:15:15 -06:00
Matthew Flatt
b096fb7503 gtk: `get-display-size' reports main monitor only
and the same for `get-display-left-top-inset'
2011-07-18 19:59:05 -06:00
Matthew Flatt
25329c203c typo 2011-07-18 19:59:05 -06:00
Sam Tobin-Hochstadt
42b79dd489 Fix Typed Racket handling of exception handling with multiple return values. 2011-07-18 17:42:28 -04:00
Sam Tobin-Hochstadt
23c47728c5 Strengthen contracts to require syntax lists. 2011-07-18 17:41:17 -04:00
Sam Tobin-Hochstadt
25cdd87405 Fix internal error message. 2011-07-18 17:38:40 -04:00
Eli Barzilay
09c8880ea0 Fix reading a 'line argument: always succeeds and returns the line as-is. 2011-07-18 15:39:18 -04:00
Eli Barzilay
261288c394 Add $F for ,sh commands. 2011-07-18 15:34:31 -04:00
Eli Barzilay
3c1e624916 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".)
2011-07-18 15:23:09 -04:00
Eli Barzilay
5fb8390609 Hook XREPL into a few places where readline' and enter!' are mentioned. 2011-07-18 14:25:10 -04:00
Eli Barzilay
d7c14cbd3f XREPL documentation. 2011-07-18 14:25:10 -04:00
Eli Barzilay
c57ab7b4fc 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).
2011-07-18 14:25:10 -04:00
Eli Barzilay
50b74c453f Typo in the `errortrace' language description. 2011-07-18 14:25:10 -04:00
Eli Barzilay
45394bb7b6 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.
2011-07-18 14:25:10 -04:00
Eli Barzilay
3f8bb7a453 Rename prompt-shown' -> zero-column!', and use it only in the
non-readline reader.  Use line reading for ,install!.
2011-07-18 14:25:10 -04:00
Jon Rafkind
3a1dde7f14 parse arguments. provide basic math operations 2011-07-18 11:28:34 -06:00
Stephen Chang
7eedae8f69 fix lazy stepper test - lazy-cond1 2011-07-18 12:34:14 -04:00
Vincent St-Amour
4c5bb1ddaf Change a TR doc example to take two arguments.
Otherwise, the docs don't have any examples for the syntax of
multi-argument functions that doesn't involve polydots.
2011-07-18 11:53:39 -04:00
Ryan Culpepper
7e1627679c unstable/gui/blur: added box blur option 2011-07-18 09:01:26 -06:00
Ryan Culpepper
5cf2767e7a macro-stepper: update tests 2011-07-18 09:01:26 -06:00