mit-scheme.git
23 years agoCompletely rewrite the variable-reference code. New design is
Chris Hanson [Tue, 31 Jul 2001 03:12:15 +0000 (03:12 +0000)]
Completely rewrite the variable-reference code.  New design is
considerably simpler, having discarded all the legacy code from the
Butterfly.  Furthermore, two hacks to speed up the interpreter,
caching of variable locations and in-line variable reference, have
been removed.  This makes the interpreter slower, but has no effect on
compiled code, and has several important benefits.  One benefit is
that we can now implement undefine.

New design allows ENVIRONMENT-LINK-NAME to link to a variable that is
already bound (previous signalled an error in this case).

Eliminate "in-line" variable references in the interpreter.  All
reference machinery is now defined in "lookup.c".

Define THE_GLOBAL_ENV and THE_NULL_ENV, and predicates to detect
them.  Eliminate GO_TO_GLOBAL and END_OF_CHAIN definitions.  Latter
was a name conflict under OS/2.  Change definition of ENVIRONMENT_P
so that it is false for THE_NULL_ENV.

Define lots of macros to provide abstract access to the data
structures used for variable references.  Change terminology, so
that instead of "trap extension" we now use "cache", and so on for
the substructures of the cache.

Add "guards" to allow .h files to be loaded more than once.

Remove variable-access procedures from "extern.h"; new procedures
are now defined in "lookup.h".

Eliminate all unused trap kinds.

23 years agoWhen generating dependencies, pass -DMIT_SCHEME to compiler.
Chris Hanson [Sun, 29 Jul 2001 02:16:05 +0000 (02:16 +0000)]
When generating dependencies, pass -DMIT_SCHEME to compiler.

23 years agoFix problem: errors during keyboard-macro execution were leaving the
Chris Hanson [Sat, 21 Jul 2001 05:49:59 +0000 (05:49 +0000)]
Fix problem: errors during keyboard-macro execution were leaving the
editor in the command reader that was spawned to execute the keyboard
macro, rather than returning to the reader that was in control when
the keyboard-macro execution was initiated.

Some of the keyboard-macro state was being mismanaged by unnecessary
calls to KEYBOARD-MACRO-DISABLE.  This was exacerbated because
KEYBOARD-MACRO-DISABLE was setting *KEYBOARD-MACRO-EXECUTING?* to #F
when it should have been left alone.

23 years agoChange UPDATE-IMAP-FOLDER-LENGTH! back to its original design.
Chris Hanson [Sat, 21 Jul 2001 03:53:36 +0000 (03:53 +0000)]
Change UPDATE-IMAP-FOLDER-LENGTH! back to its original design.
The bug I was seeing had nothing to do with this code.

23 years agoChange UPDATE-IMAP-FOLDER-LENGTH! so that it always signals a
Chris Hanson [Sat, 21 Jul 2001 01:27:49 +0000 (01:27 +0000)]
Change UPDATE-IMAP-FOLDER-LENGTH! so that it always signals a
modification event.

23 years agoUpdate for post-release changes.
Chris Hanson [Thu, 19 Jul 2001 18:27:16 +0000 (18:27 +0000)]
Update for post-release changes.

23 years agoUpdate for post-release changes.
Chris Hanson [Thu, 19 Jul 2001 18:26:17 +0000 (18:26 +0000)]
Update for post-release changes.

23 years agoFix bug: when multiple USUAL-INTEGRATIONS declarations are given, the
Chris Hanson [Thu, 19 Jul 2001 18:25:22 +0000 (18:25 +0000)]
Fix bug: when multiple USUAL-INTEGRATIONS declarations are given, the
excluded names should be the union of all of the declarations, but
instead were the intersection.  This situation arises when using
COMPILE-FILE, which forces an additional USUAL-INTEGRATIONS
declarations on each file.

23 years agoFix typo. Supply definition for (surprisingly) missing INADDR_LOOPBACK.
Chris Hanson [Thu, 19 Jul 2001 01:45:36 +0000 (01:45 +0000)]
Fix typo.  Supply definition for (surprisingly) missing INADDR_LOOPBACK.

23 years agoFix typo.
Chris Hanson [Thu, 19 Jul 2001 01:45:02 +0000 (01:45 +0000)]
Fix typo.

