mit-scheme.git
16 years agoAdd optional ERROR? arg to XML-ELEMENT-CHILD and FIND-XML-ATTR.
Chris Hanson [Wed, 24 Sep 2008 00:44:50 +0000 (00:44 +0000)]
Add optional ERROR? arg to XML-ELEMENT-CHILD and FIND-XML-ATTR.

16 years agoImplement XML-ELEMENT-CHILD and XML-ELEMENT-CHILDREN.
Chris Hanson [Wed, 24 Sep 2008 00:40:36 +0000 (00:40 +0000)]
Implement XML-ELEMENT-CHILD and XML-ELEMENT-CHILDREN.

16 years agoChange FIND-XML-ATTR to accept a string name as well.
Chris Hanson [Wed, 24 Sep 2008 00:26:39 +0000 (00:26 +0000)]
Change FIND-XML-ATTR to accept a string name as well.

16 years agoChange XML-ATTRS to accept strings as attribute names.
Chris Hanson [Wed, 24 Sep 2008 00:07:04 +0000 (00:07 +0000)]
Change XML-ATTRS to accept strings as attribute names.

16 years agoChange MAKE-XML-NAME so that URI arg is optional.
Chris Hanson [Wed, 24 Sep 2008 00:05:50 +0000 (00:05 +0000)]
Change MAKE-XML-NAME so that URI arg is optional.

16 years agoAdd basic support for converting between CamelCase and lisp syntax.
Chris Hanson [Tue, 23 Sep 2008 23:59:23 +0000 (23:59 +0000)]
Add basic support for converting between CamelCase and lisp syntax.

16 years agoMajor rewrite: header definitions now use combinator languages to
Chris Hanson [Mon, 22 Sep 2008 08:16:44 +0000 (08:16 +0000)]
Major rewrite: header definitions now use combinator languages to
raise the abstraction level and hopefully avoid more stupid thinkos
like the ones I recently fixed.

16 years agoProvide "TE: trailers" header. Generalize default-header mechanism.
Chris Hanson [Sun, 21 Sep 2008 23:50:31 +0000 (23:50 +0000)]
Provide "TE: trailers" header.  Generalize default-header mechanism.
Export new procedure CALL-WITH-HTTP-CLIENT-SOCKET.

16 years agoFix some more thinkos.
Chris Hanson [Sun, 21 Sep 2008 23:49:46 +0000 (23:49 +0000)]
Fix some more thinkos.

16 years agoTweak unparser for requests.
Chris Hanson [Sun, 21 Sep 2008 23:49:05 +0000 (23:49 +0000)]
Tweak unparser for requests.

16 years agoGenerate error when MAKE-HTTP-HEADER called with incorrect parsed
Chris Hanson [Sun, 21 Sep 2008 23:20:00 +0000 (23:20 +0000)]
Generate error when MAKE-HTTP-HEADER called with incorrect parsed
value.  Fix various small thinkos in header parsing.

16 years agoAdd unparser methods for HTTP datatypes.
Chris Hanson [Sun, 21 Sep 2008 22:20:18 +0000 (22:20 +0000)]
Add unparser methods for HTTP datatypes.

16 years agoUse HTTP/1.1 now that chunked transfer coding is supported.
Chris Hanson [Sun, 21 Sep 2008 07:35:48 +0000 (07:35 +0000)]
Use HTTP/1.1 now that chunked transfer coding is supported.

16 years agoImplement "chunked" transfer encoding, required by HTTP 1.1. Fix bug
Chris Hanson [Sun, 21 Sep 2008 07:35:15 +0000 (07:35 +0000)]
Implement "chunked" transfer encoding, required by HTTP 1.1.  Fix bug
in "transfer-encoding" header parser.  Add new procedure
READ-RFC2822-FOLDED-LINE that reads a line of text, dealing with the
header-field folding from RFC 2822.

16 years agoReport a message when probing a folder. Use OVERRIDE-NEXT-COMMAND!
Taylor R. Campbell [Sat, 20 Sep 2008 20:41:16 +0000 (20:41 +0000)]
Report a message when probing a folder.  Use OVERRIDE-NEXT-COMMAND!
when probing in an output processor to avoid blocking the editor
uninterruptably.

