Commit Graph

34009 Commits

Author SHA1 Message Date
Matthew Flatt
f9f43a4be7 avoid compiler warnings 2014-09-07 07:47:19 -06:00
Neil Toronto
c245ef4c67 Fixes and additions for some GUI class types 2014-09-06 22:44:26 -04:00
Asumu Takikawa
99c8da4d92 Adjust types for stx-map and syntax->list
These types need to be adjusted to match the types that
are now produced for syntax datums due to the previous
commit.
2014-09-06 17:39:24 -04:00
AlexKnauth
ada4fb74fa Fix typechecking of (syntax ...) expressions
The type is
  (Syntaxof the-type-of-the-result-of-syntax-e), not
  (Syntaxof the-type-of-the-result-of-syntax->datum)

Closes PR 14561
2014-09-06 17:39:24 -04:00
Matthew Flatt
289e908ab2 string-normalize-...: fix memcpy that should be memmove 2014-09-05 22:02:13 -06:00
Matthew Flatt
230ce10b11 bump version 2014-09-05 21:13:16 -06:00
Matthew Flatt
51d91032f5 optimizer: fix bug
Repair a typo in b0f4a32049; thanks to Blake Johnson.
2014-09-05 21:10:16 -06:00
Matthew Flatt
79f7a642e1 avoid compiler warnings 2014-09-05 19:06:02 -06:00
Matthew Flatt
33e97745e9 treat OS page manager (especially Linux) more gently
Batch up mprotect() calls when cleaning up a place. Hopefully,
this will avoid ENOMEM errors from mprotect() on DrDr's build.
2014-09-05 17:49:41 -06:00
Matthew Flatt
af9e891215 module caching: ensure consistency of directory paths
Use `path->directory-path` to normalize directory paths and
increase use of the cache.
2014-09-05 15:54:18 -06:00
Matthew Flatt
bc48e9b935 win32: reduce allocation in the scheduler
It's not clear that the changes affect anything in practice,
but they avoid unnecessary allocation and quadratic behavior
in principle.
2014-09-05 15:54:17 -06:00
Matthew Flatt
3e8ef82c55 try to fix module-caching test 2014-09-05 15:08:46 -06:00
Matthew Flatt
cd17e08f12 check result of mprotect() 2014-09-05 13:49:27 -06:00
Matthew Flatt
59d3663106 ffi/unsafe win32: fix inefficiency in call-in-orig-thread mode
The problem made simultaneous rendering of "plot" and "math"
documentation about 10 times slower than it should be.
2014-09-05 10:34:27 -06:00
Matthew Flatt
f885d98d60 make site: fix for SRC_CATALOG mode
In SRC_CATALOG mode, there's not a separate "native" directory.
2014-09-05 09:40:54 -06:00
Matthew Flatt
f32d4b0187 minor cleanup on thread termination 2014-09-04 23:49:50 +02:00
Matthew Flatt
52514a4af4 fix interaction of alarm-evt and replace-evt
With `replace-evt` the time that the system needs to wake up
to check the event can drift later, but scheduling state was
carried in a way that works only if the wake-up time drifts
earlier.

Unfortunately, I don't know how to write a test for this bug.
The usual stategy of using `system-idle-evt` to detect busy
waiting doesn't work here, because the business happens despite
the scheduler's conclusion that the system is idle.

As reported by Jan Dvořák on the mailing list.
2014-09-04 23:49:28 +02:00
Matthew Flatt
59fac3d38a racket/port: fix busy-wait bug in make-limited-input-port
As reported by Marc Burns on the mailing list
2014-09-04 23:46:18 +02:00
Matthew Flatt
c9a11c4ee4 scribble/eval: change handling of serializable convertible results
When an evaluation result from a sandboxed computation is convertible
(so that it should be preserved for rendering) and serializable, then
serialize the value from transfer from the sandboxed environment to
the rendering environment.

This change complements the one that makes `pict`s serializable.
Serializing a pict result avoids retaining the sandboxed environment,
including its instance of the `pict` and `racket/draw` modules,
when a sandbox-created pict is part of the generated document.
For example, the memory use of the result of "math.scrbl" is about
20% smaller with this change.
2014-09-04 23:46:18 +02:00
Matthew Flatt
105d0b27f4 pict: make picts serializable 2014-09-04 23:46:18 +02:00
Matthew Flatt
77ddf71bc2 pict: throw out LaTeX back-end and simplify
The "texpict" interface as based by LaTeX is ancient, undocumented,
and unlikely to have been used since the previous millennium. Throw it
out and simplify the implementation (by discarding signatures and
units).
2014-09-04 23:46:18 +02:00
Marc Burns
0353211b81 Couple of grammar fixes. 2014-09-04 11:07:10 -04:00
Vincent St-Amour
aa43a958d2 Fix typo in math/matrix docs.
Closes PR14721.
2014-09-04 10:43:18 -04:00
Jay McCarthy
34dc76bd05 Revert "Fix PR14692"
This reverts commit 92d5408aa8, because
it breaks the build due to recursive deps. (It also breaks if the core
is in the "racket" package.)
2014-09-03 10:53:28 -04:00
Jay McCarthy
92d5408aa8 Fix PR14692 2014-09-03 10:44:29 -04:00
Matthew Flatt
b942a21846 fix module-code caching
Fixes a problem with c4508ad0d9, which disabled module-code
caching too often. A symptom of the disabled cache was that
running "math/scribblings/math.scrbl" would use twice
as much memory.
2014-09-03 12:16:29 +02:00
Asumu Takikawa
65453037d5 Fix last commit for hv-alternating algorithm 2014-09-02 14:13:00 -04:00
Asumu Takikawa
5d281f9cff Add edge-width option to tree-layout 2014-09-02 12:09:36 -04:00
Matthias Felleisen
82c10f79c6 fix typo, Closes PR14720 2014-09-02 12:21:30 +02:00
Matthias Felleisen
ae2dcdeb9e added a watcher thread to check on animated gif creation 2014-09-02 12:21:30 +02:00
Matthias Felleisen
a96b45be9c wrapped in new testing macro 2014-09-02 12:21:30 +02:00
Robby Findler
4ba0451caf make font size changes also change the font of the edge
labels and the size of the arrow heads in traces