23 years agoA few more tweaks to get this working right.
Chris Hanson [Thu, 19 Jul 2001 01:13:53 +0000 (01:13 +0000)]
A few more tweaks to get this working right.

23 years agoFix typo.
Chris Hanson [Thu, 19 Jul 2001 00:44:37 +0000 (00:44 +0000)]
Fix typo.

23 years agoDisable crypto and gdbm support by default, since it relies on
Chris Hanson [Thu, 19 Jul 2001 00:03:01 +0000 (00:03 +0000)]
Disable crypto and gdbm support by default, since it relies on
libraries not commonly available.

23 years agoAdd code for using Microsoft's assembler.
Chris Hanson [Wed, 18 Jul 2001 05:27:33 +0000 (05:27 +0000)]
Add code for using Microsoft's assembler.

23 years agoUpdate to have hand-written dependencies as does the watcom makefile.
Chris Hanson [Wed, 18 Jul 2001 05:25:00 +0000 (05:25 +0000)]
Update to have hand-written dependencies as does the watcom makefile.

23 years agoUpdate references to 7.5.16 in the document body.
Chris Hanson [Wed, 18 Jul 2001 05:11:09 +0000 (05:11 +0000)]
Update references to 7.5.16 in the document body.

23 years agoChange version for release 7.5.17.
Chris Hanson [Wed, 18 Jul 2001 04:48:51 +0000 (04:48 +0000)]
Change version for release 7.5.17.

23 years agoRelease notes for 7.5.17.
Chris Hanson [Wed, 18 Jul 2001 04:46:15 +0000 (04:46 +0000)]
Release notes for 7.5.17.

23 years agoDocument the folder browser.
Chris Hanson [Wed, 18 Jul 2001 04:18:55 +0000 (04:18 +0000)]
Document the folder browser.

23 years agoThe key bindings for toggle- commands have been changed.
Chris Hanson [Tue, 17 Jul 2001 02:47:54 +0000 (02:47 +0000)]
The key bindings for toggle- commands have been changed.

23 years agoModify to reflect changes to server-socket code, and for
Chris Hanson [Tue, 17 Jul 2001 02:36:50 +0000 (02:36 +0000)]
Modify to reflect changes to server-socket code, and for
implementation of procedures to support file links and file types.

23 years agoFix name of WIN32-NAMED-PIPE, which had underscore instead of hyphen.
Chris Hanson [Tue, 17 Jul 2001 02:08:50 +0000 (02:08 +0000)]
Fix name of WIN32-NAMED-PIPE, which had underscore instead of hyphen.
Also add alias FILE-SOFT-LINK?.

23 years agoAdd code to write XML structures.
Chris Hanson [Mon, 16 Jul 2001 20:41:29 +0000 (20:41 +0000)]
Add code to write XML structures.

23 years agoAdd code to write XML structures.
Chris Hanson [Mon, 16 Jul 2001 20:40:28 +0000 (20:40 +0000)]
Add code to write XML structures.

23 years agoFix a number of bugs that were revealed during testing of the output
Chris Hanson [Mon, 16 Jul 2001 20:39:33 +0000 (20:39 +0000)]
Fix a number of bugs that were revealed during testing of the output
code.

23 years agoTweak format of !ELEMENT content type to be a little easier to
Chris Hanson [Mon, 16 Jul 2001 18:55:28 +0000 (18:55 +0000)]
Tweak format of !ELEMENT content type to be a little easier to
disassemble.

23 years agoDelete now-unused entity-reference structures.
Chris Hanson [Mon, 16 Jul 2001 18:54:48 +0000 (18:54 +0000)]
Delete now-unused entity-reference structures.

23 years agoMust unblock all signals at start. A recent example that has caused
Chris Hanson [Mon, 16 Jul 2001 02:44:01 +0000 (02:44 +0000)]
Must unblock all signals at start.  A recent example that has caused
problems is that GNOME can sometimes cause Scheme to be started with
SIGCHLD blocked.

23 years agoUse new parser/matcher macro environments.
Chris Hanson [Sat, 14 Jul 2001 11:44:13 +0000 (11:44 +0000)]
Use new parser/matcher macro environments.