16 years agoDon't assume that X-CLOSE-ALL-DISPLAYS is available.
Taylor R. Campbell [Thu, 18 Sep 2008 05:19:16 +0000 (05:19 +0000)]
Don't assume that X-CLOSE-ALL-DISPLAYS is available.

16 years agoUse INSTALL_SCRIPT, rather than INSTALL_PROGRAM, to install the
Taylor R. Campbell [Wed, 17 Sep 2008 16:36:28 +0000 (16:36 +0000)]
Use INSTALL_SCRIPT, rather than INSTALL_PROGRAM, to install the
`liarc-cc' and `liarc-ld' scripts.

16 years agoInclude the file handle in generated names even if there is no
Taylor R. Campbell [Wed, 17 Sep 2008 06:41:43 +0000 (06:41 +0000)]
Include the file handle in generated names even if there is no
debugging output that needs to match.

16 years agoHair up handling of HTTP headers. In new model, there are codecs for
Chris Hanson [Wed, 17 Sep 2008 06:31:54 +0000 (06:31 +0000)]
Hair up handling of HTTP headers.  In new model, there are codecs for
each known header (basically almost all of RFC 2616 at this point).
These codecs translate between the string representation of a header
value and its internal representation.  MAKE-HTTP-HEADER accepts
either the string representation or the internal representation.
HTTP-HEADER-VALUE always contains the string representation, while
HTTP-HEADER-PARSED-VALUE contains the internal representation.  If the
decoder for a header fails on a particular string represenation, or if
there's no decoder for that header, HTTP-HEADER-PARSED-VALUE contains
a default object (use DEFAULT-OBJECT? to test for it).

