mit-scheme.git
32 years agoSplit dired and comint into system-independent and system-dependent
Guillermo J. Rozas [Wed, 23 Sep 1992 23:06:49 +0000 (23:06 +0000)]
Split dired and comint into system-independent and system-dependent
portions.  This eliminates the need for most process stubs under DOS.

32 years agoMove dired system-dependent stuff elsewhere (dos.scm, unix.scm, dirunx.scm).
Guillermo J. Rozas [Wed, 23 Sep 1992 23:05:22 +0000 (23:05 +0000)]
Move dired system-dependent stuff elsewhere (dos.scm, unix.scm, dirunx.scm).

32 years agoInitial revision
Guillermo J. Rozas [Wed, 23 Sep 1992 23:05:02 +0000 (23:05 +0000)]
Initial revision

32 years agoMove system-dependent stuff elsewhere (dos.scm, unix.scm, dirunx.scm).
Guillermo J. Rozas [Wed, 23 Sep 1992 23:04:55 +0000 (23:04 +0000)]
Move system-dependent stuff elsewhere (dos.scm, unix.scm, dirunx.scm).

32 years agoRemove most of the contents. dired and comint have been cleaned so
Guillermo J. Rozas [Wed, 23 Sep 1992 23:04:23 +0000 (23:04 +0000)]
Remove most of the contents.  dired and comint have been cleaned so
that fewer bindings are needed.

32 years agoSplit comint into history manipulation and subprocess manipulation.
Guillermo J. Rozas [Wed, 23 Sep 1992 23:03:55 +0000 (23:03 +0000)]
Split comint into history manipulation and subprocess manipulation.
History is used by intmod, but the rest is not available under DOS.

32 years agoUpdate date.
Guillermo J. Rozas [Wed, 23 Sep 1992 22:44:24 +0000 (22:44 +0000)]
Update date.

32 years agoFix implementation of X-GRAPHICS/DISCARD-EVENTS.
Chris Hanson [Tue, 22 Sep 1992 22:42:14 +0000 (22:42 +0000)]
Fix implementation of X-GRAPHICS/DISCARD-EVENTS.

32 years agoRe-enable stack checks -- they're fixed now.
Chris Hanson [Tue, 22 Sep 1992 22:12:59 +0000 (22:12 +0000)]
Re-enable stack checks -- they're fixed now.

32 years agoFix typo in sense of conditional branch.
Chris Hanson [Tue, 22 Sep 1992 21:59:29 +0000 (21:59 +0000)]
Fix typo in sense of conditional branch.

32 years agoCOMPRESSED-LOADER now takes a second argument, the pathname-type of
Chris Hanson [Tue, 22 Sep 1992 20:13:23 +0000 (20:13 +0000)]
COMPRESSED-LOADER now takes a second argument, the pathname-type of
the uncompressed file to be generated when *SAVE-UNCOMPRESSED-FILES?*
is true.  This is necessary to allow COMPRESSED-LOADER to be used to
load ".bcs" files as well as ".bci" files.

32 years agoChanges to match those to runtime system's arithmetic.
Chris Hanson [Tue, 22 Sep 1992 02:19:42 +0000 (02:19 +0000)]
Changes to match those to runtime system's arithmetic.