23 years agoExport type descriptors for each of the XML data structure types.
Chris Hanson [Sat, 14 Jul 2001 11:43:50 +0000 (11:43 +0000)]
Export type descriptors for each of the XML data structure types.

23 years agoAdd environment mechanism so that parser/matcher macros from one
Chris Hanson [Sat, 14 Jul 2001 11:42:49 +0000 (11:42 +0000)]
Add environment mechanism so that parser/matcher macros from one
program don't interfere with those from another.

23 years agoDuh; DEFINE-STRUCTURE has one distinguished expression, not two.
Chris Hanson [Thu, 12 Jul 2001 21:57:06 +0000 (21:57 +0000)]
Duh; DEFINE-STRUCTURE has one distinguished expression, not two.

23 years agoAdd indentation rule for DEFINE-STRUCTURE. I think maybe the standard
Chris Hanson [Thu, 12 Jul 2001 21:05:20 +0000 (21:05 +0000)]
Add indentation rule for DEFINE-STRUCTURE.  I think maybe the standard
indentation for definitions isn't right.

23 years agoA bunch of simple edits resulting from reading over the code.
Chris Hanson [Thu, 12 Jul 2001 05:31:37 +0000 (05:31 +0000)]
A bunch of simple edits resulting from reading over the code.

23 years agoRename RUN-VALIDITY-TESTS to RUN-XML-TESTS, and change it to run all
Chris Hanson [Thu, 12 Jul 2001 05:08:16 +0000 (05:08 +0000)]
Rename RUN-VALIDITY-TESTS to RUN-XML-TESTS, and change it to run all
the tests in the xmltest directory.

23 years agoFix some bugs.
Chris Hanson [Thu, 12 Jul 2001 03:53:02 +0000 (03:53 +0000)]
Fix some bugs.

23 years agoUpdate to use new Unicode support in the parser language. This should
Chris Hanson [Thu, 12 Jul 2001 03:24:32 +0000 (03:24 +0000)]
Update to use new Unicode support in the parser language.  This should
improve the conformance.

23 years agoFlesh out unicode support. Fix bugs.
Chris Hanson [Thu, 12 Jul 2001 03:08:33 +0000 (03:08 +0000)]
Flesh out unicode support.  Fix bugs.

23 years agoAdd unicode support.
Chris Hanson [Wed, 11 Jul 2001 22:09:50 +0000 (22:09 +0000)]
Add unicode support.

23 years agoAdd unicode support.
Chris Hanson [Wed, 11 Jul 2001 21:23:02 +0000 (21:23 +0000)]
Add unicode support.

23 years agoNew procedure PARSER-BUFFER-REF.
Chris Hanson [Wed, 11 Jul 2001 00:41:55 +0000 (00:41 +0000)]
New procedure PARSER-BUFFER-REF.

23 years agoReorganize for presentation.
Chris Hanson [Tue, 10 Jul 2001 19:34:32 +0000 (19:34 +0000)]
Reorganize for presentation.

23 years agoAnother round of changes. Now passes all of the valid tests, and most
Chris Hanson [Tue, 10 Jul 2001 17:50:17 +0000 (17:50 +0000)]
Another round of changes.  Now passes all of the valid tests, and most
of the not-well-formed tests.

23 years agoExtensive reworking to get entity references done more or less right.
Chris Hanson [Tue, 10 Jul 2001 05:30:31 +0000 (05:30 +0000)]
Extensive reworking to get entity references done more or less right.
There remains a problem with recursive entity expansion -- there is a
mismatch between the tests and my reading of the specification.

23 years agoAdd COMPLETE keyword.
Chris Hanson [Tue, 10 Jul 2001 05:04:44 +0000 (05:04 +0000)]
Add COMPLETE keyword.

23 years agoRename ELEMENT-TRANSFORM to MAP.
Chris Hanson [Mon, 9 Jul 2001 04:08:19 +0000 (04:08 +0000)]
Rename ELEMENT-TRANSFORM to MAP.

23 years agoChange DISCONNECT-FOLDER to close the connection immediately, rather
Chris Hanson [Sun, 8 Jul 2001 05:25:29 +0000 (05:25 +0000)]
Change DISCONNECT-FOLDER to close the connection immediately, rather
than deferring.  This is what the end-user expects to see happen.