closees PR 14719
2014-09-01 10:47:29 -05:00
Robby Findler
b212f21977 add the capability to dynamically adjust the edge label font 2014-09-01 10:47:29 -05:00
Matthias Felleisen
d6048fd7f1 interpolation for recorded animation; for David for now 2014-09-01 16:42:49 +02:00
Matthias Felleisen
a0c984bd09 moved a manual test over 2014-09-01 16:42:48 +02:00
Matthew Flatt
2a9b81fd54 Windows installer: uninstall "collects"
Closes PR 14715, where Eli describes the repair

(Probably, the "collects" directory was missing from the uninstaller
list because "collects" moved under "lib" in an intermediate variant
of the directory organization.)
2014-09-01 14:44:28 +02:00
Matthew Flatt
0d9bb1367e distro-build/readme: adjust content of generated README files
Relevant to PR 14714

(I think the remaining suggestions in the PR are about the build
configuration.)
2014-09-01 14:40:27 +02:00
Matthew Flatt
fa75aec408 make installers: avoid dot-files (like ".gitignore") in installers
Closes PR 14716
2014-09-01 12:08:45 +02:00
Matthew Flatt
b0f4a32049 fix cross-module function inlining and argument use-count tracking
Order mismatch between tracking an use could cause a multiply-used
argument to be treated after inlining as a single-use argument.

Closes PR 14717
2014-09-01 12:08:44 +02:00
Robby Findler
854e9a997a fix dot layout when children are deleted
closes PR 14718
2014-09-01 04:11:42 -05:00
Matthew Flatt
b3b9eb0eb4 racket/gui keymap: adjust handling of 'control, etc., events
If a keymap has a grab, then discard key events that are modifier
changes or key releases.

Adjusts commit 8ba8d01ec0 so that Ctl-u work in DrRackt (and
other framework-based programs).
2014-08-31 15:26:59 +02:00
Matthew Flatt
032397d6f9 racket/gui win32: fix Space handling of buttons and checkboxes
Suppress WM_KEYDOWN messages to a button or checkbox, so that the
top-level window takes care of Space and Return for a button or
checkbox with the keyboard focus.

Closes PR 14710
2014-08-31 11:59:44 +02:00
Sam Tobin-Hochstadt
2d701f046c Add get-all-pkg-scopes. 2014-08-29 21:40:38 -04:00
Matthew Flatt
321a3be29f racket/gui cocoa: adjust control font for 10.10 2014-08-29 14:56:27 -06:00
Neil Toronto
8ba8d01ec0 Altered keymap% to not claim to handle key events that it doesn't
Previously, `keymap%` would return #t for all shift, ctrl, and key release
events. DrRacket's editors would then not handle those events (correctly,
as they shouldn't handle already-handled events), meaning that the events
weren't sent to any snips.
2014-08-29 16:44:02 -04:00
Neil Toronto
82dca13f97 Added fast-flfsa/error and flfsa/error (fused square-and-add) 2014-08-29 16:44:01 -04:00
Neil Toronto
8cb4214586 Added fllog2near 2014-08-29 16:44:01 -04:00
Matthew Flatt
1cb16f6c36 ffi/unsafe/objc: fix objc-is-a? to recognize subclass instances
This repair turns out to matter for Mac OS X 10.10, where creating
a list box in a frame somehow makes the frame an instance of a
subclass (that implements notifications of some sort, I think).
That subclassing broke an `(objc-is-a? ... RacketWindow)` test to
recognize windows that belong to a particular eventspace.
2014-08-29 14:12:26 -06:00
Matthew Flatt
3a716b98c0 racket/gui gtk: workaround problem with async IBus input method
Affects Ubuntu 13.10 and 14.04, especially with multiple processors.
2014-08-29 10:12:27 -06:00
Matthew Flatt
76f1ebded9 Mac OS X: incorporate Pango repair for Yosemite
Pango 1.36.6 fixes the problem, so update native libraries
and the Coretext patch.
2014-08-29 10:12:27 -06:00