32 years agoAdd hack to eliminate (lambda #f ...).
Chris Hanson [Mon, 21 Sep 1992 21:23:54 +0000 (21:23 +0000)]
Add hack to eliminate (lambda #f ...).

32 years agoAdd hack to eliminate (lambda #f ...).
Chris Hanson [Mon, 21 Sep 1992 20:35:24 +0000 (20:35 +0000)]
Add hack to eliminate (lambda #f ...).

32 years agoSome n-ary procedures return their argument when they are passed
Chris Hanson [Mon, 21 Sep 1992 19:06:40 +0000 (19:06 +0000)]
Some n-ary procedures return their argument when they are passed
exactly one.  Previously these procedures performed no type-checking
on such arguments; these checks have been added.

32 years agoFix DPMI_stack_fault_handler to use INT_Stack_Overflow.
Guillermo J. Rozas [Sat, 19 Sep 1992 19:06:16 +0000 (19:06 +0000)]
Fix DPMI_stack_fault_handler to use INT_Stack_Overflow.

32 years agoFix limit handling in DPMI_alloc_scheme_stack.
Guillermo J. Rozas [Sat, 19 Sep 1992 19:05:17 +0000 (19:05 +0000)]
Fix limit handling in DPMI_alloc_scheme_stack.

32 years agoUse OS_channel_close_noerror instead of OS_channel_close in
Guillermo J. Rozas [Fri, 18 Sep 1992 21:59:42 +0000 (21:59 +0000)]
Use OS_channel_close_noerror instead of OS_channel_close in
CLOSE-LOST-OPEN-FILES.

32 years agoFix typo.
Guillermo J. Rozas [Fri, 18 Sep 1992 19:40:07 +0000 (19:40 +0000)]
Fix typo.

32 years agoCan't use signed as a variable name.
Guillermo J. Rozas [Fri, 18 Sep 1992 19:39:16 +0000 (19:39 +0000)]
Can't use signed as a variable name.

32 years agoImplement new procedure X-GRAPHICS/DISCARD-EVENTS to discard mouse
Chris Hanson [Fri, 18 Sep 1992 19:05:24 +0000 (19:05 +0000)]
Implement new procedure X-GRAPHICS/DISCARD-EVENTS to discard mouse
button events that are in the queue.

32 years agoSignal error if user tries to set the pathname of a buffer to a
Chris Hanson [Fri, 18 Sep 1992 18:56:13 +0000 (18:56 +0000)]
Signal error if user tries to set the pathname of a buffer to a
directory.

32 years agoUse ulong_to_integer instead of long_to_integer to handle clock wrap
Guillermo J. Rozas [Fri, 18 Sep 1992 16:55:10 +0000 (16:55 +0000)]
Use ulong_to_integer instead of long_to_integer to handle clock wrap
around correctly.

32 years agoAdd ulong_to_integer and integer_to_ulong.
Guillermo J. Rozas [Fri, 18 Sep 1992 16:54:40 +0000 (16:54 +0000)]
Add ulong_to_integer and integer_to_ulong.

32 years agoAdd ulong_to_bignum and bignum_to_ulong.
Guillermo J. Rozas [Fri, 18 Sep 1992 16:52:34 +0000 (16:52 +0000)]
Add ulong_to_bignum and bignum_to_ulong.

32 years agoAdd the arities for all the primitives so the file can be sf'd on a
Guillermo J. Rozas [Fri, 18 Sep 1992 16:38:47 +0000 (16:38 +0000)]
Add the arities for all the primitives so the file can be sf'd on a
non-DOS.

32 years agoFix bug in last edit.
Guillermo J. Rozas [Fri, 18 Sep 1992 16:35:32 +0000 (16:35 +0000)]
Fix bug in last edit.

32 years agoAdd the arities for all the primitives so the file can be sf'd on a
Guillermo J. Rozas [Fri, 18 Sep 1992 16:30:34 +0000 (16:30 +0000)]
Add the arities for all the primitives so the file can be sf'd on a
non-Unix.

32 years agoAdd hardware stack overflow protection under DPMI.
Guillermo J. Rozas [Fri, 18 Sep 1992 05:54:21 +0000 (05:54 +0000)]
Add hardware stack overflow protection under DPMI.

32 years agoAdd STACK_RESET macro for machines/OSs in which we have hardware stack
Guillermo J. Rozas [Fri, 18 Sep 1992 05:53:31 +0000 (05:53 +0000)]
Add STACK_RESET macro for machines/OSs in which we have hardware stack
protection.

32 years agoInitialize Scheme_Stack_Segment_Selector only if it has not been
Guillermo J. Rozas [Fri, 18 Sep 1992 05:52:35 +0000 (05:52 +0000)]
Initialize Scheme_Stack_Segment_Selector only if it has not been
initialized.

32 years agoAdd Scheme_Stack_Segment_Selector for DOS, and make sure that esp is
Guillermo J. Rozas [Fri, 18 Sep 1992 02:05:26 +0000 (02:05 +0000)]
Add Scheme_Stack_Segment_Selector for DOS, and make sure that esp is
loaded immediately after ss because the 386 architecture masks
interrupts for one instruction after modifying ss.

32 years agoRename improperly declared extern (i386_interface_initialize.
Guillermo J. Rozas [Fri, 18 Sep 1992 02:03:13 +0000 (02:03 +0000)]
Rename improperly declared extern (i386_interface_initialize.

32 years agoAdd code to recognize the "write-protected" error when writing to the
Chris Hanson [Thu, 17 Sep 1992 23:48:42 +0000 (23:48 +0000)]
Add code to recognize the "write-protected" error when writing to the
floppy, and to give a more succinct error message.

32 years agoIn TYPEIN-EDIT-OTHER-WINDOW, don't return a window that has been
Chris Hanson [Thu, 17 Sep 1992 23:18:04 +0000 (23:18 +0000)]
In TYPEIN-EDIT-OTHER-WINDOW, don't return a window that has been
deleted.  Always return *some* window, even if all of the saved
windows has been deleted.

32 years agoint 21h 60h only writes 128 bytes.
Guillermo J. Rozas [Thu, 17 Sep 1992 13:31:53 +0000 (13:31 +0000)]
int 21h 60h only writes 128 bytes.

32 years agoAdd code to detect non-DOS filenames and discourage their use.
Chris Hanson [Thu, 17 Sep 1992 05:15:08 +0000 (05:15 +0000)]
Add code to detect non-DOS filenames and discourage their use.

32 years agoFix the adjustment for real-time timer wrap around.
Guillermo J. Rozas [Thu, 17 Sep 1992 01:31:42 +0000 (01:31 +0000)]
Fix the adjustment for real-time timer wrap around.

32 years agoAdd a patch to deliver-timer-events for real-time timer wrap-around.
Guillermo J. Rozas [Thu, 17 Sep 1992 00:57:07 +0000 (00:57 +0000)]
Add a patch to deliver-timer-events for real-time timer wrap-around.

32 years agoFlush references to indirect primitives. They do not exist for DOS.
Guillermo J. Rozas [Thu, 17 Sep 1992 00:47:35 +0000 (00:47 +0000)]
Flush references to indirect primitives.  They do not exist for DOS.

32 years agoFlush indirect primitives. They make no sense in DOS.
Guillermo J. Rozas [Thu, 17 Sep 1992 00:45:29 +0000 (00:45 +0000)]
Flush indirect primitives.  They make no sense in DOS.

32 years agoAdd file-access-time-direct, file-access-time-indirect,
Guillermo J. Rozas [Thu, 17 Sep 1992 00:41:34 +0000 (00:41 +0000)]
Add file-access-time-direct, file-access-time-indirect,
file-access-time, and set-file-times!

32 years agoFix broken conditional in notifier.
Guillermo J. Rozas [Thu, 17 Sep 1992 00:26:15 +0000 (00:26 +0000)]
Fix broken conditional in notifier.
The notify string was not being updated at all if the mail
notification hook was not installed.

32 years agoGet rid of IntEnb and IntCode as independent variables. They are now
Guillermo J. Rozas [Tue, 15 Sep 1992 21:40:26 +0000 (21:40 +0000)]
Get rid of IntEnb and IntCode as independent variables.  They are now
part of the register block.

32 years agoMake FILE-EQ? work correctly under DOS.
Guillermo J. Rozas [Tue, 15 Sep 1992 20:35:55 +0000 (20:35 +0000)]
Make FILE-EQ? work correctly under DOS.

32 years agoAdd HOOK/REPL-PROMPT.
Chris Hanson [Mon, 14 Sep 1992 23:53:03 +0000 (23:53 +0000)]
Add HOOK/REPL-PROMPT.

32 years agoDefine NIL and USER-INITIAL-ENVIRONMENT.
Chris Hanson [Mon, 14 Sep 1992 23:18:10 +0000 (23:18 +0000)]
Define NIL and USER-INITIAL-ENVIRONMENT.

32 years agoDisable EXIT and QUIT so that students aren't logged out by accident.
Chris Hanson [Mon, 14 Sep 1992 23:14:05 +0000 (23:14 +0000)]
Disable EXIT and QUIT so that students aren't logged out by accident.

32 years agoUse new %QUIT.
Chris Hanson [Mon, 14 Sep 1992 23:12:23 +0000 (23:12 +0000)]
Use new %QUIT.

32 years agoAdd %QUIT to guarantee access to basic QUIT mechanism.
Chris Hanson [Mon, 14 Sep 1992 23:11:54 +0000 (23:11 +0000)]
Add %QUIT to guarantee access to basic QUIT mechanism.

32 years agoAdd HOOK/EXIT and HOOK/QUIT to allow EXIT and QUIT to be overridden.
Chris Hanson [Mon, 14 Sep 1992 23:08:42 +0000 (23:08 +0000)]
Add HOOK/EXIT and HOOK/QUIT to allow EXIT and QUIT to be overridden.

32 years agoChange mail to insert both "From:" and "Reply-to:" addresses.
Chris Hanson [Mon, 14 Sep 1992 23:00:50 +0000 (23:00 +0000)]
Change mail to insert both "From:" and "Reply-to:" addresses.

32 years agoInstall new login window text from LAS.
Chris Hanson [Mon, 14 Sep 1992 21:43:09 +0000 (21:43 +0000)]
Install new login window text from LAS.

32 years agoUse home directory if "work/" doesn't exist.
Chris Hanson [Mon, 14 Sep 1992 21:21:32 +0000 (21:21 +0000)]
Use home directory if "work/" doesn't exist.

32 years agoAdd code to support a "motd" file.
Chris Hanson [Mon, 14 Sep 1992 21:18:46 +0000 (21:18 +0000)]
Add code to support a "motd" file.

32 years agoAdd dependencies for "lookprm".
Chris Hanson [Mon, 14 Sep 1992 20:51:31 +0000 (20:51 +0000)]
Add dependencies for "lookprm".

32 years agoFix occurrences of `set_IntEnb'.
Chris Hanson [Mon, 14 Sep 1992 20:34:40 +0000 (20:34 +0000)]
Fix occurrences of `set_IntEnb'.

32 years agoIn definitions of interrupt registers, use `Registers' instead of
Chris Hanson [Mon, 14 Sep 1992 20:34:20 +0000 (20:34 +0000)]
In definitions of interrupt registers, use `Registers' instead of
`Regs', because the latter breaks in "interp.c" where references occur
outside of `Interpret'.

32 years agoFor FOCUS-IN events, don't generate a SELECT-SCREEN operation if the
Chris Hanson [Mon, 14 Sep 1992 20:14:31 +0000 (20:14 +0000)]
For FOCUS-IN events, don't generate a SELECT-SCREEN operation if the
screen is already selected.  This should prevent spurious failures of
PROMPT-FOR-CHAR.

32 years agoAdd new hook for close-coded stack/interrupt check.
Chris Hanson [Sat, 12 Sep 1992 00:16:46 +0000 (00:16 +0000)]
Add new hook for close-coded stack/interrupt check.

32 years agoAdd new hook for close-coded stack/interrupt check.
Chris Hanson [Sat, 12 Sep 1992 00:08:33 +0000 (00:08 +0000)]
Add new hook for close-coded stack/interrupt check.

32 years agoAdd new hook for close-coded stack/interrupt check.
Chris Hanson [Fri, 11 Sep 1992 22:34:34 +0000 (22:34 +0000)]
Add new hook for close-coded stack/interrupt check.

32 years agoMove IntCode and IntEnb to the register block so that compiled code
Chris Hanson [Fri, 11 Sep 1992 21:59:11 +0000 (21:59 +0000)]
Move IntCode and IntEnb to the register block so that compiled code
can access them.

32 years agoDisable generation of stack checks until implementation bugs are
Chris Hanson [Fri, 11 Sep 1992 05:45:43 +0000 (05:45 +0000)]
Disable generation of stack checks until implementation bugs are
fixed.

32 years agoHandle stack checks correctly. Previous code was jumping to interrupt
Chris Hanson [Fri, 11 Sep 1992 02:04:05 +0000 (02:04 +0000)]
Handle stack checks correctly.  Previous code was jumping to interrupt
code even when stack-overflow interrupt was disabled.

32 years agoDon't do compensation kludge for 60-second granularity, it causes all
Chris Hanson [Thu, 10 Sep 1992 09:03:32 +0000 (09:03 +0000)]
Don't do compensation kludge for 60-second granularity, it causes all
files to be written back to floppy every time.

32 years agoTweak some of the presentations.
Chris Hanson [Thu, 10 Sep 1992 08:17:59 +0000 (08:17 +0000)]
Tweak some of the presentations.

32 years agoAdd "floppy" to the list of files that need compilation.
Chris Hanson [Thu, 10 Sep 1992 07:33:15 +0000 (07:33 +0000)]
Add "floppy" to the list of files that need compilation.

32 years agoMove editor customizations from "make.scm" to "edextra.scm". Extend
Chris Hanson [Thu, 10 Sep 1992 07:32:50 +0000 (07:32 +0000)]
Move editor customizations from "make.scm" to "edextra.scm".  Extend
filename customizations so that they do the usual thing when the files
being operated on are not part of the student environment.  Add
remaining backup and auto-save filename customizations.  Add
Scheme's file types to list of ignored types.  Disable key bindings
that exit the editor.

32 years agoAdd first version of floppy code.
Chris Hanson [Thu, 10 Sep 1992 05:21:53 +0000 (05:21 +0000)]
Add first version of floppy code.

32 years agoAdd first version of floppy code.
Chris Hanson [Thu, 10 Sep 1992 05:19:51 +0000 (05:19 +0000)]
Add first version of floppy code.

32 years agoInitial revision
Chris Hanson [Thu, 10 Sep 1992 05:19:33 +0000 (05:19 +0000)]
Initial revision

32 years agoExtend the definition of SELECT-BUFFER-IN-WINDOW so that it has the
Chris Hanson [Thu, 10 Sep 1992 02:44:28 +0000 (02:44 +0000)]
Extend the definition of SELECT-BUFFER-IN-WINDOW so that it has the
functionality of SET-WINDOW-BUFFER!.  Eliminate the latter, then
export the procedure of the same name from the window package.

32 years agoFix think-o in window-configuration stuff.
Chris Hanson [Tue, 8 Sep 1992 22:32:36 +0000 (22:32 +0000)]
Fix think-o in window-configuration stuff.

32 years agoEliminate losing and unnecessary definitions of string->number and
Chris Hanson [Tue, 8 Sep 1992 21:40:29 +0000 (21:40 +0000)]
Eliminate losing and unnecessary definitions of string->number and
number->string.

32 years agoFix typo in previous change.
Chris Hanson [Tue, 8 Sep 1992 18:39:59 +0000 (18:39 +0000)]
Fix typo in previous change.

32 years agoInstall mechanism for saving and restoring window configurations.
Chris Hanson [Tue, 8 Sep 1992 18:18:29 +0000 (18:18 +0000)]
Install mechanism for saving and restoring window configurations.

32 years agoFix off-by-one error.
Guillermo J. Rozas [Mon, 7 Sep 1992 04:28:17 +0000 (04:28 +0000)]
Fix off-by-one error.

32 years agoMake caps-lock work correctly by adding a third translation table.
Guillermo J. Rozas [Sun, 6 Sep 1992 16:24:26 +0000 (16:24 +0000)]
Make caps-lock work correctly by adding a third translation table.

32 years agoMove attn key to F10. Some computers don't generate anything for F12.
Guillermo J. Rozas [Sat, 5 Sep 1992 10:58:38 +0000 (10:58 +0000)]
Move attn key to F10.  Some computers don't generate anything for F12.

32 years agoAdd new procedures to read file access time and to set file times.
Chris Hanson [Sat, 5 Sep 1992 03:07:07 +0000 (03:07 +0000)]
Add new procedures to read file access time and to set file times.

32 years agoAdd primitives to read file access time.
Chris Hanson [Sat, 5 Sep 1992 03:03:25 +0000 (03:03 +0000)]
Add primitives to read file access time.

32 years agobugfixes to load-problem-set
Nick Papadakis [Fri, 4 Sep 1992 22:05:01 +0000 (22:05 +0000)]
bugfixes to load-problem-set

32 years agobugfixes to load-problem-set
Nick Papadakis [Fri, 4 Sep 1992 21:45:20 +0000 (21:45 +0000)]
bugfixes to load-problem-set

32 years agoAdded support for load-problem-set
Nick Papadakis [Fri, 4 Sep 1992 20:41:15 +0000 (20:41 +0000)]
Added support for load-problem-set

32 years agoDisable handling of compressed and encrypted files.
Chris Hanson [Thu, 3 Sep 1992 15:44:57 +0000 (15:44 +0000)]
Disable handling of compressed and encrypted files.

32 years agoFlush obsolete primitive.
Guillermo J. Rozas [Thu, 3 Sep 1992 07:40:47 +0000 (07:40 +0000)]
Flush obsolete primitive.

32 years agoChange DOS timer interrupt behavior:
Guillermo J. Rozas [Thu, 3 Sep 1992 07:30:46 +0000 (07:30 +0000)]
Change DOS timer interrupt behavior:

- Low level timer interrupt sets the "Global GC" interrupt but.

- The Global GC interrupt handler (a primitive) tracks user timer
requests and sets the timer interrupt bit when appropriate.  It also
invokes consume_typeahead to look for keyboard interrupt characters.

Keyboard interrupt behavior changes:

- The interactive handler is invoked from the consume_typeahead
routine, not when Scheme is trying to map the interrupt character.
In this way, its range of actions is greater.

- Add reset option and hard attention keys.

Keyboard interrupt handler:

- Implement X32 version (does not work under DPMI).

- Rewrite DPMI handler to use masm-assembled code instead of
hand-assembled code.  This makes it considerably easier to modify.

32 years agoRemove timer interrupt hack. This stuff is done directly by the
Guillermo J. Rozas [Wed, 2 Sep 1992 16:29:04 +0000 (16:29 +0000)]
Remove timer interrupt hack.  This stuff is done directly by the
microcode now.

32 years agoTimer interrupts are now only requested when there are other runnable
Guillermo J. Rozas [Wed, 2 Sep 1992 16:28:13 +0000 (16:28 +0000)]
Timer interrupts are now only requested when there are other runnable
threads or pending timer events, rather than at all tmes.

32 years agoCopy the global GC handler from the old interrupt vector to the new
Guillermo J. Rozas [Wed, 2 Sep 1992 05:32:05 +0000 (05:32 +0000)]
Copy the global GC handler from the old interrupt vector to the new
one.  The new DOS keyboard interrupt code requires this because it
pre-initializes and uses the global GC interrupt.

32 years agoAdd hook for DOS to initialize part of the fixed objects vector.
Guillermo J. Rozas [Wed, 2 Sep 1992 04:38:57 +0000 (04:38 +0000)]
Add hook for DOS to initialize part of the fixed objects vector.

32 years agoAdd procedure to restore focus to the editor's screen.
Chris Hanson [Wed, 2 Sep 1992 03:18:45 +0000 (03:18 +0000)]
Add procedure to restore focus to the editor's screen.

32 years agoLoad PRINT library using new procedure LOAD-EDWIN-LIBRARY.
Chris Hanson [Wed, 2 Sep 1992 02:56:36 +0000 (02:56 +0000)]
Load PRINT library using new procedure LOAD-EDWIN-LIBRARY.

32 years agoCreate new procedure LOAD-EDWIN-LIBRARY that can be used to load a
Chris Hanson [Wed, 2 Sep 1992 02:55:56 +0000 (02:55 +0000)]
Create new procedure LOAD-EDWIN-LIBRARY that can be used to load a
library when Edwin is not running.

32 years agoExport procedures to force focus to a particular Edwin screen.
Chris Hanson [Wed, 2 Sep 1992 02:35:42 +0000 (02:35 +0000)]
Export procedures to force focus to a particular Edwin screen.

32 years agoMake sure printing library is loaded for this code.
Chris Hanson [Wed, 2 Sep 1992 02:20:57 +0000 (02:20 +0000)]
Make sure printing library is loaded for this code.

32 years agoFix some bugs.
Chris Hanson [Wed, 2 Sep 1992 02:04:51 +0000 (02:04 +0000)]
Fix some bugs.

32 years agoChange switch-generation procedure to return a string instead of a
Chris Hanson [Wed, 2 Sep 1992 02:04:19 +0000 (02:04 +0000)]
Change switch-generation procedure to return a string instead of a
list of strings.  This is a little more useful since no further
processing will be performed on the switches after that point.

32 years agoFix think-o in last change.
Chris Hanson [Tue, 1 Sep 1992 22:41:37 +0000 (22:41 +0000)]
Fix think-o in last change.