23 years agoInitial revision.
Chris Hanson [Fri, 6 Jul 2001 21:17:04 +0000 (21:17 +0000)]
Initial revision.

23 years agoWhen file is written for the first time, mark the buffer as having
Chris Hanson [Fri, 6 Jul 2001 21:14:38 +0000 (21:14 +0000)]
When file is written for the first time, mark the buffer as having
been backed up.

23 years agoPackage the code. Move parser macros to their own file so that they
Chris Hanson [Fri, 6 Jul 2001 20:50:49 +0000 (20:50 +0000)]
Package the code.  Move parser macros to their own file so that they
can be loaded during compilation.

Restructure the top-level parser to allow passing the DTD down to the
element parser for entity expansion.

Implement attribute-value normalization.

Add restrictions required for rejection of non-wf documents: no "--"
in comments; no duplicate attribute names.

Change names of DTD structures to reflect their keywords.

Fix various minor bugs, discovered either by the test suite or by the
compiler.

23 years agoMove data structures to separate file.
Chris Hanson [Thu, 5 Jul 2001 20:47:53 +0000 (20:47 +0000)]
Move data structures to separate file.

23 years agoInitial revision.
Chris Hanson [Thu, 5 Jul 2001 20:38:42 +0000 (20:38 +0000)]
Initial revision.

23 years agoFix typo.
Chris Hanson [Thu, 5 Jul 2001 18:51:23 +0000 (18:51 +0000)]
Fix typo.

23 years agoDon't lift Scheme expressions up to the top of the procedure; evaluate
Chris Hanson [Mon, 2 Jul 2001 19:21:57 +0000 (19:21 +0000)]
Don't lift Scheme expressions up to the top of the procedure; evaluate
them in place.  Eliminate DEFAULT in favor of new VALUES.

23 years agoFix bug: pretty printer was getting SIGSEGV when printing very deeply
Chris Hanson [Mon, 2 Jul 2001 18:47:51 +0000 (18:47 +0000)]
Fix bug: pretty printer was getting SIGSEGV when printing very deeply
nested named let.

23 years agoCompletely reorganize the language preprocessors, so that they are no
Chris Hanson [Mon, 2 Jul 2001 18:21:01 +0000 (18:21 +0000)]
Completely reorganize the language preprocessors, so that they are no
longer monolithic procedures.  Also lay the code out differently so
that it is broken into two major segments: the preprocessor and the
code generator.

23 years agoFix bug: unfinished change to BACKTRACK-TO.
Chris Hanson [Mon, 2 Jul 2001 18:18:38 +0000 (18:18 +0000)]
Fix bug: unfinished change to BACKTRACK-TO.