Additionally, HTTP requests have been changed so that the METHOD is a
string rather than a symbol (that is, "GET" rather than '|GET|).

16 years agoAdd many coding aliases defined by the IANA.
Chris Hanson [Wed, 17 Sep 2008 06:24:32 +0000 (06:24 +0000)]
Add many coding aliases defined by the IANA.

16 years agoFix bugs: a bunch related to the STRUCTURE-PARSER-VALUES type, and a
Chris Hanson [Wed, 17 Sep 2008 03:38:02 +0000 (03:38 +0000)]
Fix bugs: a bunch related to the STRUCTURE-PARSER-VALUES type, and a
random type error.

16 years agoAllow ADD-BOOT-INIT! to work after the cold load, by immediately
Chris Hanson [Wed, 17 Sep 2008 03:36:54 +0000 (03:36 +0000)]
Allow ADD-BOOT-INIT! to work after the cold load, by immediately
executing the argument.

16 years agoWrite output for temporary compilation into a file with a unique name
Taylor R. Campbell [Tue, 16 Sep 2008 20:13:50 +0000 (20:13 +0000)]
Write output for temporary compilation into a file with a unique name
so that when the runtime loads the file, the microcode will not cache
the blocks under the same name for each compilation, which caused odd
effects such as

(scode-eval (compile-scode 1) #f)
;Value: 1

(scode-eval (compile-scode 2) #f)
;Value: 1

16 years agoAdd post-pass to suppress "unreferenced variable" errors in output.
Chris Hanson [Tue, 16 Sep 2008 20:03:47 +0000 (20:03 +0000)]
Add post-pass to suppress "unreferenced variable" errors in output.

16 years agoBe more aggressive about substituting primitives for references.
Chris Hanson [Tue, 16 Sep 2008 07:10:45 +0000 (07:10 +0000)]
Be more aggressive about substituting primitives for references.

16 years agoFix order-of-args thinko.
Chris Hanson [Tue, 16 Sep 2008 05:50:03 +0000 (05:50 +0000)]
Fix order-of-args thinko.

16 years agoFix WRITE-HTTP-REQUEST to handle weird URI variants.
Chris Hanson [Tue, 16 Sep 2008 05:39:00 +0000 (05:39 +0000)]
Fix WRITE-HTTP-REQUEST to handle weird URI variants.

16 years agoExport WRITE-URI-AUTHORITY.
Chris Hanson [Tue, 16 Sep 2008 05:36:53 +0000 (05:36 +0000)]
Export WRITE-URI-AUTHORITY.

16 years agoFix typo in previous change.
Chris Hanson [Tue, 16 Sep 2008 05:32:42 +0000 (05:32 +0000)]
Fix typo in previous change.

16 years agoAdd CHAR-CTL? and CHAR-WSP? predicates.
Chris Hanson [Mon, 15 Sep 2008 07:07:51 +0000 (07:07 +0000)]
Add CHAR-CTL? and CHAR-WSP? predicates.

16 years agoAdd missing binding.
Chris Hanson [Mon, 15 Sep 2008 05:18:41 +0000 (05:18 +0000)]
Add missing binding.

16 years agoSplit "http-io.scm" to create new file "http-syntax.scm". I'm
Chris Hanson [Mon, 15 Sep 2008 05:15:23 +0000 (05:15 +0000)]
Split "http-io.scm" to create new file "http-syntax.scm".  I'm
currently working on the latter, so this minimizes the difference
between the trunk and my code.

16 years agoIn OPTIONAL-PORT, require only that if an argument was supplied it is
Taylor R. Campbell [Sat, 13 Sep 2008 09:50:18 +0000 (09:50 +0000)]
In OPTIONAL-PORT, require only that if an argument was supplied it is
a port.  Defer the guarantee that the port is an I/O port until it is
important: ports with PROMPT-FOR-{COMMAND-,}EXPRESSION operations need
not support input operations in order for the prompting procedures to
work.

16 years agoFix WRITE-CHAR operation in restart interface port type so that it
Taylor R. Campbell [Sat, 13 Sep 2008 09:48:15 +0000 (09:48 +0000)]
Fix WRITE-CHAR operation in restart interface port type so that it
returns the number of characters written.

16 years agoFix package name comment.
Taylor R. Campbell [Sat, 13 Sep 2008 09:31:36 +0000 (09:31 +0000)]
Fix package name comment.

16 years agoIn SIGNAL-IO-THREAD-EVENTS, we may not always find a dentry for all
Taylor R. Campbell [Fri, 12 Sep 2008 10:26:18 +0000 (10:26 +0000)]
In SIGNAL-IO-THREAD-EVENTS, we may not always find a dentry for all
the descriptors and modes listed.  Don't assume that we shall.

This case arises particularly when there is no thread blocked in
BLOCK-ON-IO-DESCRIPTOR and someone invokes the PROCESS-WAIT primitive.
This should fix the random (%RECORD-REF #F 3) error that I have seen
when gunzipping MIT Scheme's Info reference manual and it isn't in the
operating system's disk buffer cache, which led to a losing race.

16 years agoFix bug in updating folder orders after a message is expunged.
Taylor R. Campbell [Thu, 11 Sep 2008 17:49:09 +0000 (17:49 +0000)]
Fix bug in updating folder orders after a message is expunged.

16 years agoFix mistake in previous commit: COMPILE-DATA-FROM-FILE must pay
Taylor R. Campbell [Thu, 11 Sep 2008 01:15:28 +0000 (01:15 +0000)]
Fix mistake in previous commit: COMPILE-DATA-FROM-FILE must pay
attention to the name of the output file; other parts of the system
rely on it.

16 years agoFix compilation of non-expression data files, broken by the recent
Taylor R. Campbell [Wed, 10 Sep 2008 19:32:48 +0000 (19:32 +0000)]
Fix compilation of non-expression data files, broken by the recent
change to non-file scode compilation.

16 years agoChange COMPILE-SCODE/INTERNAL/HOOK into three separate hooks:
Taylor R. Campbell [Wed, 10 Sep 2008 15:12:07 +0000 (15:12 +0000)]
Change COMPILE-SCODE/INTERNAL/HOOK into three separate hooks:
COMPILE-SCODE/FILE/HOOK, COMPILE-SCODE/NO-FILE/HOOK, and
COMPILE-SCODE/RECURSIVE/HOOK.  Use this in the C back end to fix
compilation of scode not from files.  Handle temporary files more
carefully in the C back end.  Remove vestiges of support for keeping
debugging info in the C back end, which depends on such operations as
SET-COMPILED-CODE-BLOCK/DEBUGGING-INFO! not available in the C code
generator.  The info should perhaps be returned in the compiler
output, and applied in FINISH-C-COMPILATION to the compiled code
block, but this is trickier than it sounds.  For now we'll just not
pretend to support keeping debugging info.

16 years agoAdd an optional argument to TEMPORARY-FILE-PATHNAME for a procedure
Taylor R. Campbell [Wed, 10 Sep 2008 14:55:49 +0000 (14:55 +0000)]
Add an optional argument to TEMPORARY-FILE-PATHNAME for a procedure
that transforms the generated pathname before trying to allocate a
temporary file.  Implemented only on Unix because that's all I can
test, and the only user of it at the moment will be liarc, which runs
only on Unix anyway.

16 years agoImplement FLUSH-OUTPUT and DISCRETIONARY-FLUSH-OUTPUT operations for
Taylor R. Campbell [Tue, 9 Sep 2008 18:30:21 +0000 (18:30 +0000)]
Implement FLUSH-OUTPUT and DISCRETIONARY-FLUSH-OUTPUT operations for
wrapped notification output ports.

16 years agoFix typo in WRITE-DECODED-TIME-AS-CTIME.
Chris Hanson [Tue, 9 Sep 2008 16:30:47 +0000 (16:30 +0000)]
Fix typo in WRITE-DECODED-TIME-AS-CTIME.

16 years agoRename DECODED-TIME->GMT to DECODED-TIME->UTC.
Chris Hanson [Tue, 9 Sep 2008 16:28:19 +0000 (16:28 +0000)]
Rename DECODED-TIME->GMT to DECODED-TIME->UTC.

16 years agoUse the IMAIL-SEARCH prompt history for IMAIL-SEARCH-SUMMARY.
Taylor R. Campbell [Tue, 9 Sep 2008 15:37:03 +0000 (15:37 +0000)]
Use the IMAIL-SEARCH prompt history for IMAIL-SEARCH-SUMMARY.

16 years agoFix thinko in PARSER:HOSTPORT.
Chris Hanson [Tue, 9 Sep 2008 07:23:49 +0000 (07:23 +0000)]
Fix thinko in PARSER:HOSTPORT.

16 years agoImplement CONDITION-TYPE:DECODE-BASE64.
Chris Hanson [Tue, 9 Sep 2008 06:36:20 +0000 (06:36 +0000)]
Implement CONDITION-TYPE:DECODE-BASE64.

16 years agoClarify IMAP MIME body sections, which are confusing because every
Taylor R. Campbell [Tue, 9 Sep 2008 06:13:43 +0000 (06:13 +0000)]
Clarify IMAP MIME body sections, which are confusing because every
message body is treated as a multipart body by the IMAP's indexing
scheme.  This makes IMAIL never fetch TEXT body parts, except when
the user views a message raw with `C-c C-t C-m' (eventually, which
will also view arbitrary MIME bodies raw), and rather use numbered
parts, which will cause IMAIL to refill existing disk caches, even
though they already have mostly the same data in them.  IMAIL will
also now show MIME bodies in IMAP and file folders more uniformly,
especially complex nesting of message/rfc822 and multipart bodies.

16 years agoAdjustments to help support HTTP. Deleted these procedures:
Chris Hanson [Tue, 9 Sep 2008 05:23:53 +0000 (05:23 +0000)]
Adjustments to help support HTTP.  Deleted these procedures:

    DECODED-TIME->HTTP-STRING
    FILE-TIME->HTTP-STRING
    UNIVERSAL-TIME->HTTP-STRING

and added these:

    DECODED-TIME->GMT
    WRITE-DECODED-TIME-AS-CTIME
    WRITE-DECODED-TIME-AS-HTTP
    WRITE-DECODED-TIME-AS-ISO8601
    WRITE-DECODED-TIME-AS-RFC2822
    WRITE-TIME-ZONE

16 years agoImplement STRUCTURE-PARSER-VALUES.
Chris Hanson [Tue, 9 Sep 2008 04:43:48 +0000 (04:43 +0000)]
Implement STRUCTURE-PARSER-VALUES.

16 years agoFix typo in RFC 850 date parser.
Chris Hanson [Tue, 9 Sep 2008 04:33:56 +0000 (04:33 +0000)]
Fix typo in RFC 850 date parser.

16 years agoWhen walking the body of a message/rfc822 body to insert the latter
Taylor R. Campbell [Mon, 8 Sep 2008 22:27:02 +0000 (22:27 +0000)]
When walking the body of a message/rfc822 body to insert the latter
in-line, add BODY to the selector to disambiguate the message/rfc822
body from its own body.  MIME selectors as used by the front end
continue to diverge from IMAP sections, which appear to make little
sense (although this requires further testing with more IMAP server
implementations).

16 years agoEnsure a blank line before each boundary. Don't break the line after
Taylor R. Campbell [Mon, 8 Sep 2008 20:40:59 +0000 (20:40 +0000)]
Ensure a blank line before each boundary.  Don't break the line after
every MIME body.

16 years agoAdd DISQUALIFY keyword.
Chris Hanson [Mon, 8 Sep 2008 18:19:54 +0000 (18:19 +0000)]
Add DISQUALIFY keyword.

16 years agoImplement MATCH keyword: like QUOTE but generates a value.
Chris Hanson [Mon, 8 Sep 2008 04:44:45 +0000 (04:44 +0000)]
Implement MATCH keyword: like QUOTE but generates a value.

16 years agoRefactor MIME support,
Taylor R. Campbell [Mon, 8 Sep 2008 03:55:18 +0000 (03:55 +0000)]
Refactor MIME support,

- to make sense,
- to be more robust,
- to better reflect the terminology of the RFCs,
- to simplify code that uses MIME bodies,
- to move all generic MIME code into imail-mime.scm, and
- to fix a number of small bugs.

The documentation will need to be updated, since some user-visible
commands are now named with the word `body' rather than `entity'.

Undoubtedly, refactoring added many small bugs, too, still to be
weeded out.

16 years agoRebind forward/backward-paragraph to same commands as Emacs.
Chris Hanson [Mon, 8 Sep 2008 00:09:50 +0000 (00:09 +0000)]
Rebind forward/backward-paragraph to same commands as Emacs.

16 years agoRewrite of LIST-PARSER to be more general. Now there are three
Chris Hanson [Sun, 7 Sep 2008 04:33:13 +0000 (04:33 +0000)]
Rewrite of LIST-PARSER to be more general.  Now there are three
variants: OBJECT-PARSER, LIST-PARSER, and VECTOR-PARSER.  There are
corresponding OBJECT, LIST, and VECTOR keywords for switching between
the different modes.  And the optimizer is considerably smarter.

16 years agoImplement kludges to incrementally expand and contract summary buffers
Taylor R. Campbell [Thu, 4 Sep 2008 21:55:20 +0000 (21:55 +0000)]
Implement kludges to incrementally expand and contract summary buffers
as messages are added to and expunged from the corresponding folders.

16 years agoBack out earlier changes concerning a phantom race condition with
Taylor R. Campbell [Wed, 3 Sep 2008 19:36:59 +0000 (19:36 +0000)]
Back out earlier changes concerning a phantom race condition with
the GC daemon (of course the access to the uncompressed file list
locks the GC daemon out), and instead avoid storing entries in it
before the uncompressor has returned normally.  Also, handle file
errors in FASLOAD-LOADER, since they aren't all signalled as bad-
range-argument errors by the microcode.

16 years agoRename FILTER to QUALIFY.
Chris Hanson [Wed, 3 Sep 2008 15:33:08 +0000 (15:33 +0000)]
Rename FILTER to QUALIFY.

16 years agoImplement FILTER keyword in parser language.
Chris Hanson [Wed, 3 Sep 2008 09:14:17 +0000 (09:14 +0000)]
Implement FILTER keyword in parser language.

16 years agoImplement LIST->LIST-PARSER-VALS and MAP-LIST-PARSER-VALS. Simplify
Chris Hanson [Wed, 3 Sep 2008 07:00:25 +0000 (07:00 +0000)]
Implement LIST->LIST-PARSER-VALS and MAP-LIST-PARSER-VALS.  Simplify
implementation of LIST-PARSER-VALS->LIST.

16 years agoImplement LIST-PARSER-VALS-REF and LIST-PARSER-VALS-LENGTH.
Chris Hanson [Wed, 3 Sep 2008 06:08:19 +0000 (06:08 +0000)]
Implement LIST-PARSER-VALS-REF and LIST-PARSER-VALS-LENGTH.

16 years agoImplement WRAP-LIST-PARSER. Implement VALUES parser expression.
Chris Hanson [Wed, 3 Sep 2008 05:53:47 +0000 (05:53 +0000)]
Implement WRAP-LIST-PARSER.  Implement VALUES parser expression.

16 years agoAdd optional argument to control whether to authenticate using a
Chris Hanson [Wed, 3 Sep 2008 04:10:34 +0000 (04:10 +0000)]
Add optional argument to control whether to authenticate using a
keytab (needed for cron access).

16 years agoImplement LIST-PARSER macro.
Chris Hanson [Wed, 3 Sep 2008 02:49:09 +0000 (02:49 +0000)]
Implement LIST-PARSER macro.

16 years agoEliminate unused parameter to DIFF-BUFFER.
Taylor R. Campbell [Tue, 2 Sep 2008 22:46:04 +0000 (22:46 +0000)]
Eliminate unused parameter to DIFF-BUFFER.

16 years agoWhen parsing address lists, disregard all-whitespace entries.
Taylor R. Campbell [Tue, 2 Sep 2008 22:22:07 +0000 (22:22 +0000)]
When parsing address lists, disregard all-whitespace entries.

16 years agoWhen diffing with a buffer, ignore whether it is modified or not. The
Taylor R. Campbell [Tue, 2 Sep 2008 21:31:59 +0000 (21:31 +0000)]
When diffing with a buffer, ignore whether it is modified or not.  The
user may want to see how a file has changed on disk even if the buffer
in memory has not been touched.

16 years agoUse the term `dynamic', not `ephemeral', for parts of a message that
Taylor R. Campbell [Tue, 2 Sep 2008 17:19:10 +0000 (17:19 +0000)]
Use the term `dynamic', not `ephemeral', for parts of a message that
are subject to change on the server and should not be cached on disk,
to match the RFC's terminology.

16 years agoIf, when resynchronizing the mapping between sequence numbers and
Taylor R. Campbell [Mon, 1 Sep 2008 01:24:47 +0000 (01:24 +0000)]
If, when resynchronizing the mapping between sequence numbers and
UIDs with the server, the folder's length has not changed and all
the UIDs match, don't signal an INCREASE-LENGTH event.

16 years agoTighten synchronization with the server:
Taylor R. Campbell [Mon, 1 Sep 2008 00:31:15 +0000 (00:31 +0000)]
Tighten synchronization with the server:

- Record a somewhat finer approximation of the status of our
  synchronization with the server, which lets us be more careful
  about deleting caches for expunged messages: only if our mapping
  between sequence numbers to UIDs is synchronized with the server
  is it sensible to delete caches for expunged messages.

- If our length is desynchronized with the server when we update the
  folder's length because of an EXISTS response, and if all the UIDs
  that we know about are synchronized with the server, then no
  messages have been expunged from the folder, and its length has
  only increased.  In this case, signal anINCREASE-LENGTH event,
  rather than a SET-LENGTH event.  This avoids regenerating summary
  buffers when reconnecting if no messages have been expunged by
  another client.

16 years agoNew generic procedure MESSAGE-PERMANENT-FLAGS returns the flags that
Taylor R. Campbell [Sun, 31 Aug 2008 23:02:17 +0000 (23:02 +0000)]
New generic procedure MESSAGE-PERMANENT-FLAGS returns the flags that
remain permanently and are therefore useful to retain when appending
messages to other folders.  All %APPEND-MESSAGE methods now use this
rather than MESSAGE-FLAGS.  This will keep `recent' flags from being
stored in file folders as an artefact of the IMAP.

16 years agoWhen computing from strings in summaries, avoid empty matches between
Taylor R. Campbell [Sun, 31 Aug 2008 19:32:09 +0000 (19:32 +0000)]
When computing from strings in summaries, avoid empty matches between
parentheses: `From: foo@mumble.bar ()'.

16 years agoImplement new *parser forms ENCAPSULATE* and TRANSFORM* that call
Chris Hanson [Sun, 31 Aug 2008 07:53:07 +0000 (07:53 +0000)]
Implement new *parser forms ENCAPSULATE* and TRANSFORM* that call
their procedure with the values spread out as arguments.  TRANSFORM*
additionally expects the procedure to return multiple values.

16 years agoImplement WRITE-MIME-TYPE.
Chris Hanson [Sun, 31 Aug 2008 07:36:21 +0000 (07:36 +0000)]
Implement WRITE-MIME-TYPE.

16 years agoImplement new mechanism to simplify initialization during cold load.
Chris Hanson [Sun, 31 Aug 2008 07:33:07 +0000 (07:33 +0000)]
Implement new mechanism to simplify initialization during cold load.

16 years agoImplement new mechanism to simplify initialization during cold load.
Chris Hanson [Sun, 31 Aug 2008 07:28:05 +0000 (07:28 +0000)]
Implement new mechanism to simplify initialization during cold load.

16 years agoSimplify previous change.
Taylor R. Campbell [Sat, 30 Aug 2008 19:55:59 +0000 (19:55 +0000)]
Simplify previous change.

16 years agoIn expansion of VALUES, number the local variables to distinguish
Taylor R. Campbell [Sat, 30 Aug 2008 19:54:37 +0000 (19:54 +0000)]
In expansion of VALUES, number the local variables to distinguish
them visibly.

16 years agoUse an RFC 2822 header object, rather than a list of a symbol and a
Taylor R. Campbell [Sat, 30 Aug 2008 19:48:20 +0000 (19:48 +0000)]
Use an RFC 2822 header object, rather than a list of a symbol and a
string, per the new HTTP client.

16 years agoIn IOTA, multiply the index by the increment, rather than adding
Taylor R. Campbell [Sat, 30 Aug 2008 19:33:25 +0000 (19:33 +0000)]
In IOTA, multiply the index by the increment, rather than adding
adding the increment repeatedly.

16 years agoFix fencepost error in parsing of months.
Chris Hanson [Fri, 29 Aug 2008 23:20:04 +0000 (23:20 +0000)]
Fix fencepost error in parsing of months.

16 years agoChange EXPUNGE folder modification event so that it includes the
Taylor R. Campbell [Fri, 29 Aug 2008 20:14:50 +0000 (20:14 +0000)]
Change EXPUNGE folder modification event so that it includes the
message object and its mapped index.  This is necessary to find
information about the message by identity, which will be needed by
future implementation of incremental updates to summary buffers.

16 years agoIn `imail-browser-view-container', if no resource is selected, prompt
Taylor R. Campbell [Fri, 29 Aug 2008 20:03:45 +0000 (20:03 +0000)]
In `imail-browser-view-container', if no resource is selected, prompt
the user for a URL, rather than signalling an error.  This allows the
IMAIL browser to be an entry point into IMAIL.

16 years agoIn `vc-version-diff', ask to save the file only if we are diffing
Taylor R. Campbell [Thu, 28 Aug 2008 19:39:19 +0000 (19:39 +0000)]
In `vc-version-diff', ask to save the file only if we are diffing
against the current revision.  If we are diffing two specified
revisions, there is no need to save changes in the buffer.

Fix the CVS method for LOCKING-USER in the case when FILE-ATTRIBUTES
returns #F.

16 years agoWhen stringifying data, declare data objects after they are defined,
Taylor R. Campbell [Thu, 28 Aug 2008 19:28:29 +0000 (19:28 +0000)]
When stringifying data, declare data objects after they are defined,
since the declaration is not a C forward declaration but a fragment of
C code that refers to the defined object and therefore must follow its
definition.  This fixes compilation of source files that contain only
a literal datum (including empty source files, such as one finds in
scmutils).

16 years agoWhen reading Info files into buffers, don't visit the files. This
Taylor R. Campbell [Thu, 28 Aug 2008 15:26:51 +0000 (15:26 +0000)]
When reading Info files into buffers, don't visit the files.  This
prevents Edwin from trying to write over the Info files if something
goes wrong and the editor tries to save the file.

16 years agoImplement a preliminary `imail-search-summary' command. This is like
Taylor R. Campbell [Wed, 27 Aug 2008 14:55:48 +0000 (14:55 +0000)]
Implement a preliminary `imail-search-summary' command.  This is like
`imail-search', but produces a buffer summarizing all search results
rather than selecting only the first search result.

16 years agoDon't cache message flags on disk.
Taylor R. Campbell [Wed, 27 Aug 2008 14:22:09 +0000 (14:22 +0000)]
Don't cache message flags on disk.

Do meter the progress of caching folder contents, so that IMAIL does
not appear to be hung during the long sequence of lstat(2)s and body
structure traversals if the cache has many items already in it.

Also report a message when connecting to the IMAP server.

16 years agoPut bci files in the library directory, not in the SRC/ subdirectory
Taylor R. Campbell [Wed, 27 Aug 2008 14:16:36 +0000 (14:16 +0000)]
Put bci files in the library directory, not in the SRC/ subdirectory
of the library directory.

16 years agoImplement simple parser for RFC 850 date strings (needed for HTTP).
Chris Hanson [Wed, 27 Aug 2008 05:31:16 +0000 (05:31 +0000)]
Implement simple parser for RFC 850 date strings (needed for HTTP).

16 years agohttpio.scm, runtime.pkg: Rename HTTP-URI to HTTP-REQUEST-URI for
Chris Hanson [Wed, 27 Aug 2008 04:58:09 +0000 (04:58 +0000)]
httpio.scm, runtime.pkg: Rename HTTP-URI to HTTP-REQUEST-URI for
clarification.  Change definition of HTTP-REQUEST-URI to match RFC
2616.

url.scm, runtime.pkg: Eliminate PARSE-URI-NO-AUTHORITY, create and
export PARSE-URI-AUTHORITY and PARSE-URI-PATH-ABSOLUTE for use in
"httpio.scm".

16 years agoFix bug: HTTP status codes are arbitrary three-digit numbers.
Chris Hanson [Wed, 27 Aug 2008 03:59:47 +0000 (03:59 +0000)]
Fix bug: HTTP status codes are arbitrary three-digit numbers.

16 years agoRewrite date parsers to use *PARSER and export them. Rename standard
Chris Hanson [Tue, 26 Aug 2008 08:33:35 +0000 (08:33 +0000)]
Rewrite date parsers to use *PARSER and export them.  Rename standard
->STRING procedures to ->RFC2822-STRING to emphasize their meaning.

16 years agoAdd guarantors for DECODED-TIME? and TIME-ZONE?.
Chris Hanson [Tue, 26 Aug 2008 05:57:18 +0000 (05:57 +0000)]
Add guarantors for DECODED-TIME? and TIME-ZONE?.

16 years agoMake sure that user-agent string is an HTTP token.
Chris Hanson [Tue, 26 Aug 2008 04:21:54 +0000 (04:21 +0000)]
Make sure that user-agent string is an HTTP token.

16 years agoBehave as before with no prefix given to INPUT-PORT->PARSER-BUFFER;
Taylor R. Campbell [Mon, 25 Aug 2008 21:11:12 +0000 (21:11 +0000)]
Behave as before with no prefix given to INPUT-PORT->PARSER-BUFFER;
don't spin endlessly trying to double 0 until it exceeds the minimum
length.

16 years agoExport character sets for HTTP text and token.
Chris Hanson [Mon, 25 Aug 2008 20:53:33 +0000 (20:53 +0000)]
Export character sets for HTTP text and token.