Matt Birkholz [Fri, 3 Aug 2012 05:51:41 +0000 (22:51 -0700)]
Merge branch 'Gtk' (pre Gtk 3) into Gtk-Screen.
Matt Birkholz [Wed, 25 Jul 2012 06:47:48 +0000 (23:47 -0700)]
gtk: Chop GDK_KEY_ off of key names (not just GDK_).
Matt Birkholz [Tue, 24 Jul 2012 05:02:48 +0000 (22:02 -0700)]
gtk: Fixed spin in gtk-test after test-process.
Re-enabled the runtime/test-process tests. Added maybe-signal-io-
thread-events to yield-thread, and made it unconditionally test-
select-registry, even if there are no io-registrations. In gtk-test,
the main thread sleeps and the gtk-thread runs alone. Neither
registers for io or process status change events, yet gtk-thread needs
subprocess-global-status-tick to happen anyway (else run_gtk
immediately returns PROCESS-STATUS-CHANGE and gtk-thread spins).
Assumed that maybe-signal-io-thread-events could be fixed by allowing
it to test-select-registry even when the registry is empty.
Moved all subprocess status change work into handle-subprocess-status-
change, which now calls subprocess-global-status-tick and compares the
latest tick to the tick saved last time. When statuses have changed
since the last tick, it polls process statuses (and closes i/o) and
un-suspend waiters. The former was only done for NT, but does not
hurt on Unix. The latter is accomplished by the new signal-
subprocess-status-change procedure. All other calls to subprocess-
global-status-tick were redundant, or were replaced by calls to
handle-subprocess-status-change.
Matt Birkholz [Fri, 20 Jul 2012 23:01:26 +0000 (16:01 -0700)]
gtk: Suppress all file load notifications during (load-option 'gtk).
Matt Birkholz [Fri, 20 Jul 2012 22:59:36 +0000 (15:59 -0700)]
gtk: Set scheme_source to G_PRIORITY_LOW, below window resizes.
This allows the time-slice window to grow with its count even when
Scheme is spinning.
Matt Birkholz [Fri, 20 Jul 2012 17:27:33 +0000 (10:27 -0700)]
gtk: Use Cairo, punt gdk_draw_*, in preparation for Gtk+ 3.0.
Also replaced some structure member accesses with accessor functions
(or just eliminated them). Deleted some unused declarations.
GdkVisual, GdkGC and GdkDrawable are no more. Fixed green and blue
switchup in peek-gdkcolor and a call to vector-length with 2 args in
guarantee-color-spec.
Matt Birkholz [Sat, 14 Jul 2012 03:21:01 +0000 (20:21 -0700)]
gtk: Document the remaining exported bindings.
Don't warn about undocumented make-*-demo and *-gc-cleanup bindings.
Export <fix-widget>.
Matt Birkholz [Fri, 13 Jul 2012 23:01:33 +0000 (16:01 -0700)]
gtk: Documented the GIO interface.
Punted g_file_info_remove_attribute (for now).
Matt Birkholz [Fri, 13 Jul 2012 16:51:54 +0000 (09:51 -0700)]
gtk: Document <fix-widget>, factored out of <fix-layout> in
d8c9c69.
Matt Birkholz [Fri, 13 Jul 2012 16:39:55 +0000 (09:39 -0700)]
gtk: Punt set-fix-widget-size!; use gtk-widget-set-size-request.
Matt Birkholz [Fri, 13 Jul 2012 16:25:28 +0000 (09:25 -0700)]
gtk: Punt set-fix-layout-size!; use gtk-widget-set-size-request.
Matt Birkholz [Fri, 13 Jul 2012 16:14:06 +0000 (09:14 -0700)]
gtk: Implement already documented gtk-widget-is-composited?.
Matt Birkholz [Fri, 13 Jul 2012 02:23:53 +0000 (19:23 -0700)]
doc/gtk/check.scm: Compare @deffns against package exports.
Matt Birkholz [Fri, 13 Jul 2012 02:21:44 +0000 (19:21 -0700)]
gtk: Avoid signaling an error in hook/process-command-line.
Matt Birkholz [Fri, 13 Jul 2012 02:12:05 +0000 (19:12 -0700)]
tests: Shorten a few of the most time-consuming tests when FAST=nonnull.
Matt Birkholz [Fri, 13 Jul 2012 02:07:46 +0000 (19:07 -0700)]
gtk: Run gtk/test-gtk.scm which now punts if DISPLAY is not set.
Matt Birkholz [Fri, 13 Jul 2012 02:02:12 +0000 (19:02 -0700)]
gtk: Add delete_event signal handler to the time-slice window.
Matt Birkholz [Fri, 13 Jul 2012 02:00:22 +0000 (19:00 -0700)]
gtk: Note loading of GTK, not just SOS and FFI.
Matt Birkholz [Fri, 13 Jul 2012 01:54:21 +0000 (18:54 -0700)]
gtk: Include libgthread-2.0 in gtk-shim.so.
Matt Birkholz [Fri, 13 Jul 2012 01:12:03 +0000 (18:12 -0700)]
Merge branch 'master' into Gtk
Matt Birkholz [Fri, 13 Jul 2012 00:30:21 +0000 (17:30 -0700)]
microcode: Fix start in mmap_heap_malloc_search for __linux__.
The AppArmor hack moved and missed its chance to frob start.
Matt Birkholz [Thu, 12 Jul 2012 22:03:49 +0000 (15:03 -0700)]
Merge branch 'master' into Gtk
Matt Birkholz [Thu, 12 Jul 2012 22:01:21 +0000 (15:01 -0700)]
Added warn-errors?, like ignore-errors, to turn errors into warnings.
Matt Birkholz [Thu, 12 Jul 2012 21:56:49 +0000 (14:56 -0700)]
tests/unit-testing.scm: Start report with a fresh-line.
Matt Birkholz [Thu, 12 Jul 2012 21:55:38 +0000 (14:55 -0700)]
tests/ffi/: De-register callback. Document asserts.
Matt Birkholz [Thu, 12 Jul 2012 21:49:15 +0000 (14:49 -0700)]
doc/ffi/ffi.texinfo: Frob whitespace.
Matt Birkholz [Thu, 12 Jul 2012 21:48:15 +0000 (14:48 -0700)]
ffi/Makefile-fragment: Always wrap stdin in a (begin ...)...
Matt Birkholz [Thu, 12 Jul 2012 21:46:25 +0000 (14:46 -0700)]
ffi: Fix free to update malloced-aliens.
Matt Birkholz [Thu, 12 Jul 2012 21:11:57 +0000 (14:11 -0700)]
Merge branch 'master' into Gtk
Taylor R Campbell [Wed, 11 Jul 2012 03:46:20 +0000 (03:46 +0000)]
Merge branch 'ecraven-swank'
Peter Feigl [Thu, 3 May 2012 07:58:44 +0000 (09:58 +0200)]
Basic support for describing things in swank.
* Describing
Adding basic support for SWANK:DESCRIBE-FUNCTION and
SWANK:DESCRIBE-SYMBOL.
Peter Feigl [Thu, 3 May 2012 07:45:45 +0000 (09:45 +0200)]
Fix basic debugging problems.
* Debugging
There are numerous problems, including no replies sent to messages and
incorrect replies.
- Added condition/report-string to the abort message.
- Added a DYNAMIC-WIND in the condition handler in the message handler
for emacs-rex to ensure that the :abort message is always written,
even when a restart is called.
- Added a global (fluid) binding *index* that is used to send the
correct message index in the :debug message.
There are many problems remaining, to be tackled in a later commit.
Peter Feigl [Thu, 3 May 2012 07:36:24 +0000 (09:36 +0200)]
Adding directory support to swank.scm.
* Directories
Added directory functions SWANK:DEFAULT-DIRECTORY and
SWANK:SET-DEFAULT-DIRECTORY for slime commands ,!d ,cd ,+d ,-d
,change-directory ,push-directory ,pop-directory ,pushd ,popd ,pwd
Peter Feigl [Thu, 3 May 2012 07:32:00 +0000 (09:32 +0200)]
Adding completion function swank:completions as an alias for swank:simple-completions.
* Completion
Trying to auto-complete in the REPL raises condition "Unbound variable:
swank:completions". It seems swank added swank:completions in addition
(or instead of?) swank:simple-completions.
Peter Feigl [Thu, 3 May 2012 07:31:24 +0000 (09:31 +0200)]
Add autodoc for procedures
* Autodoc
Actually implement swank:autodoc. It is called with a list form that contains the special symbol swank::%cursor-marker% somewhere to show the position of the cursor.
The new procedure FIND-STRING-BEFORE-SWANK-CURSOR-MARKER returns the symbol that starts the expression which contains the cursor as a string.
The new procedure PROCEDURE-PARAMETERS returns a list containing the function name and the list of parameters (as printed by PA) if symbol is bound to a function.
The new variable SWANK-EXTRA-DOCUMENTATION contains an (incomplete) list of "parameters" to special forms and macros.
Now we have working autodoc in the REPL and in Scheme buffers.
Peter Feigl [Thu, 3 May 2012 07:28:43 +0000 (09:28 +0200)]
Updating swank.scm to work with current slime-cvs
* Startup Problems [when using Emacs setting (slime-setup '(slime-fancy))]
- M-x slime raises condition "Unbound variable: swank:swank-require"
=> fixed by defining swank:swank-require to return '()
- M-x slime shows "error in process filter: Can't find suitable coding-system"
=> fixed by adding :encoding (:coding-systems ("utf-8-unix" "iso-latin-1-unix")) to the connection info
- M-x slime raises condition "Unbound variable :conding-system" (which is due to all parameters being evaluated)
=> fixed by adding QUOTE-SPECIAL and mapping it over the parameters (quoting all keywords [symbols that start with a colon] and T and NIL)
- Typing an expression raises condition "Unbound variable: swank:autodoc"
=> fixed by defining swank:autodoc to return (list ':not-available 't)
- Slime complains about mismatched versions
=> fixed by changing :version in swank:connection-info to "2012-05-02" which matches slime-cvs
Now we have a working SLIME REPL again.
Taylor R Campbell [Wed, 11 Jul 2012 01:37:40 +0000 (01:37 +0000)]
Merge branch 'amd64-load-char-bug'
Taylor R Campbell [Wed, 11 Jul 2012 01:35:10 +0000 (21:35 -0400)]
Fix syntax of MOVZX instruction in LOAD-CHAR-INTO-REGISTER.
Thanks, mejja.
We need to check this stuff at compile-time...blahhh.
Taylor R Campbell [Thu, 5 Jul 2012 00:57:00 +0000 (00:57 +0000)]
Try harder to mmap heap space.
Using mmap rather than malloc is important because we need read,
write, and execute privileges for the pages.
Some day, maybe we can change that requirement, but that day will not
be for a while.
Taylor R Campbell [Wed, 4 Jul 2012 23:05:37 +0000 (23:05 +0000)]
Rework mmap_heap_malloc.
Don't do mmap(MAP_FIXED) unless we know the address space is free.
Otherwise it will clobber whatever else was there, including, say,
the text segment of the microcode!
Taylor R Campbell [Wed, 4 Jul 2012 23:02:39 +0000 (23:02 +0000)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme
Joe Marshall [Tue, 5 Jun 2012 02:58:35 +0000 (19:58 -0700)]
Make LETREC and LETREC* be ordinary macros. Avoid adding integrate declarations to procedures with no arguments.
Matt Birkholz [Tue, 29 May 2012 20:14:09 +0000 (13:14 -0700)]
Merge branch 'master' into Gtk.
Joe Marshall [Thu, 24 May 2012 18:46:42 +0000 (11:46 -0700)]
Use quote instead of tick mark.
Joe Marshall [Thu, 24 May 2012 18:44:02 +0000 (11:44 -0700)]
Use lambda-bound? procedure.
Joe Marshall [Thu, 24 May 2012 18:42:03 +0000 (11:42 -0700)]
Add lambda-bound? procedure.
Joe Marshall [Thu, 24 May 2012 16:24:11 +0000 (09:24 -0700)]
Get rid of fluid variable by adding an argument. Better unsyntaxing of global references.
Joe Marshall [Wed, 23 May 2012 17:41:55 +0000 (10:41 -0700)]
Add way to dump macroexpanded and optimized output from SF.
Joe Marshall [Mon, 21 May 2012 18:24:38 +0000 (11:24 -0700)]
Fix unsyntaxing of open-blocks and block-declarations.
Joe Marshall [Mon, 21 May 2012 18:10:40 +0000 (11:10 -0700)]
Make ASSERT pass along arguments to ERROR.
Joe Marshall [Sat, 19 May 2012 17:29:08 +0000 (10:29 -0700)]
Remove undefined export.
Joe Marshall [Sat, 19 May 2012 17:28:04 +0000 (10:28 -0700)]
Echo output from CREF (if any).
Joe Marshall [Sat, 19 May 2012 17:25:56 +0000 (10:25 -0700)]
Wrap show-time around compilations. Add newline after disk-save.
Joe Marshall [Fri, 18 May 2012 16:24:56 +0000 (09:24 -0700)]
Fix names of environment variables MITSCHEME_HEAP_SIZE and MITSCHEME_STACK_SIZE. Remove trailing whitespace.
Matt Birkholz [Wed, 16 May 2012 21:26:32 +0000 (14:26 -0700)]
Fix commit
339824b so %channel-read returns no-data instead of eof.
Matt Birkholz [Wed, 9 May 2012 22:55:43 +0000 (15:55 -0700)]
New runtime ASSERT syntax conflicts with local assert binding.
Rename the assert procedure VALUE-ASSERT, like PREDICATE-ASSERTION.
Matt Birkholz [Wed, 9 May 2012 22:45:42 +0000 (15:45 -0700)]
microcode/configure.ac: error if --with-termcap=no on Unix.
The build will fail without a termcap-ish library in LIBS because of
references to e.g. tgetent in uxtty.c.
Matt Birkholz [Wed, 9 May 2012 22:43:07 +0000 (15:43 -0700)]
bug #30546: Treat #f like WILD in directory-read pathname matching.
Matt Birkholz [Tue, 8 May 2012 18:41:27 +0000 (11:41 -0700)]
bug#36430: Write should escape symbols that look special.
(write '|#f|) now emits "|#f|", not "#f".
Matt Birkholz [Fri, 4 May 2012 20:58:14 +0000 (13:58 -0700)]
Guard against other threads unwinding block-on-io-descriptor.
This only arises when another thread uses within-continuation to
unwind block-on-io-descriptor. Such an unwinding can leave the
console-thread waiting for nothing. With no other io-registrations
nor runnable threads, the runtime busy-waits.
Chris Hanson [Fri, 4 May 2012 08:02:26 +0000 (01:02 -0700)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/mit-scheme
Chris Hanson [Fri, 4 May 2012 08:01:55 +0000 (01:01 -0700)]
Fix thinko: call-with-input-octets doesn't handle sub-range arguments.
Taylor R Campbell [Wed, 2 May 2012 14:29:11 +0000 (14:29 +0000)]
Fix duplicated `creates' in SIGNAL-CONDITION documentation.
Thanks, ecraven. (Also, thanks for the previous typo fix too.)
Taylor R Campbell [Mon, 30 Apr 2012 23:33:32 +0000 (23:33 +0000)]
Fix typo in documentation for EVERY.
Matt Birkholz [Mon, 30 Apr 2012 04:04:44 +0000 (21:04 -0700)]
Fixed channel-open to unblock threads and update the io-registry...
...using a new procedure: %deregister-io-descriptor. Also tightened
up channel-read and channel-write to check, within an atomic section,
that the port has not been closed.
If a closed channel is left in the io-registry, wait-for-io piles up
error levels because test-select-registry returns an "illegal mode".
Matt Birkholz [Sat, 28 Apr 2012 18:45:46 +0000 (11:45 -0700)]
edwin: Reworked get-console-input-operations.
Fixed the loop(s) to NOT block when incomplete-pending. They must
busy-wait for half a second. Thus the command key prefix ESC is
correctly echoed.
Also followed the example of get-xterm-input-operations, using
set-interrupt-enables! to implement an atomic section within which the
Edwin thread can test all event sources and block iff they are all
empty. Thus ONE loop tests sources and matches special keys, and uses
the new procedure %channel-read, a version of channel-read that can be
unblocked by an interrupt or process status change.
Arthur A. Gleckler [Sat, 14 Apr 2012 23:19:32 +0000 (16:19 -0700)]
Fixed typo in doc string for NEW-FILE-OPEN-EXCLUSIVE-OUTPUT-CHANNEL.
Chris Hanson [Mon, 9 Apr 2012 05:54:39 +0000 (22:54 -0700)]
Fix typo.
Chris Hanson [Mon, 9 Apr 2012 05:54:20 +0000 (22:54 -0700)]
Fix fencepost error in level.
Chris Hanson [Sun, 25 Mar 2012 20:13:40 +0000 (13:13 -0700)]
Handle non-string value of *buffer-pstring*.
Chris Hanson [Sun, 25 Mar 2012 09:08:20 +0000 (02:08 -0700)]
Merge branch 'master' of git.sv.gnu.org:/srv/git/mit-scheme
Chris Hanson [Sun, 25 Mar 2012 09:07:56 +0000 (02:07 -0700)]
Follow Emacs' advice to quote paren in first column.
Chris Hanson [Sun, 25 Mar 2012 09:01:16 +0000 (02:01 -0700)]
Swank might use t for the true object; define it to the symbol T when
evaluating swank exprs.
Taylor R Campbell [Sat, 24 Mar 2012 22:07:20 +0000 (22:07 +0000)]
Merge branch 'master' of ssh://git.sv.gnu.org/srv/git/mit-scheme
Taylor R Campbell [Sat, 24 Mar 2012 22:01:56 +0000 (22:01 +0000)]
Add ASSERT macro.
Matt Birkholz [Fri, 23 Mar 2012 14:31:55 +0000 (07:31 -0700)]
Merge branch 'Gtk' into Gtk-Screen
Matt Birkholz [Fri, 23 Mar 2012 14:31:33 +0000 (07:31 -0700)]
Merge branch 'master' into Gtk
Chris Hanson [Sun, 11 Mar 2012 08:43:48 +0000 (00:43 -0800)]
Fix shell-script style issues.
Chris Hanson [Sun, 11 Mar 2012 08:40:37 +0000 (00:40 -0800)]
Eliminate bash-isms.
Chris Hanson [Sun, 11 Mar 2012 08:30:25 +0000 (00:30 -0800)]
Change get_fasl_file to set a variable rather than echo the name.
Chris Hanson [Sun, 11 Mar 2012 08:20:59 +0000 (00:20 -0800)]
Update copyright years.
Chris Hanson [Sun, 11 Mar 2012 06:44:33 +0000 (22:44 -0800)]
Use shell script to conditionally update SVM file.
Chris Hanson [Sun, 11 Mar 2012 06:35:30 +0000 (22:35 -0800)]
Update version and copyright year.
Chris Hanson [Sun, 11 Mar 2012 06:28:56 +0000 (22:28 -0800)]
Update to do all standard directories and to translate more than one
copyright if present.
Chris Hanson [Sun, 11 Mar 2012 06:28:06 +0000 (22:28 -0800)]
Ignore svm build directory.
Chris Hanson [Sun, 11 Mar 2012 05:09:34 +0000 (21:09 -0800)]
Don't use fdatasync on OS X.
Matt Birkholz [Thu, 8 Mar 2012 19:00:06 +0000 (12:00 -0700)]
Do NOT preserve flo:environment across disk-save/restore.
This just makes it harder to use bands on systems with different
fenv_t's. (Without this "help", a band with no threads MIGHT work...)
Matt Birkholz [Thu, 8 Mar 2012 18:26:46 +0000 (11:26 -0700)]
Fix expose events that arrive before a fix-layout's drawing.
Matt Birkholz [Thu, 8 Mar 2012 18:26:17 +0000 (11:26 -0700)]
Merge branch 'master' into Gtk
Matt Birkholz [Thu, 8 Mar 2012 16:49:54 +0000 (09:49 -0700)]
Merge branch 'master' into Gtk
Chris Hanson [Thu, 8 Mar 2012 07:21:47 +0000 (23:21 -0800)]
Always wrap stdin in a (begin ...); otherwise expressions continue evaluating after errors.
Chris Hanson [Thu, 8 Mar 2012 07:09:06 +0000 (23:09 -0800)]
Prefer <termcap.h> to <term.h> if both are present.
Matt Birkholz [Thu, 8 Mar 2012 04:06:24 +0000 (21:06 -0700)]
svm: Remove setjmp from execute_instruction.
Trade some debuggability for significantly better performance.
Matt Birkholz [Thu, 8 Mar 2012 03:47:30 +0000 (20:47 -0700)]
svm: Use the svm1 machine to compile-everything.
This takes hours, but exercises the boot-compiler, which can compile
by-procedures. Added timestamps to the progress notes. The option to
cross-compile everything is available by defining FAST, e.g. `make
FAST=1'.
Matt Birkholz [Thu, 8 Mar 2012 03:45:15 +0000 (20:45 -0700)]
svm: Fix generate/remote-link and generate/remote-links.
Made generate/remote-links gc-wary.
Matt Birkholz [Thu, 8 Mar 2012 03:40:02 +0000 (20:40 -0700)]
svm: Fix COMPILER_TEMP_SIZE to 2.
On x86-64 sizeof(double)/sizeof(SCHEME_OBJECT) is 1, but
svm/machine.scm expects it to be 2 (as on i386).
Matt Birkholz [Thu, 8 Mar 2012 03:33:33 +0000 (20:33 -0700)]
svm: Added 32bit offsets to explicit-coding-type "address".
Compilation of win32/wf_user.bin produces block offsets like #x11168
and #x10a38.
Matt Birkholz [Wed, 7 Mar 2012 21:29:16 +0000 (14:29 -0700)]
Stage.sh: Keep .rtls,.laps with corresponding .mocs,.coms.
Matt Birkholz [Wed, 7 Mar 2012 21:28:05 +0000 (14:28 -0700)]
svm: Save a byte encoding (ea:stack-ref 0).
Matt Birkholz [Wed, 7 Mar 2012 21:27:06 +0000 (14:27 -0700)]
svm: Punt old (less interesting now) warnings.