23 years agoReplace WITH-CURRENT-POINTER and NO-POINTERS with new procedure
Chris Hanson [Mon, 2 Jul 2001 12:14:35 +0000 (12:14 +0000)]
Replace WITH-CURRENT-POINTER and NO-POINTERS with new procedure
CALL-WITH-UNKNOWN-POINTER.  Change all references from "pointers" to
"pointer", since it's better to think of this as a single pointer.
(The delayed backtracking feature is an implementation detail, so it
shouldn't be reflected in the name.)  Rename NEW-BACKTRACK-POINTER to
BACKTRACK-TO.  Rename CURRENT-POINTER to POINTER-REFERENCE.

23 years agoRework handling of the pointers. There were some subtle bugs in the
Chris Hanson [Mon, 2 Jul 2001 05:08:22 +0000 (05:08 +0000)]
Rework handling of the pointers.  There were some subtle bugs in the
implementation that could have caused incorrect code generation.  This
code looks good but is still a bit confusing; I may not have it right
yet.  This code isn't yet tested.

23 years agoImplement new primitive X-SET-DEFAULT-FONT.
Chris Hanson [Mon, 2 Jul 2001 01:55:25 +0000 (01:55 +0000)]
Implement new primitive X-SET-DEFAULT-FONT.

23 years agoAdd new command M-x set-default-font.
Chris Hanson [Mon, 2 Jul 2001 01:45:36 +0000 (01:45 +0000)]
Add new command M-x set-default-font.

23 years agoRestructure crypto, gdbm, and curses tests to depend on existence of
Chris Hanson [Mon, 2 Jul 2001 01:20:32 +0000 (01:20 +0000)]
Restructure crypto, gdbm, and curses tests to depend on existence of
appropriate header files as well as the library files.  The presence
of the library file is no guarantee that we have the headers.

23 years agoAdd ability to specify macros that are symbols rather than forms.
Chris Hanson [Sat, 30 Jun 2001 06:05:35 +0000 (06:05 +0000)]
Add ability to specify macros that are symbols rather than forms.
These expand to fixed parser sequences.

23 years agoAdd WITH-POINTER to both parser and matcher languages. Also implement
Chris Hanson [Sat, 30 Jun 2001 03:23:59 +0000 (03:23 +0000)]
Add WITH-POINTER to both parser and matcher languages.  Also implement
macros for both languages.

23 years agoMake sure that line number is properly updated.
Chris Hanson [Sat, 30 Jun 2001 03:21:23 +0000 (03:21 +0000)]
Make sure that line number is properly updated.

23 years ago* Track the line number of the current buffer position, so that error
Chris Hanson [Fri, 29 Jun 2001 05:23:24 +0000 (05:23 +0000)]
* Track the line number of the current buffer position, so that error
  messages can refer to the line.  Change representation of buffer
  pointers to include the line number.  Add operation to generate a
  string that shows the line number and character number of either a
  given pointer or the current position.

* Eliminate DECREMENT-PARSER-BUFFER-POINTER, which was unused and
  makes implementing the line number more difficult.

* Add -NO-ADVANCE versions of procedures that match single characters.

* Change terminology: the index of the current character in the buffer
  is called a "position".  The word "pointer" is reserved to refer to
  pointer objects that are handed to the users, which themselves refer
  to positions.

23 years ago* Track the line number of the current buffer position, so that error
Chris Hanson [Fri, 29 Jun 2001 05:19:24 +0000 (05:19 +0000)]
* Track the line number of the current buffer position, so that error
  messages can refer to the line.  Change representation of buffer
  pointers to include the line number.  Add operation to generate a
  string that shows the line number and character number of either a
  given pointer or the current position.

* Eliminate DECREMENT-PARSER-BUFFER-POINTER, which was unused and
  makes implementing the line number more difficult.

* Add -NO-ADVANCE versions of procedures that match single characters.

* Change terminology: the index of the current character in the buffer
  is called a "position".  The word "pointer" is reserved to refer to
  pointer objects that are handed to the users, which themselves refer
  to positions.

23 years ago* Track the line number of the current buffer position, so that error
Chris Hanson [Fri, 29 Jun 2001 05:18:19 +0000 (05:18 +0000)]
* Track the line number of the current buffer position, so that error
  messages can refer to the line.  Change representation of buffer
  pointers to include the line number.  Add operation to generate a
  string that shows the line number and character number of either a
  given pointer or the current position.

* Eliminate DECREMENT-PARSER-BUFFER-POINTER, which was unused and
  makes implementing the line number more difficult.

* Add -NO-ADVANCE versions of procedures that match single characters.

* Change terminology: the index of the current character in the buffer
  is called a "position".  The word "pointer" is reserved to refer to
  pointer objects that are handed to the users, which themselves refer
  to positions.

23 years ago* Track the line number of the current buffer position, so that error
Chris Hanson [Fri, 29 Jun 2001 05:17:21 +0000 (05:17 +0000)]
* Track the line number of the current buffer position, so that error
  messages can refer to the line.  Change representation of buffer
  pointers to include the line number.  Add operation to generate a
  string that shows the line number and character number of either a
  given pointer or the current position.

* Eliminate DECREMENT-PARSER-BUFFER-POINTER, which was unused and
  makes implementing the line number more difficult.

* Add -NO-ADVANCE versions of procedures that match single characters.

* Change terminology: the index of the current character in the buffer
  is called a "position".  The word "pointer" is reserved to refer to
  pointer objects that are handed to the users, which themselves refer
  to positions.

23 years agoEliminate compiler warnings.
Chris Hanson [Wed, 27 Jun 2001 02:00:08 +0000 (02:00 +0000)]
Eliminate compiler warnings.

23 years agoFix code-generation bug in MATCH element.
Chris Hanson [Wed, 27 Jun 2001 01:53:53 +0000 (01:53 +0000)]
Fix code-generation bug in MATCH element.

23 years agoFix a couple of code-generation bugs.
Chris Hanson [Tue, 26 Jun 2001 23:46:41 +0000 (23:46 +0000)]
Fix a couple of code-generation bugs.

23 years agoAdd some more optimizers.
Chris Hanson [Tue, 26 Jun 2001 23:46:20 +0000 (23:46 +0000)]
Add some more optimizers.

23 years agoFix two compiler warnings.
Chris Hanson [Tue, 26 Jun 2001 21:29:41 +0000 (21:29 +0000)]
Fix two compiler warnings.

23 years agoFix two compiler warnings.
Chris Hanson [Tue, 26 Jun 2001 21:28:54 +0000 (21:28 +0000)]
Fix two compiler warnings.

23 years agoLots of hair to allow explicit character-set specifications to be
Chris Hanson [Tue, 26 Jun 2001 21:16:46 +0000 (21:16 +0000)]
Lots of hair to allow explicit character-set specifications to be
compiled at load time rather than at run time.

23 years agoLots of hair to allow explicit character-set specifications to be
Chris Hanson [Tue, 26 Jun 2001 21:02:09 +0000 (21:02 +0000)]
Lots of hair to allow explicit character-set specifications to be
compiled at load time rather than at run time.

23 years agoChange name of language-shifting expression to SEXP.
Chris Hanson [Tue, 26 Jun 2001 19:01:31 +0000 (19:01 +0000)]
Change name of language-shifting expression to SEXP.

23 years agoMust attempt to parse number before attempting identifier. Otherwise,
Chris Hanson [Tue, 26 Jun 2001 18:53:20 +0000 (18:53 +0000)]
Must attempt to parse number before attempting identifier.  Otherwise,
the number's sign might be parsed as an identifier.

23 years agoFix problem with optimizer: needed to add notion of default rules that
Chris Hanson [Tue, 26 Jun 2001 18:52:35 +0000 (18:52 +0000)]
Fix problem with optimizer: needed to add notion of default rules that
are used when a more specific pattern isn't available.  Also,
generalize OPTIMIZE-GROUP-EXPRESSION so that it can be used by
VECTOR-APPEND.

23 years agoAdd missing bindings.
Chris Hanson [Tue, 26 Jun 2001 18:51:33 +0000 (18:51 +0000)]
Add missing bindings.

23 years agoInitial revision.
Chris Hanson [Tue, 26 Jun 2001 18:51:22 +0000 (18:51 +0000)]
Initial revision.

23 years agoInitial revision.
Chris Hanson [Tue, 26 Jun 2001 18:03:26 +0000 (18:03 +0000)]
Initial revision.

23 years agoDefine SCHEME-INDENT-METHOD to simplify definition of indentation.
Chris Hanson [Mon, 18 Jun 2001 04:18:25 +0000 (04:18 +0000)]
Define SCHEME-INDENT-METHOD to simplify definition of indentation.

23 years agoDon't attempt to set arbitrary flags unless the server says it's OK.
Chris Hanson [Sat, 16 Jun 2001 04:12:02 +0000 (04:12 +0000)]
Don't attempt to set arbitrary flags unless the server says it's OK.

23 years agoFix bug: regular-expression compiler is breaking the character-set
Chris Hanson [Fri, 15 Jun 2001 21:20:53 +0000 (21:20 +0000)]
Fix bug: regular-expression compiler is breaking the character-set
abstraction.

23 years agoChange representation of character sets so that they do not satisfy
Chris Hanson [Fri, 15 Jun 2001 20:38:51 +0000 (20:38 +0000)]
Change representation of character sets so that they do not satisfy
STRING?.  Unfortunately, this requires a complete recompilation of the
system, since the primitives SUBSTRING-FIND-NEXT-CHAR-IN-SET and
SUBSTRING-FIND-PREVIOUS-CHAR-IN-SET were being hard-coded by the
syntaxer.

23 years agoDon't integrate the primitives SUBSTRING-FIND-NEXT-CHAR-IN-SET and
Chris Hanson [Fri, 15 Jun 2001 20:36:18 +0000 (20:36 +0000)]
Don't integrate the primitives SUBSTRING-FIND-NEXT-CHAR-IN-SET and
SUBSTRING-FIND-PREVIOUS-CHAR-IN-SET.

23 years agoStart the folder-probe thread only when the folder is ONLINE, and stop
Chris Hanson [Tue, 12 Jun 2001 01:05:44 +0000 (01:05 +0000)]
Start the folder-probe thread only when the folder is ONLINE, and stop
the thread when the folder is OFFLINE.  Make sure that the buffer is
disassociated from it's folder when the buffer is killed.

23 years agoStart the folder-probe thread only when the folder is ONLINE, and stop
Chris Hanson [Tue, 12 Jun 2001 00:58:15 +0000 (00:58 +0000)]
Start the folder-probe thread only when the folder is ONLINE, and stop
the thread when the folder is OFFLINE.  Make sure that the buffer is
disassociated from it's folder when the buffer is killed.

23 years agoChange OPEN-RESOURCE and CLOSE-RESOURCE so that all of their behavior
Chris Hanson [Tue, 12 Jun 2001 00:47:39 +0000 (00:47 +0000)]
Change OPEN-RESOURCE and CLOSE-RESOURCE so that all of their behavior
is pushed down into the type-dependent modules.  (Previously, they had
some type-independent code.)  This, plus one explicit call, now means
that the STATUS modification event is now consistently signalled
whenever the connection status changes.

23 years agoForgot to export HANDLE-SUBPROCESS-STATUS-CHANGE to the socket code.
Chris Hanson [Sat, 9 Jun 2001 00:34:58 +0000 (00:34 +0000)]
Forgot to export HANDLE-SUBPROCESS-STATUS-CHANGE to the socket code.

23 years agoINPUT-BUFFER/READ-SUBSTRING must use generic arithmetic for indexes
Chris Hanson [Sat, 9 Jun 2001 00:30:38 +0000 (00:30 +0000)]
INPUT-BUFFER/READ-SUBSTRING must use generic arithmetic for indexes
into the substring, because it might be an xstring that is larger than
the fixnum range.

23 years agoREAD-SUBSTRING! can return less than the requested number of bytes.
Chris Hanson [Sat, 9 Jun 2001 00:29:48 +0000 (00:29 +0000)]
READ-SUBSTRING! can return less than the requested number of bytes.
Deal with it.

23 years agoVC's state is wiped out when the workfile's buffer has it's mode
Chris Hanson [Thu, 7 Jun 2001 17:48:19 +0000 (17:48 +0000)]
VC's state is wiped out when the workfile's buffer has it's mode
changed.  Use new event EVENT:SET-BUFFER-MAJOR-MODE to reset it at
that time.

23 years agoLOAD-FIND-FILE-INITIALIZATION must be re-run when the buffer's
Chris Hanson [Thu, 7 Jun 2001 17:45:01 +0000 (17:45 +0000)]
LOAD-FIND-FILE-INITIALIZATION must be re-run when the buffer's
pathname or major mode is changed.

23 years agoVC's state is wiped out when the workfile's buffer has it's mode
Chris Hanson [Thu, 7 Jun 2001 17:44:21 +0000 (17:44 +0000)]
VC's state is wiped out when the workfile's buffer has it's mode
changed.  Use new event EVENT:SET-BUFFER-MAJOR-MODE to reset it at
that time.

23 years agoAdd new event EVENT:SET-BUFFER-MAJOR-MODE.
Chris Hanson [Thu, 7 Jun 2001 17:43:21 +0000 (17:43 +0000)]
Add new event EVENT:SET-BUFFER-MAJOR-MODE.

23 years agoFix bug: TCP-SERVER-CONNECTION-ACCEPT was blocking on the server
Chris Hanson [Tue, 5 Jun 2001 02:46:59 +0000 (02:46 +0000)]
Fix bug: TCP-SERVER-CONNECTION-ACCEPT was blocking on the server
socket, rather than registering it for management by select.

23 years agoWhen reverting buffer, preserve selected resource, marked resources,
Chris Hanson [Mon, 4 Jun 2001 19:26:33 +0000 (19:26 +0000)]
When reverting buffer, preserve selected resource, marked resources,
and expanded containers.  When initializing buffer, select first
resource line.