1 1999-09-17 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
3 * debugger.scm (read-and-dispatch-commands): Handle other throws
6 * boot-9.scm (before-signal-stack): New fluid.
7 (top-repl): Set before-signal-stack in the signal handler.
9 * debugger.scm (eval-handler): Handle unhandled exceptions.
11 1999-09-16 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
13 * debugger.scm ("p"): New alias for "evaluate";
14 Mark module with :no-backtrace.
15 ("position"): New command.
16 (source-position, display-position): New procedures.
17 (display-source): Display position of expression, if available.
18 (catch-user-errors): Return #f on error. (Commands are expected
19 to return a valid state.)
20 (read-and-dispatch-command): Bugfix: Return old state on error.
22 1999-09-16 Jim Blandy <jimb@savonarola.red-bean.com>
24 * regex.scm (regexp-substitute/global): Handle the end of the
25 match list and an empty match list identically. (Thanks to Greg
28 1999-09-15 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
30 * debugger.scm ("evaluate"): Replaced `write-line' with calls to
31 `write' and `newline' since write-line doesn't write but displays.
33 1999-09-12 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
35 * debugger.scm ("evaluate"): Newline after no env announcement.
37 * debug.scm, emacs.scm: Updated copyright notices.
39 * boot-9.scm (make-autoload-interface): Bugfix.
40 (top-repl): Autoload debugger.
42 * debugger.scm ("backtrace"): Don't pass length param to
43 display-backtrace if it wasn't explicitly given by the user.
44 (write-frame-long/application): Also print corresponding source
46 ("evaluate"): Evaluate in local environment frame, if existent;
49 1999-09-11 Jim Blandy <jimb@savonarola.red-bean.com>
51 * format.scm (format:format-work): Use #\tab and #\page instead of
52 slib:form-feed and slib:tab. (Thanks to Ceri Storey.)
54 * format.scm (format:abort): Call error, not slib:error.
56 1999-09-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
58 * boot-9.scm (using-readline?): New procedure: Returns #t if
59 readline is used by the repl run by this thread.
60 (handle-system-error): Print "Backtrace:" before backtrace since
61 this is no longer done by display-backtrace.
63 * debug.scm (frame-number->index): Optionally take stack as
66 * debugger.scm: Use the frame number abstraction which allows for
67 both forward and backward views of the stack
68 (write-frame-index-short, write-frame-index-long):
69 Use selector `frame-number';
70 (select-frame-absolute): Use frame-number->index.
71 ("backtrace"): Use builtin backtrace printing.
73 Use readline conditionally.
75 1999-09-11 Jim Blandy <jimb@savonarola.red-bean.com>
77 * regex.scm (fold-matches, list-matches): New functions.
78 (regexp-substitute/global): Rewritten again in terms of
79 list-matches, to get null match behavior correct.
81 * regex.scm (regexp-substitute/global): Rewrite so that 'post at
82 the end of the item list actually causes a tail call. (Thanks to
85 1999-09-11 Marius Vollmer <mvo@zagadka.ping.de>
87 * readline.scm: Moved to ../guile-readline.
89 * boot-9.scm (top-repl): Removed code for activating readline.
91 * Makefile.am: Removed mention of readline.scm.
93 * Makefile.in: Regenerated.
95 1999-09-11 Jim Blandy <jimb@savonarola.red-bean.com>
97 Delete the test which compares the configuration date of libguile
98 with the configuration date of ice-9. This test yields too many
99 false positives to be helpful. For example, if you build Guile
100 for several architectures but have them all share a "share"
101 directory (which is supposed to work), then all but one
102 architecture's Guile will complain that the configuration dates
103 don't match. Which is true, but indicates nothing wrong.
104 * boot-9.scm: Delete code which compares ice-9-config-stamp with
105 libguile-config-stamp.
106 * version.scm.in: Delete.
107 * Makefile.am (ice9_generated): Delete.
108 (subpkgdata_DATA): Remove ice9_generated.
109 (EXTRA_DIST): Remove version.scm.in.
110 * Makefile.in: Regenerate.
112 1999-09-11 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
114 * debugger.scm: New file: Initial version of the Guile debugger
115 written by Chris Hanson. (The debugger isn't finished, but is
116 included in Guile anyway since it is already quite useful.)
118 * boot-9.scm (top-repl): Use (ice-9 debug) (ice-9 debugger) (ice-9
119 session) (ice-9 threads) (ice-9 regex) from guile-user only if
120 top-repl is called. This makes startup time for scripts 30% of
121 what it was before... Removed redundant code for loading of
124 * Makefile.am (ice9_sources): Added debugger.scm.
126 1999-08-29 Keisuke Nishida <kxn30@po.cwru.edu>
128 * boot-9.scm (try-module-autoload): Use %search-load-path.
130 1999-08-24 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
132 * boot-9.scm: Removed old style hooks.
133 (inherit-print-state): Rwwritten to use port-with-print-state.
135 1999-08-20 James Blandy <jimb@mule.m17n.org>
137 Remove support for the #/ path list syntax entirely.
138 * boot-9.scm (read-path-list-notation,
139 read-path-list-notation-warning): Deleted.
140 Don't register read-path-list-notation-warning as a reader for
141 objects starting with '#/'.
143 1999-08-05 Mikael Djurfeldt <mdj@thalamus.nada.kth.se>
145 GOOPS needs the observer protocol specified for the new module
146 system. Here's a simple version for the old module system:
147 * boot-9.scm (module-observers, module-weak-observers,
148 module-observer-id, set-module-observers!,
149 set-module-observer-id!): New accessors.
150 (module-type): Added slots `observers', `weak-observers' and
152 (module-observe, module-observe-weak, module-unobserve,
153 module-modified): New procedures.
154 (module-make-local-var!, module-add!, module-remove!,
155 module-clear!, module-define!, module-use!): Call module-modified.
157 1999-07-29 Marius Vollmer <mvo@zagadka.ping.de>
159 * boot-9.scm (error-catching-loop): Correct non-RnRS usage of internal
162 1999-07-19 Jim Blandy <jimb@savonarola.red-bean.com>
164 * streams.scm: New module, contributed by Michael Livshin.
165 * Makefile.am (ice9_sources): List it.
166 * Makefile.in: Regenerated.
168 * boot-9.scm (read-delimited!): Put the terminator in the correct
171 1999-06-29 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
173 * readline.scm: Bugfix: Avoid getting the continued-lines prompt
174 at multiple calls to read.
175 (promtp2): Variable for continued-lines prompt.
176 (make-readline-port): Use prompt2.
177 (set-readline-prompt!): New optional arg which sets
178 continued-lines prompt.
180 * boot-9.scm (top-repl): Set/clear readline prompts before/after
183 1999-06-18 Jim Blandy <jimb@savonarola.red-bean.com>
185 * ls.scm (ls, lls): Handle no arguments as meaning to look in
186 `(current-module)'. (Patch from Thien-Thi Nguyen.)
188 1999-06-14 Jim Blandy <jimb@savonarola.red-bean.com>
190 * string-fun.scm (split-before-predicate, split-after-predicate,
191 split-discarding-predicate): Make these public. (Thanks to
194 1999-06-13 Gary Houston <ghouston@easynet.co.uk>
196 * more changes to expect.scm, to avoid the one-character lookhead
197 that was introduced to fix the $ problem:
199 * expect.scm (expect): call the match proc an extra time at end
200 of file and set the eof? argument appropriately. call
201 expect-eof-proc only if the last call didn't match.
202 * expect.scm (expect-strings): change port to eof? in match proc.
203 * expect.scm (expect-regexec): take an eof indicator as an argument
206 1999-06-09 Jim Blandy <jimb@savonarola.red-bean.com>
208 * Makefile.am (ice9_sources): Add popen.scm to list.
209 * Makefile.in: Regenerated.
211 Fixes for expect from Gary Houston <ghouston@easynet.co.uk>:
213 * expect.scm (expect-regexec): define 'eof-next?'. I don't
214 know why it was missing. also don't peek for end of lines
215 unless expect-strings-exec-flags contains regexp/noteol.
216 (expect-strings-exec-flags): initialise to regexp/noteol.
218 Gary Houston's open-buffer port patches:
220 1999-04-01 Gary Houston <ghouston@easynet.co.uk>
222 * popen.scm: applied fixes from Greg Harvey. use a guardian
223 and a gc-thunk so that cleanup is done if a pipe is garbage
224 collected or closed with close-port. use a weak hash-table instead of
227 1999-03-20 Gary Houston <ghouston@easynet.co.uk>
229 * expect.scm (expect): call the match proc with the port instead.
230 (expect-strings): use peek-char to get the next char. this has
231 the advantage of getting the handling of $ "correct", but the
232 disadvantage of needing to get (and maybe block for) an extra character
233 from the port when it may not be needed. hence:
234 (expect-strings-exec-flags): new variable/parameter, supplies
235 flags for regexp-exec. if this includes regexp/noteol, then
236 automatic regexp/noteol handling (requiring an extra peeked char)
237 is enabled. default is regexp/noteol.
238 (expect-strings-compile-flags): new variable/parameter, supplies
239 flags for make-regexp. default is regexp/newline.
241 1999-03-15 Gary Houston <ghouston@easynet.co.uk>
243 * expect.scm (expect): call the match proc with an extra char,
244 peeked from the stream.
245 (expect-strings): build a match proc which takes the extra char.
246 (expect-regexec): take an extra arg "eof-next?" and use it
247 to decide whether the regexp/noteol flag should be added.
249 1999-02-26 Gary Houston <ghouston@easynet.co.uk>
251 * boot-9.scm (top-repl): don't flush all ports at exit.
252 (error-catching-loop): likewise.
254 1998-12-23 Gary Houston <ghouston@easynet.co.uk>
256 * boot-9.scm (scm-style-repl): -read: don't call
257 consume-trailing-whitespace if val is eof object. Allows
258 exiting repl with single control-D.
260 1998-12-06 Gary Houston <ghouston@easynet.co.uk>
262 * boot-9.scm (error-catching-loop): don't force output within
263 error catching loop after quit received.
264 (top-repl): flush all ports when the repl terminates.
266 * boot-9.scm (error-catching-loop): flush all ports before
267 primitive exit if non-interactive.
268 force-output on current-error-port if interactive.
270 * boot-9.scm (reopen-file): deleted.
271 * popen.scm (open-output-pipe, open-input-pipe): moved from
273 * popen.scm: new file.
275 1999-06-04 Dirk Herrmann <D.Herrmann@tu-bs.de>
277 * boot-9.scm (iota): replaced by a tail recursive version.
278 (reverse-iota): removed.
280 1999-06-03 Mikael Djurfeldt <mdj@mdj-pc.nada.kth.se>
282 * optargs.scm (lambda*): Bugfix: Replaced ARGLIST -->
283 non-optional-args. (Thanks to David Lutterkort.)
285 1999-05-09 Jim Blandy <jimb@savonarola.red-bean.com>
287 * string-case.scm: Removed; functions moved to libguile/strop.c
288 (which could be dynamically linked in the future anyway).
289 * Makefile.am (ice9_sources): Don't list string-case.scm.
290 * Makefile.in: Regenerated.
291 * format.scm: Don't bother importing (ice-9 string-case).
293 1999-05-02 Jim Blandy <jimb@savonarola.red-bean.com>
295 * boot-9.scm (provided?): New function.
297 * Makefile.am: Add string-case.scm and format.scm to ice9_sources.
298 * Makefile.in: Regenerated.
300 * string-case.scm: New file, brought in from SLIB, and adapted to
301 Guile's module system.
303 * format.scm: New file, brought in from SLIB, with the following
305 (format:format): If the first argument is the format string, stick
306 a #f on the front of it, so it is now a valid CL format argument
307 list. This is easier than changing everyplace else (like the
308 error formatter) that expects it to be in CL form. The other
309 clause which explicitly tests for this case is now dead code.
310 (format:format-work): Allow `@' and `:' in either order, as per
312 (format:num->cardinal): Don't assume that an elseless if returns
313 '() when the condition is false.
315 1999-04-17 Jim Blandy <jimb@savonarola.red-bean.com>
317 * Makefile.in: Regenerated.
319 1999-04-08 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
321 * boot-9.scm: Provide 'values.
323 1999-03-21 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
325 * boot-9.scm (process-define-module, use-syntax): Bugfix:
326 :use-syntax should add syntax to using module, not current module.
327 (internal-use-syntax): Removed.
329 1999-03-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
331 * session.scm (apropos-internal): Modified to comply with new
332 argument order for hash-fold.
334 1999-03-19 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
336 * boot-9.scm (try-load-module): New procedure. Broken out from
338 (resolve-module): Bugfix: Make it possible for a module at a
339 deeper level (x y z) to depend on a module on a higher (x y).
341 This also has the desired side-effect that multiple attempts to
342 load a module (e.g. with `use-modules') work until source is
343 actually found for the module (e.g. because the correct catalog
344 has been added to the load path).
348 1999-03-18 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
350 * session.scm (system-module): New procedure. Used to switch a
351 module between system and user state.
353 1999-03-16 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
355 * session.scm (apropos-internal): Rewritten using hash-fold.
357 * emacs.scm, session.scm, slib.scm): Added :no-backtrace in module
360 1999-03-14 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
362 * boot-9.scm (make-record-type): Use `set-struct-vtable-name!' to
363 associate a name to the record type descriptor so that the object
364 system can create a wrapper class for it.
366 1999-03-12 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
368 Improvement of backtraces: Introduces a new stack narrowing
369 specifier, #t, for the inner cut. If the inner cut is specified
370 by #t, `make-stack' will throw away inner stack frames (most
371 recent calls on call chain) up to but excluding the first user
372 stack frame encountered.
374 This specifier is now used in `save-stack' so that the call
375 `(save-stack)' will get the new behaviour. [It is recommended that
376 any error reporting functions written by the user have this call
377 on the outermost expression level (i.e. as a member of the lambda
380 Modules are partitioned into "user" and "system" modules. [I know
381 that some names used here are silly, but I don't have more time to
382 spend on a better solution, especially considering that the module
383 system will be replaced. But if people have better ideas, then
386 System modules are created by adding :no-backtrace among the
387 define-module switches:
392 Modules which doesn't have the :no-backtrace specifier are user
395 A stack frame is classified as a user frame if it has source code
396 associated with it and if this source code can be proven to come
397 from a user module. If it can be proven to come from a system
398 module it is a system frame.
400 Frames which can't be classified, e.g. application frames, are cut
401 away if they occur between system frames, but are left on the
402 stack if they occur between the last system frame and the first
403 user frame encountered. (Note that the first user frame
404 encountered is the last user code being evaluated!)
406 In some cases the system part of the call chain is introduced by
407 frames which should but can't be proven to be system frames. The
408 following workaround has been implemented: The cutting proceeds
409 over application frames where the operator is marked by the
410 `system-procedure' property. (This has been used to cut away
411 generic function dispatch code in the object system.)
413 * boot-9.scm (set-system-module!): New procedure: Set system/user
415 Mark `the-root-module' and `the-scm-module' as system modules.
416 (process-define-module): Add new keyword :no-backtrace.
418 * boot-9.scm (environment-module): Bugfixed.
419 (set-module-eval-closure!): Add a pointer back from the eval
420 closure to the module.
422 * emacs.scm (emacs-load): Reset port filename after transfer.
424 1999-03-03 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
426 * slib.scm (make-random-state): Added for compatibility.
428 1999-02-16 Maciej Stachowiak <mstachow@alum.mit.edu>
430 * optargs.scm (lambda*): Handle empty argument lists properly.
432 1999-02-15 Jim Blandy <jimb@savonarola.red-bean.com>
434 Fix from Russ McManus:
435 * getopt-long.scm (parse-option-spec): Store 'optional as the
436 value-required? field for options that take optional values.
437 (process-short-option): Grab a value for the option when it takes
438 either an optional or required value.
440 1999-02-12 Jim Blandy <jimb@savonarola.red-bean.com>
442 * getopt-long.scm: Remove debugging calls to `pk'.
444 * getopt-long.scm: Return list of ordinary arguments as the value
445 of the '() key, not `rest'.
447 A new argument-processing package from Russ McManus.
448 * getopt-long.scm: New file.
449 * Makefile.am (ice9_sources): Added getopt-long.scm.
450 * Makefile.in: Regenerated.
452 1999-02-09 Maciej Stachowiak <mstachow@alum.mit.edu>
454 * optargs.scm: New file.
455 * Makefile.am (ice9_sources): Add optargs.scm here. Makefile.in
456 not regenerated because I don't have the right version of Automake.
458 1999-02-06 Jim Blandy <jimb@zwingli.cygnus.com>
460 * and-let*.scm: New file, from Michael Livshin.
461 * Makefile.am (ice9_sources): Add and-let* here.
462 * Makefile.in: Regenerated.
464 1999-01-11 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
466 * slib.scm (install-require-module): Fixed the kludge which loads
467 the slib catalog: Doesn't anylonger assume that the feature tested
470 1998-12-14 Jim Blandy <jimb@zwingli.cygnus.com>
472 * Makefile.in: Regenerated.
474 1998-12-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
476 * boot-9.scm (process-define-module): Reverted the change of
477 1998-11-23 which caused loading of object code if :use-module was
478 applied to the module itself.
480 1998-12-11 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
482 * Makefile.am: Removed setf.scm.
484 * setf.scm: Removed. 1. It was buggy. 2. It was unschemey.
485 (These shortcomings were my fault.)
487 1998-12-10 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
489 * boot-9.scm (environment-module): New procedure.
491 1998-12-07 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
493 * Makefile.am: Added setf.scm.
495 1998-12-05 Christian Lynbech <chl@tbit.dk>
497 * setf.scm: New file. Adds the new forms `setf!' and `setter'
498 which implements generalized references a la Common LISP.
500 1998-12-02 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
502 * boot-9.scm (process-define-module): Added new specifier
503 :autoload MODULENAME BINDINGS to the define-module form.
504 The autoload specifier tells the module system to load the module
505 MODULENAME at the first occasion that any variable with its name
506 among BINDINGS is referenced.
507 (make-autoload-interface): New procedure: Constructs a stand-in
508 for the public interface for the module to be autoloaded.
510 1998-12-01 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
512 * boot-9.scm (*suppress-old-style-hook-warning*): Set this to #t
513 if you don't want the old style hook warnings.
515 1998-12-01 Christian Lynbech <chl@tbit.dk>
517 * boot-9.scm (try-using-libtool-name): Fix check on dlname to make
518 sure that it isn't empty, as it is when we are only buidling
521 1998-11-27 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
523 * session.scm (arity): New procedure.
525 1998-11-26 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
527 * boot-9.scm: Use run-hook instead of run-hooks everywhere.
529 1998-11-26 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
531 * boot-9.scm (run-hooks, add-hook!, remove-hook!): Added temporary
532 code for backward compatibility until people have had time to
533 adapt to the new hooks.
535 1998-11-23 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
537 * boot-9.scm (beautify-user-module!): Beautify also if public
538 interface is set to the module itself. In this way we can use
539 beautify-user-module! to beautify a module prepared for object
541 (process-define-module): Special case: Try to load object code as
542 well if a module does :use-module on itself.
544 * boot-9.scm: Bugfix: Since boot-9.scm is now loaded from
545 invoke_main_func, we can no longer be sure that all modules have
546 been registered when boot-9.scm is loaded.
547 (register-modules): New function: Register and tag modules
548 registered by scm_register_module_xxx since last call to this
549 function. Modules are tagged with the dynamic object passed as
550 argument. (Already linked modules should be tagged with #f.)
551 (init-dynamic-module, link-dynamic-module): Call register-modules
552 first to register linked modules.
554 * boot-9.scm (init-dynamic-module): Remove module from
555 registered-modules as soon as possible in case we are recursively
556 invoked; Set public interface before doing the dynamic-call.
558 * boot-9.scm (map-in-order): Removed (replaced by scm_serial_map).
559 (abort-hook, before-error-hook, after-error-hook,
560 before-backtrace-hook, after-backtrace-hook, before-read-hook,
561 after-read-hook, exit-hook): Make hooks with `make-hook'.
563 * boot-9.scm: Make hooks first class citizens and make them easier
565 (make-hook, add-hook!, remove-hook!, run-hooks): Moved to
568 * boot-9.scm: Added warnings about bindings used in
569 libguile/modules.c: the-module, set-current-module,
570 make-modules-in, beautify-user-module!, module-eval-closure.
572 1998-11-21 Mikael Djurfeldt <mdj@kenneth>
574 * boot-9.scm (the-environment): New special form: Returns an
575 object representing the current local evaluation environment.
576 This object can be used in `local-eval' and `defined?'.
578 1998-11-13 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
580 * boot-9.scm (collect): New syntax. Similar to begin but returns
581 a list of the results of all forms in the sequence instead of the
582 result of the last form.
584 1998-11-10 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
586 * boot-9.scm (values, call-with-values): Moved here from
589 * syncase.scm (values, call-with-values): Moved to boot-9.scm.
591 * boot-9.scm (readline-options, readline-enable, readline.disable,
592 readline-set!: New options interface.
594 * readline.scm (readline-port): Use readline-options-interface.
596 1998-11-05 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
598 * boot-9.scm: Set the repl start module in `top-repl' instead of
599 at the end of boot-9.scm.
601 1998-11-01 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
603 * emacs.scm (format): Bugfix: Handle multiple arguments
604 correctly. (Thanks to Thien-Thi Nguyen.)
606 1998-11-01 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
608 * boot-9.scm (exit-hook): New hook: Is run at the very end of an
610 (top-repl): Run exit-hook on exit.
612 * readline.scm (readline-port): Maybe read history; Maybe write
613 history at exit (add to exit-hook).
615 Fri Oct 30 15:15:37 1998 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
617 * readline.scm (make-readline-port): Bugfixed last change...
619 1998-10-28 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
621 * readline.scm (make-readline-port): Don't set prompt to "... " if
624 1998-10-19 Jim Blandy <jimb@zwingli.cygnus.com>
626 * boot-9.scm, debug.scm, expect.scm, hcons.scm, lineio.scm,
627 r4rs.scm, slib.scm, threads.scm: Update copyright years.
629 * getopt-gnu-style.scm, slib.scm: Add copyright notice.
631 Talked to Stallman. Actually, the syntax-case copyright is no
633 * Makefile.am (ice9_sources): Revert last change.
634 * syncase.scm, psyntax.pp, psyntax.ss: Added again.
635 * Makefile.in: Regeneretade.
637 * boot-9.scm: Don't assume that this file is loaded just before
638 entering a read-eval-print loop. Turn code to load (ice-9 emacs)
640 (load-emacs-interface): New function.
641 (top-repl): Call it, if use-emacs-interface is defined and true.
642 At this point, we *do* know we're about to enter a REPL.
644 We can't include Kent Dybvig's syntax-case macro expander in the
645 core Guile distribution, because we don't have copyright
646 assignments for this code. We can certainly distribute them as a
647 separate package, but Guile should be FSF code.
648 * syncase.scm, psyntax.pp, psyntax.ss: Removed.
649 * Makefile.am (ice9_sources): Removed syncase.scm, psyntax.pp, and
651 * Makefile.in: Regenerated.
653 * Makefile.am (ice9_sources): Add getopt-gnu-style.scm.
654 * Makefile.in: Regenerated.
656 1998-10-18 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
658 * boot-9.scm: Added extended read syntax for byte vectors #y(...)
659 and short vectors #h(...).
661 1998-10-14 Jim Blandy <jimb@zwingli.cygnus.com>
663 * calling.scm (excursion-function-syntax): Use a sequence of
664 set!'s, not a single multi-variable set!; we removed support for
665 that syntax a long time ago. (Thanks to Shuji Narazaki.)
667 1998-10-12 Jim Blandy <jimb@zwingli.cygnus.com>
669 * r4rs.scm (OPEN_READ, OPEN_WRITE, OPEN_BOTH): Don't bother
670 testing software-type here. That's the least of our Windows
671 porting issues, and it's done wrong anyway.
673 1998-10-09 Jim Blandy <jimb@zwingli.cygnus.com>
675 * boot-9.scm (read-path-list-notation-warning): New function:
676 print a warning the first time we see `#/' notation.
678 * q.scm (sync-q!, q?, q-remove!, q-push!, enq!): Lots of bugs, and
679 (eq? #f '()) assumptions. Make functions that aren't documented
680 to return anything else return the queue itself. (Bug report from
681 Michael Livshin --- thanks!)
683 1998-08-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
685 * debug.scm (trace-entry, trace-exit): Removed re-enabling of
688 * boot-9.scm (make-options): Bugfix: Changed pair? --> list? in
689 order to allow the empty list as arg.
690 (error-catching-loop): Use `with-traps' to create a dynamic
691 context with traps enabled.
693 1998-08-19 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
695 * boot-9.scm: Removed (ice-9 regex) from use-list of (guile)
697 (try-using-libtool-name): Removed dependency on (ice-9 regex).
699 1998-08-15 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
701 * boot-9.scm: Make the root module use (ice-9 regex) if
702 available. The dynamic linking facilities in boot-9.scm are
703 currently dependent upon regular expressions. My change of
704 1998-07-14 removed (ice-9 regex) from the use-list of the root
705 module and thereby destroyed dynamic linking.
707 1998-07-29 Jim Blandy <jimb@zwingli.cygnus.com>
709 * Makefile.in: Regenerated using the last public version of
710 automake, not the hacked Cygnus version.
712 1998-07-28 Jim Blandy <jimb@zwingli.cygnus.com>
714 * Makefile.in: Regenerated, after removing Totoro kludge.
716 1998-07-28 Jim Blandy <jimb@totoro.red-bean.com>
718 * getopt-gnu-style.scm: New file. (Thanks to Russ McManus.)
720 1998-07-26 Jim Blandy <jimb@zwingli.cygnus.com>
722 * Makefile.in Rebuilt, for config changes in parent dir.
724 1998-07-21 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
726 * readline.scm (make-readline-port): Set prompt string to "... "
727 after first read line. (Thanks to Richard Polton.)
729 1998-07-19 Jim Blandy <jimb@zwingli.cygnus.com>
731 * lineio.scm (make-line-buffering-input-port): Don't use
732 ungetc-char-ready?, since we don't provide that function any
733 more. The unread-string function doesn't interact properly with
734 any of the standard I/O functions anyway. (Thanks to Andrew
737 * hcons.scm (hashq-cons-assoc): Don't assume the empty list is
738 false. Return false when we cannot find a matching entry in the
739 list. (Thanks to Andrew Archibald.)
741 1998-07-16 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
743 * boot-9.scm (export, export-syntax): New special forms: Export
744 bindings from a module. `(export name1 name2 ...)' can be used at
745 the top of a module (after `define-module') to specify which names
746 should be exported. It can be used as an alternative to
747 `define-public'. `export-syntax' works equivalently to `export'
748 but is intended for export of syntactic keywords.
749 (Thanks to Thien-Thi Nguyen.)
751 1998-07-15 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
753 * boot-9.scm: Renamed module `(guile-repl)' --> `(guile-user)'.
755 1998-07-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
757 * boot-9.scm: Let the user start in module `(guile-repl)' instead
758 of module `(guile)'. Also make sure that `(guile-repl)' uses
759 suitable modules. This change improves Guile stability
760 substantially since bindings will only be copied from the root
761 module: If the user redefines builtins in `(guile-repl)' it won't
762 affect the internal operation of Guile itself.
764 1998-06-19 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
766 * boot-9.scm (load-module): When loading files from within files
767 themselves being loaded: Use the directory path of the file being
768 loaded as root for relative filenames. (After suggestion by
771 1998-06-15 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
773 * emacs.scm (emacs-load): New feature: Eval in specified module.
775 1998-06-14 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
777 * readline.scm: Typo in regex module name.
779 1998-06-13 Mikael Djurfeldt <mdj@barbara.nada.kth.se>
781 * readline.scm (apropos-completion-function): regexp-quote text to
784 1998-06-11 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
786 * debug.scm, emacs.scm: Bugfix: Treat `the-last-stack' as a fluid.
788 1998-06-09 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
790 * boot-9.scm: Check that (current-input-port) is a tty before
791 enabling readline. (Thanks to Michael N. Livshin.)
793 1998-06-07 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
795 * boot-9.scm (use-syntax): Turned into a macro inorder to be
796 similar in use to `use-modules'.
797 Example: (use-syntax (ice-9 syncase)) will 1. load the module
798 (ice-9 syncase), and, 2. install the procedure `syncase' as eval
800 (internal-use-syntax): New procedure.
801 (process-define-module): Use `internal-use-syntax'.
803 1998-05-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
805 * Makefile.am (ice9_sources): Add emacs.scm.
807 1998-05-13 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
809 * readline.scm: Use the new readline facilities: Add the
810 possibility to control input and output ports; Add apropos
813 * boot-9.scm: Antirevert Jim's readline code which he reverted
814 19971027 and adapt it to the current readline interface.
816 * boot-9.scm (top-repl): Only enable readline if not using the
817 Emacs interface; Only use repl prompt when using the readline port
818 from repl-read. (We don't want to see it when calling `read'.)
820 * boot-9.scm (remove-hook!): Parenthesis bug.
822 1998-05-11 Mikael Djurfeldt <mdj@kenneth>
824 * boot-9.scm: Load readline module if readline is present.
826 * readline.scm (apropos-completion-function): New procedure:
827 Symbolic completion. (Thanks to Andrew Archibald!)
829 1998-04-22 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
831 * boot-9.scm (process-define-module): Added keyword use-syntax.
833 1998-04-19 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
835 * nonblocking.scm: Removed. libguile is now inherently
836 nonblocking through the use of scm_internal_select.
838 * emacs.scm: Removed use of nonblocking.scm.
840 * gwish.scm, gtcl.scm: Removed. tcltk.scm has made these
843 1998-04-15 Mikael Djurfeldt <mdj@nada.kth.se>
845 * runq.scm (runq-control): Corrected spelling of enqueue!.
846 (Thanks to Karl M. Hegbloom.)
848 1998-03-30 Mikael Djurfeldt <mdj@nada.kth.se>
850 * boot-9.scm: Added new run-time option interface eval-options.
852 1998-03-28 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
854 * boot-9.scm (remove-hook!): New macro. (Thanks to Maciej
857 1998-01-30 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
859 * threads.scm: Added simple error and signal handler.
860 (make-thread, begin-handler): Use this handler. The most
861 important effect of this is that signals get unmasked.
862 Previously, when a signal was thrown signals remained masked
863 (signals get masked when a signal is taken) which influenced other
866 1998-01-01 Tim Pierce <twp@skepsis.com>
868 A better fix to the SLIB identity problem -- thanks to Marius Vollmer.
869 * slib.scm (identity): Unmake public.
870 (slib:eval): Evaluate inside `slib-module'.
872 1997-12-24 Tim Pierce <twp@skepsis.com>
874 * boot-9.scm: Doc fix.
876 * slib.scm (identity): Made public.
877 (home-vicinity): New function (from SLIB/Template.scm).
879 1997-12-13 Tim Pierce <twp@skepsis.com>
881 * boot-9.scm (read-line): Rewritten to call %read-line for
882 improved speed. Minor user-visible changes: the new functions are
883 hardwired to treat the LFD character as signifying end-of-line, so
884 changing `scm-line-incrementors' will no longer affect the
885 behavior of read-line. On platforms which do not represent
886 end-of-line with a LFD character, read-line should behave more
887 like native line-processing facilities, but there is still a ways
890 Sat Nov 29 01:24:46 1997 Mikael Djurfeldt <mdj@kenneth>
892 * boot-9.scm (error-catching-loop, save-stack): `the-last-stack'
895 1997-11-28 Tim Pierce <twp@skepsis.com>
897 * boot-9.scm (find-and-link-dynamic-module): If a module directory
898 contains a .la file (a libtool support file), attempt to extract
899 the shared library name from that file. If the .la file does not
900 exist, try to link against a .so file. Libtool-generated compiled
901 modules should load more cleanly in Guile now.
902 (try-using-libtool-name, try-using-sharlib-name): New functions.
904 Sun Nov 9 06:10:59 1997 Gary Houston <ghouston@actrix.gen.nz>
906 * boot-9.scm (set-batch-mode?!, batch-mode?): initialize more
907 usefully so they will work from a script.
909 1997-10-31 Marius Vollmer <mvo@zagadka.ping.de>
911 * boot-9.scm (inherit-print-state): Moved definition to the
912 neighborhood of the record code.
914 Mon Oct 27 02:05:49 1997 Jim Blandy <jimb@totoro.red-bean.com>
916 * boot-9.scm: Revert changes to this file from Oct 23. It turns
917 out to interact badly with the Emacs support and the Tcl/Tk
918 support. It's not a high enough priority at the moment to be
919 worth fixing. I'm leaving the other readline support in, though.
921 Sat Oct 25 14:23:22 1997 Jim Blandy <jimb@totoro.red-bean.com>
923 * Makefile.am: Include readline.scm in the list of files to be
924 installed, so Guile can find it for interactive use.
925 * Makefile.in: Regenerated.
927 Thu Oct 23 01:00:33 1997 Jim Blandy <jimb@totoro.red-bean.com>
929 Add support for readline function.
930 * readline.scm: New module.
931 * boot-9.scm (repl-reader): New function.
932 (scm-style-repl): Call repl-reader, instead of doing the reading
933 ourselves. Remove repl-report-reset; it was never used for
935 (top-repl): If we've got the readline primitives, then redefine
936 repl-reader to use them.
937 If we've got the readline primitives, import the readline module.
939 * ls.scm (ls, lls): Don't assume (eq? #f '()).
941 Wed Oct 22 18:26:57 1997 Jim Blandy <jimb@totoro.red-bean.com>
943 * calling.scm, common-list.scm, ls.scm, q.scm, runq.scm,
944 string-fun.scm: Added copyright notices; reformatted.
946 Thu Oct 9 05:44:00 1997 Gary Houston <ghouston@actrix.gen.nz>
948 * expect.scm: (expect-regexec): new procedure, use it in
949 expect-strings to fix the => syntax under the new regex system.
950 (top): include regex module in define-module statement.
952 Wed Oct 8 03:16:01 1997 Gary Houston <ghouston@actrix.gen.nz>
954 * (error-catching-loop): new local variable "interactive". if
955 #f, abort terminates the process.
956 (set-batch-mode?!, batch-mode?): new closures, defined in
957 error-catching-loop. the names are from scsh.
959 1997-10-06 Marius Vollmer <mvo@zagadka.ping.de>
961 * boot-9.scm (inherit-print-state): If NEW-PORT contains a
962 print-state, throw it away.
964 Fri Oct 3 12:00:00 Mikael Djurfeldt <mdj@nada.kth.se>
966 * boot-9.scm (struct-layout): Use `vtable-index-layout' instead of
969 Thu Oct 2 12:00:00 Mikael Djurfeldt <mdj@nada.kth.se>
971 * boot-9.scm (struct-printer, make-struct-printer,
972 set-struct-printer-in-vtable!, *struct-printer*): Removed.
973 (record-type-vtable, make-record-type): Don't use make-struct-printer.
974 (record-type-vtable): User fields "prpr" (printer is no longer a
976 (record-type-name, record-type-fields): Decreased slot index by
977 one; Use `vtable-offset-user'.
979 Thu Oct 2 12:00:00 Marius Vollmer <mvo@zagadka.ping.de>
981 * boot-9.scm (inherit-print-state): New experimental function.
983 Tue Sep 30 13:12:48 1997 Jim Blandy <jimb@totoro.red-bean.com>
985 Suggestion and script from Maciej Stachowiak:
986 * boot-9.scm: Split off modules into separate, autoloadable files.
987 This reduces startup time from 10.5s to 5.5s (user cpu).
988 * calling.scm, common-list.scm, ls.scm, q.scm, runq.scm,
989 string-fun.scm: New files, containing stuff that used to be in
991 * Makefile.am (ice9_sources): List new files here, for
992 distribution and installation.
993 * Makefile.in: Regenerated.
995 Mon Sep 29 23:53:55 1997 Jim Blandy <jimb@totoro.red-bean.com>
997 * Makefile.in: Regenerated with automake 1.2c.
999 Mon Sep 29 03:21:24 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1001 * slib.scm (slib:load): slib:load first tries to load the file
1002 named NAME, then NAME.scm. On error, report the error occuring at
1003 the first attempt (NAME) rather than the second (NAME.scm).
1005 * boot-9.scm: Bugfix: Hard-solder the print-option procedure into
1006 the make-options macro so that we needn't refer to a global
1009 Sun Sep 28 21:40:24 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1011 * debug.scm: Moved options interface procedures to boot-9.scm.
1013 * boot-9.scm: Define options interface procedures here instead.
1015 Sat Sep 27 20:19:20 1997 Jim Blandy <jimb@totoro.red-bean.com>
1017 * boot-9.scm (separate-fields-discarding-char,
1018 separate-fields-after-char, separate-fields-before-char): Call
1019 continuation function, RET, as advertised: with each separated
1020 field a separate argument.
1022 * Makefile.in: Regenerated with automake 1.2a.
1024 Sat Sep 20 14:23:53 1997 Mikael Djurfeldt <mdj@kenneth>
1026 * slib.scm (slib:load): Export.
1028 * boot-9.scm (in-vicinity): Bugfix: Don't add "/" to an empty
1032 Thu Sep 18 01:24:31 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1034 * r4rs.scm (apply): Set name property to 'apply.
1036 Tue Sep 16 22:09:50 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1038 * boot-9.scm (keyword->symbol, display-usage-report): Changed
1039 length --> string-length. (Thanks to Aleksandar Bakic.)
1040 (separate-fields-discarding-char, separate-fields-after-char,
1041 separate-fields-before-char): Bugfix from Maciej Stachowiak
1042 <mstachow@mit.edu>. Thanks!
1043 (try-module-linked): Try to find module among those already
1045 (try-module-dynamic-link): Removed the first test which
1046 corresponds to a call to `try-module-linked'.
1047 (resolve-module): Resolve modules in this order: 1. Already
1048 registered modules (for example those which have been statically
1049 linked), 2. Try to autoload an .scm-file, 3. Try to dynamically
1052 Mon Sep 15 23:39:54 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1054 * boot-9.scm (iota): Renamed list-reverse! --> reverse!
1056 Thu Sep 11 02:31:38 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1058 * session.scm (name): New procedure: Gives name of object.
1059 (source): New procedure: Gives source of object.
1061 Wed Sep 10 20:12:45 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1063 * boot-9.scm (primitive-macro?): New procedure.
1065 * slib.scm: Added hack which transfers syntactic information from
1066 the builtin variable `define' to the slib version if module (ice-9
1067 syncase) has been loaded. This is necessary to get correct
1068 expansion inside the slib module.
1070 * psyntax.ss (build-let, build-named-let): New output
1072 (build-lexical-var): Seed gensym with symbolic name.
1073 (self-evaluating?): Add keywords among self-evaluating types.
1074 (let): New core form.
1075 (if): Removed from core language.
1076 (or, and, let, cond): Removed syntactic definitions.
1077 (sc-expand3): New procedure: Expander which takes optional mode
1078 and eval-syntactic-expanders-when arguments.
1080 * syncase.scm (psyncomp): New procedure: Recompiles psyntax.pp.
1081 Should be used inside the (ice-9 syncase) module with (use-syntax
1082 syncase) and with the current directory containing the psyntax.ss
1084 Added hack to transfer syntactic information from the builtin
1085 variable `define' to the slib version if module (ice-9 slib) has
1088 Fri Sep 5 05:47:36 1997 Mikael Djurfeldt <mdj@faun.nada.kth.se>
1090 * syncase.scm (sc-interface, sc-expand): Removed hook setup.
1091 (syncase): Publish syntax transformer to be used with
1093 (sc-macro): Use this as the value when publishing macros.
1095 * boot-9.scm (module-type): Added `transformer'.
1096 (make-module): Modified initialization.
1097 (module-transformer, set-module-transformer!): Selector and
1098 mutator for module-associated transformer.
1099 (set-current-module): Use module-transformer to set
1100 `scm:eval-transformer'.
1101 (module-use!): Previous change reverted.
1102 (use-syntax): New function: Install a transformer in current
1104 (sc-interface, sc-expand): Removed! :)
1106 Fri Sep 5 03:09:09 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1108 * emacs.scm (emacs-load): Added new parameter `module'.
1110 * syncase.scm (putprop, getprop): Modified to use the object
1111 properties of the variable object corresponding to the symbol;
1112 This way we can ride on the mechanisms of the module system.
1113 Changed `builtin-variable' calls to `define-public' calls.
1114 Setup the hooks sc-expand and sc-interface.
1116 * boot-9.scm (sc-interface, sc-expand): New builtin variables.
1117 (set-current-module): Switch to and from sc-expand as
1118 scm:eval-transformer when going into and out of modules using
1120 (module-use!): Set scm:eval-transformer to sc-expand when adding
1121 the syncase interface.
1123 Thu Sep 4 14:57:04 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1125 * syncase.scm (putprop): Temporary fix which publishes new syntax
1126 globally (the old behaviour was complex and connected to the inner
1127 workings of the current module system).
1129 Wed Sep 3 21:29:13 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1131 * psyntax.ss: Updated.
1132 psyntax.pp: Bugfix: Previous version had some leading "t":s cut
1135 Tue Sep 2 00:26:42 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1137 * boot-9.scm (gensym): Removed (replaced by primitive).
1138 (obarray-gensym): Rewritten to use `gensym'.
1139 (gentemp): Rewritten to use `gensym'.
1141 Mon Sep 1 20:08:32 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1143 * gtcl.scm (make-tcl-binder): Rewritten to choose bindings
1144 according to the following priorities:
1145 1. tcl bindings which are present in override-scheme-list
1146 2. bindings from the-scm-module
1148 This way the gtcl module can occur first in the use-list without
1149 disabling the scheme interpreter.
1150 (new-interpreter): New function.
1152 * gwish.scm: Moved initialization code for the-interpreter to
1153 gtcl.scm; Moved name space cleaning code to gtcl.scm and rewrote
1154 it; Call `new-interpreter'; Don't :use-module (guile).
1156 Thu Aug 28 23:48:53 1997 Jim Blandy <jimb@totoro.red-bean.com>
1158 * Makefile.in: Regenerated.
1160 Wed Aug 27 11:35:09 1997 Jim Blandy <jimb@totoro.red-bean.com>
1162 * Makefile.in: Regenerated, so it uses "tar", not "gtar".
1164 Mon Aug 25 22:00:44 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1166 * emacs.scm (object->string, format, error-args->string): New
1168 (emacs-frame-eval): Reworked.
1170 Mon Aug 25 16:15:55 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1172 * session.scm (apropos-internal): Musn't initialize symbol
1173 accumulator with a constant pair. That led to mutation of the
1176 Sun Aug 24 01:03:10 1997 Mikael Djurfeldt <mdj@kenneth>
1178 * session.scm (vector-for-each): Removed.
1179 (apropos): vector-for-each --> array-for-each.
1180 (apropos-internal): New function. Return list of accessible
1181 symbols matching regexp.
1183 * debug.scm (frame-number->index): New function. Convert frame
1184 number (as displayed in the backtrace) to frame index (to be used
1187 * emacs.scm (emacs-load): New arguments: interactivep: when
1188 non-false, send back results to Emacs; colnum: Column number;
1189 Use modules (ice-9 debug) and (ice-9 session);
1190 (no-stack, no-source): New simple-actions;
1191 (result-to-emacs): New procedure. Sends data to Emacs via the
1193 (get-frame-source, emacs-select-frame, emacs-frame-eval,
1194 emacs-symdoc): New procedures.
1196 Wed Aug 20 13:21:11 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1198 * emacs.scm (emacs-load): Adjust stack narrowing.
1199 (whitespace-chars): Include #\np.
1201 * syncase.scm: Also turn off debugging evaluator and recording of
1202 procedure names during loading of psyntax.pp.
1204 * psyntax.pp: Removed leading blanks => 800K -> 100K.
1206 Tue Aug 19 02:39:41 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1208 * syncase.scm: Don't tamper with debug mode setting when enabling
1209 macros. Instead cut the stack with start-stack.
1210 Load psyntax.pp with recording of positions turned off.
1212 * psyntax.pp, psyntax.ss (quasiquote): Changed fx= --> =.
1214 * syncase.scm: New file: Guile-adaption for syntax-case macros.
1215 * psyntax.pp, psyntax.ss: Syntax-case macros, portable version 2 by
1216 R. Kent Dybvig, Oscar Waddell, Bob Hieb and Carl Bruggeman
1218 Mon Aug 18 21:58:25 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1220 * session.scm: New file: Session support.
1221 (apropos): New procedure: List bindings given regexp.
1223 Sat Aug 16 18:44:24 1997 Gary Houston <ghouston@actrix.gen.nz>
1225 * boot-9.scm: define tms accessors: clock, utime, stime, cutime,
1228 Thu Aug 14 19:55:37 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1230 * emacs.scm (emacs-load): Something has changed in the reader so
1231 that we now should set the port line count to the specified value
1232 (linum) instead of (- linum 1).
1234 * slib.scm (slib:load): Use load-from-path instead of
1235 primitive-load-path so that backtraces get narrowed properly at
1238 * boot-9.scm (top-repl): Save stack already in signal handler in
1239 order to narrow it correctly.
1240 (save-stack): Adjust narrowing tag for the top of load-stacks.
1242 Tue Jul 29 01:18:08 1997 Gary Houston <ghouston@actrix.gen.nz>
1244 * boot-9.scm (move->fdes, dup->port): use dup->fdes, not primitive-dup.
1245 (dup->fdes): deleted, now done in C.
1247 Sat Jul 26 08:00:42 1997 Gary Houston <ghouston@actrix.gen.nz>
1249 * boot-9.scm (setenv): new procedure, scsh compatible.
1251 Sat Jul 26 21:30:10 1997 Marius Vollmer <mvo@zagadka.ping.de>
1253 * boot-9.scm (with-fluids): New macro to go with the
1254 builtin `with-fluids*'.
1256 Thu Jul 24 04:28:11 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1258 * slib.scm (install-require-module): In newer versions of slib
1259 *catalog* is #f until the first access. Therefore we call
1260 require:provided? for a random feature if *catalog* is #f.
1262 Wed Jul 23 20:13:04 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1264 * boot-9.scm: If using emacs interface, enable backtraces
1267 Mon Jul 21 06:45:45 1997 Gary Houston <ghouston@actrix.gen.nz>
1269 * boot-9.scm (dup->port, dup->inport, dup->outport, dup->fdes,
1270 dup, fdes->inport, fdes->outport, port->fdes): new procedures.
1271 (duplicate-port): was a C primitive, now it's here.
1272 (move->fdes): allow the first argument to be a file descriptor.
1273 Return the modified port or file descriptor (was unspecified.)
1275 Fri Jul 11 00:13:43 1997 Jim Blandy <jimb@floss.red-bean.com>
1277 Changes to compile under gnu-win32, from Marcus Daniels:
1278 * boot-9.scm (load-user-init): If HOME is unset, provide
1281 * boot-9.scm (define-public): Changed to accomodate Hobbit.
1283 Tue Jun 24 00:31:47 1997 Jim Blandy <jimb@floss.red-bean.com>
1285 * boot-9.scm, debug.scm, hcons.scm, lineio.scm, mapping.scm,
1286 poe.scm, slib.scm, tags.scm, threads.scm: Use normal list
1287 notation, instead of #/ notation.
1289 * expect.scm (expect-strings): Pass regexp/newline flag to
1292 Mon Jun 23 16:13:38 1997 Jim Blandy <jimb@floss.red-bean.com>
1294 Fix inconsistencies in parsing of #/ style lists.
1295 * boot-9.scm (read-path-list-notation): New function.
1296 (parse-path-symbol): Deleted. Replaced by above.
1297 Plug in read-path-list-notation as the parser for #/ lists,
1298 instead of the anonymous lambda form calling parse-path-symbol.
1299 (Thanks to Maurizio Vitale.)
1301 * boot-9.scm (make-list): Remove the definition of this function
1302 from the (ice-9 common-list) module; make the `init' argument
1303 optional in the scm module's definition, to match the deleted
1304 definition. Harmony reigneth? (Thanks to Bernard URBAN.)
1306 Sun Jun 22 18:33:17 1997 Jim Blandy <jimb@floss.red-bean.com>
1308 Try to detect when people are using one version of libguile and a
1309 different version of ice-9. People have been skewing things and
1310 sending in bug reports.
1311 * version.scm.in: New file, which the configure script munges to
1312 produce version.scm, which contains the ice-9 config stamp.
1313 * boot-9.scm: Compare the libguile and ice-9 config stamps;
1314 display a warning if the two are different.
1315 * Makefile.am: Install version.scm, but don't distribute it.
1316 Distribute version.scm.in, but don't install it.
1317 * Makefile.in: Regenerated.
1319 Thu Jun 19 21:01:16 1997 Jim Blandy <jimb@floss.red-bean.com>
1321 * slib.scm (slib:warn): Alias for WARN function.
1323 Fri Jun 13 00:32:04 1997 Jim Blandy <jimb@floss.red-bean.com>
1325 * boot-9.scm (struct-printer): Fix off-by-one error in range
1326 check. Correctly check for struct printer tag.
1328 * expect.scm: Turn this into a module, (ice-9 expect).
1329 (expect-port, expect-timeout, expect-timeout-proc,
1330 expect-eof-proc, expect-char-proc, expect, expect-strings,
1331 expect-select): Make these public definitions.
1332 (expect-strings): Use make-regexp and regexp-exec, instead of
1333 regcomp and regexec. We've omitted the REG_NEWLINE flag; hope
1336 * boot-9.scm (with-regexp-parts): Comment this out. It has no
1337 users in the core, and relies on mildly hairy details of the old
1340 * test.scm: Re-enable tests asserting that '() is true, and not a
1341 boolean. This stuff has been true for a while.
1343 * boot-9.scm (ipow-by-squaring, butlast): Fix uses of outdated
1346 * boot-9.scm (with-excursion-getter-and-setter, q-rear): Doc
1349 Wed Jun 11 00:31:40 1997 Jim Blandy <jimb@floss.red-bean.com>
1351 * Makefile.in: Regenerated after xtra_PLUGIN_guile_libs change in
1354 Fri Jun 6 14:37:18 1997 Marius Vollmer <mvo@zagadka.ping.de>
1356 * boot-9.scm (struct-printer): Bugfix: Check the layout of the
1357 vtable and not the one of the struct.
1359 Wed Jun 4 23:27:16 1997 Marius Vollmer <mvo@zagadka.ping.de>
1361 * boot-9.scm (struct-layout, %struct-printer-tag, struct-printer,
1362 make-struct-printer, set-struct-printer-in-vtable!): New bindings
1363 to support printing of structures.
1364 (record-type-vtable, make-record-type): Add slot to hold printing
1365 function and initialize it with something appropriate. Removed
1366 commented out printing code.
1367 (record-type-name, record-type-fields): Adjusted slot offsets.
1368 (%print-module): Reduce argument list to "mod" and "port".
1370 Tue Jun 3 17:04:18 1997 Jim Blandy <jimb@totoro.cyclic.com>
1372 * slib.scm (identity): New function, used by SLIB.
1374 Sat May 31 18:57:12 1997 Gary Houston <ghouston@actrix.gen.nz>
1376 * boot-9.scm: signal-handler, alarm-thunk: removed.
1377 don't define ticks-interrupt etc.
1378 top-repl: install signal handlers for SIGINT, SIGFPE, SIGSEGV, SIGBUS
1379 during call to scm-style-repl.
1381 Fri May 30 18:08:10 1997 Jim Blandy <jimb@floss.cyclic.com>
1383 * slib.scm (slib:load): Use primitive-load-path instead of
1384 basic-load. This is probably wrong, but hopefully the entire
1385 source access system will be revised soon anyway, and this will
1386 make require behave more like Emacs Lisp's require. If this
1387 breaks something, please let me know. Maybe this is real dumb.
1389 Thu May 29 02:36:48 1997 Jim Blandy <jimb@floss.cyclic.com>
1391 * regex.scm: Add a module declaration. Use DEFINE-PUBLIC everywhere.
1392 * boot-9.scm: If the `regex' feature is present, use the module
1395 Tue May 27 22:48:14 1997 Tim Pierce <twp@twp.tezcat.com>
1397 * regex.scm: New file.
1398 * Makefile.am (subpkgdata_DATA): Add regex.scm.
1399 * Makefile.in: Regenerated.
1401 Mon May 26 17:24:48 1997 Jim Blandy <jimb@totoro.cyclic.com>
1403 * COPYING, boot-9.scm, debug.scm, emacs.scm, expect.scm, gtcl.scm,
1404 gwish.scm, hcons.scm, lineio.scm, mapping.scm, nonblocking.scm,
1405 oldprint.scm, poe.scm, r4rs.scm, source.scm, tags.scm, test.scm,
1406 threads.scm: New address for FSF.
1408 Fri May 16 04:09:45 1997 Jim Blandy <jimb@floss.cyclic.com>
1410 * debug.scm: Update copyright years; this file has been worked on
1413 Thu May 15 07:56:08 1997 Gary Houston <ghouston@actrix.gen.nz>
1415 * expect.scm: use gettimeofday instead of get-internal-real-time
1416 and use a floating point timeout when calling select. Untested,
1417 since the regex library is currently AWOL.
1419 Wed May 14 21:00:30 1997 Jim Blandy <jimb@floss.cyclic.com>
1421 * boot-9.scm (eval-string): Function deleted; it was already
1422 implemented in C, so there's no point in making a divergable copy
1425 Tue May 13 16:40:06 1997 Jim Blandy <jimb@floss.cyclic.com>
1427 * Makefile.in: Regenerated, using automake-1.1p.
1429 Tue May 13 16:40:06 1997 Jim Blandy <jimb@floss.cyclic.com>
1431 * Makefile.in: Regenerated, using automake-1.1p.
1433 Tue May 13 02:48:49 1997 Gary Houston <ghouston@actrix.gen.nz>
1435 * boot-9.scm (error-catching-loop): don't read a line from
1436 current input when quit is encountered, the previous change
1439 Mon May 12 19:00:21 1997 Jim Blandy <jimb@floss.cyclic.com>
1441 * boot-9.scm (scm-style-repl): After reading an expression,
1442 consume any trailing newline (perhaps preceded by whitespace), to
1443 avoid screwing up GDB. More detail in comments.
1445 Mon May 5 13:18:38 1997 Jim Blandy <jimb@floss.cyclic.com>
1447 * Makefile.am (ETAGS_ARGS): New variable, since we're not treating
1448 the Scheme code like code yet.
1449 * Makefile.in: Resrac,husrched.
1451 Wed Apr 30 15:25:15 1997 Marius Vollmer <mvo@zagadka.ping.de>
1453 * boot-9.scm (link-dynamic-module): Do not catch errors from
1454 dynamic-link and dynamic-call. When the shared library exists it
1455 is now assumed to be suitable for a dynamic C module.
1457 Fri Apr 25 21:21:35 1997 Marius Vollmer <mvo@zagadka.ping.de>
1459 * boot-9.scm (process-use-modules): New function to support the
1461 (use-modules): throw an error iff one of the requested modules
1464 Tue Apr 29 06:54:46 1997 Gary Houston <ghouston@actrix.gen.nz>
1466 * boot-9.scm: don't define timer-thunk or gc-thunk.
1468 Sun Apr 27 17:56:09 1997 Jim Blandy <jimb@floss.cyclic.com>
1470 * aclocal.m4: Removed; unnecessary, given changes of Apr 24.
1472 * Makefile.am (subpkgdatadir): Use "ice-9" instead of "@module@";
1473 we're not using AM_INIT_GUILE_MODULE any more.
1474 * Makefile.in: Regeneratitetedrerd.
1476 Thu Apr 24 01:33:33 1997 Jim Blandy <jimb@floss.cyclic.com>
1478 Get 'make dist' to work again.
1479 * Makefile.am (EXTRA_DIST): Remove PLUGIN files.
1480 * Makefile.in: Regenerated, like two tons of fleas.
1482 Changes for reduced Guile distribution: one configure script,
1484 * configure.in, configure: Removed.
1485 * Makefile.in: Regenerated.
1487 Sat Apr 19 08:03:50 1997 Jim Blandy <jimb@floss.cyclic.com>
1489 * boot-9.scm (eval-string, command-line, load-user-init): New
1492 Sat Apr 12 08:27:05 1997 Gary Houston <ghouston@actrix.gen.nz>
1494 * boot-9.scm (log10): defined.
1496 Tue Apr 1 17:46:49 1997 Gary Houston <ghouston@actrix.gen.nz>
1498 * expect.scm (expect-select): correct the millisecond timeout
1499 arithmetic (from Marko.Kohtala@ntc.nokia.com).
1501 Mon Mar 31 03:23:19 1997 Gary Houston <ghouston@actrix.gen.nz>
1503 * boot-9.scm (open-input-pipe, open-output-pipe): defined here
1504 instead of in libguile.
1505 (tm:sec etc.) new accessors for broken-down time.
1506 (set-tm:sec etc.) new setters for broken-down time.
1508 Thu Mar 27 05:06:00 1997 Gary Houston <ghouston@actrix.gen.nz>
1510 * boot-9.scm (netent:addrtype, servent:port): added missing
1512 (netent:net, servent:proto): repaired.
1513 (utsname:sysname etc.): new accessors for uname.
1515 Tue Mar 25 03:04:03 1997 Gary Houston <ghouston@actrix.gen.nz>
1517 * boot-9.scm (sockaddr:fam, sockaddr:path, sockaddr:addr,
1518 sockaddr:port): new functions.
1520 Wed Mar 19 04:50:34 1997 Gary Houston <ghouston@actrix.gen.nz>
1522 * boot-9.scm: define accessor procedures for the objects returned
1523 by getpw, getgr, gethost, getnet, getproto, getserv (e.g.,
1524 passwd:name, where the first component is the name of the C structure
1525 and the second is the unprefixed C member name.)
1527 Tue Mar 18 18:39:31 1997 Gary Houston <ghouston@actrix.gen.nz>
1529 * boot-9.scm (setpwent, setgrent, sethostent, setnetent, setprotoent,
1530 setservent): no longer take an argument, it was bogus.
1532 Thu Mar 13 00:13:41 1997 Gary Houston <ghouston@actrix.gen.nz>
1534 * boot-9.scm (scm-error): deleted, reimplemented in C.
1536 Mon Mar 10 15:48:31 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1538 * boot-9.scm (process-define-module): Modified to handle both
1539 keywords and symbols.
1541 Sat Mar 8 04:32:44 1997 Gary Houston <ghouston@actrix.gen.nz>
1543 * slib.scm: update read usage.
1545 * r4rs.scm: update primitive-load usage.
1546 Don't define read-sharp.
1548 * boot-9.scm: use read-hash-extend to install extra read syntax.
1549 (read-sharp): removed.
1550 Adjust usage of primitive-load-path, read, which no longer take
1551 case_i or read-sharp arguments.
1553 Sat Mar 8 00:07:54 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1555 * boot-9.scm: Added loading of session support module.
1557 * debug.scm: Removed `display-application'. (Replaced by
1558 primitive procedure.)
1560 * boot-9.scm (beautify-user-module!): Don't add the root module
1561 interface to the end of the use-list of the root module.
1563 Thu Mar 6 07:26:34 1997 Gary Houston <ghouston@actrix.gen.nz>
1565 * boot-9.scm: repl-quit, repl-abort: obsolete variables deleted.
1567 Wed Mar 5 20:30:24 1997 Gary Houston <ghouston@actrix.gen.nz>
1569 * boot-9.scm: check use-emacs-interface for emacs support.
1571 Sun Mar 2 19:47:14 1997 Gary Houston <ghouston@actrix.gen.nz>
1573 * boot-9.scm (scm-style-repl): call repl-report-start-timing if
1575 * (exit): alias for quit.
1577 Sun Mar 2 05:25:11 1997 Gary Houston <ghouston@actrix.gen.nz>
1579 * boot-9.scm (error-catching-loop thunk): use a status variable to
1580 return the quit args.
1581 (scm-style-repl): call -quit, passing return value from
1582 error-catching-repl. Make -quit return its args.
1583 stand-alone-repl: comment out, since it seems unused.
1585 (error-catching-loop thunk): discard trailing junk after a (quit).
1587 Sat Mar 1 15:24:39 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1589 * boot-9.scm: Removed the old printer code.
1591 * r4rs.scm (apply, call-with-current-continuation): Added comment
1592 explaining why apply and call/cc need to be closures.
1594 * boot-9.scm (apply, call-with-current-continuation): Bugfix:
1595 Removed. These definitions are already present in r4rs.scm.
1597 * debug.scm (trace-entry, trace-exit): Check that we're on a repl
1598 stack before printing traced frames; Re-enable trace flag at end
1601 Sat Mar 1 00:10:38 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1603 * debug.scm: Add hook for reset of trace level at abort.
1605 * boot-9.scm (run-hooks): New procedure.
1606 (add-hooks!): New macro.
1607 Change hooks to use these functions.
1609 * debug.scm: *Warning* This feature is a bit premature. I add
1610 it anyway because 1. it is very useful, and, 2. you can start
1611 making it less premature by complaining to me and by modifying
1613 (trace): Given one or more procedure objects, trace each one.
1614 Given no arguments, show all traced procedures.
1615 (untrace): Given one or more procedure objects, untrace each one.
1616 Given no arguments, untrace all traced procedures. The tracing in
1617 Guile have an advantage to most other systems: We don't create new
1618 procedure objects, but mark the procedure objects themselves.
1619 This means that also anonymous and internal procedures can be
1622 * boot-9.scm (error-catching-loop): Added handling of apply-frame
1623 and exit-frame exceptions.
1625 * boot-9.scm (assert-repl-prompt, the-prompt-string): Removed.
1626 (set-repl-prompt!): Setter for repl prompt.
1627 (scm-style-repl): If prompt is #f, don't prompt; if prompt is a
1628 string, display it; if prompt is a thunk, call it and display its
1629 result; otherwise display "> ".
1630 (Change suggested by Roland Orre <orre@nada.kth.se>.)
1632 * r4rs.scm (%load-verbosely): Reverted change to
1633 `module-defined?', since the module system isn't bootstrapped when
1634 we load r4rs.scm. This is just a temporary fix to make the
1635 repository version runnable.
1637 Thu Feb 27 23:25:47 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1639 * boot-9.scm: Removed the enabling of debug evaluator and
1640 recording of source code positions. This was placed there for our
1641 convenience, but it has already sneaked into the distribution
1642 once... so we'd better add this in our local copies instead when
1643 we need it. (These options are normally enabled at the end of
1644 boot-9.scm when loading the debug module.)
1646 Thu Feb 27 16:04:45 1997 Marius Vollmer <mvo@zagadka.ping.de>
1648 * boot-9.scm (module-defined?): New function.
1649 (macroexpand-1, macroexpand): Use local-ref instead of defined?
1651 * r4rs.scm (%load-verbosely): Use "module-defined?" instead of
1653 * slib.scm (defined?): New function to take the place of the
1654 builtin "defined?". It allways examines the slib module.
1656 Mon Feb 24 21:46:15 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1658 * configure.in: Added AM_MAINTAINER_MODE
1660 Sat Feb 15 04:51:20 1997 Gary Houston <ghouston@actrix.gen.nz>
1662 * boot-9.scm (read-sharp): define directly, don't go through a
1665 Tue Feb 11 08:45:48 1997 Gary Houston <ghouston@actrix.gen.nz>
1667 * boot-9.scm (uniform-vector-set!): use uniform-array-set1!, not
1668 uniform-vector-set1! which doesn't exist.
1670 Mon Feb 10 03:01:48 1997 Mikael Djurfeldt <mdj@kenneth>
1672 * boot-9.scm (backtrace): Removed. (A C version now exists in
1675 Fri Jan 24 06:05:36 1997 Gary Houston <ghouston@actrix.gen.nz>
1677 * boot-9.scm (read-line!, read-delimited!, read-delimited,
1678 read-line): new procedures, see libguile/ChangeLog.
1680 Thu Jan 16 17:07:03 1997 Marius Vollmer <mvo@zagadka.ping.de>
1682 Added dynamic linking of modules. See libguile/DYNAMIC-LINKING.
1684 * boot-9.scm (split-c-module-name, convert-c-registered-modules,
1685 init-dynamic-module, dynamic-maybe-call,
1686 find-and-link-dynamic-module, link-dynamic-module,
1687 try-module-dynamic-link, registered-modules): New definitions for
1688 dynamic linking of modules.
1689 (resolve-module): Try to dynamically link the requested module
1690 after failing to load it as Scheme code.
1692 Wed Jan 8 05:50:14 1997 Gary Houston <ghouston@actrix.gen.nz>
1694 * boot-9.scm (getservbyport, getservbyname): remove stray %.
1696 Tue Jan 7 20:02:24 1997 Jim Blandy <jimb@floss.cyclic.com>
1698 * boot-9.scm (and=>): Rename THUNK argument to PROCEDURE, 'cos
1701 * lineio.scm (make-line-buffering-input-port): Properly test for
1702 the case of an empty buffer list. The old code assumed that '()
1705 Mon Jan 6 01:13:53 1997 Mikael Djurfeldt <mdj@kenneth>
1707 * boot-9.scm (use-modules): New macro (from Marius Vollmer).
1708 (use-modules <module name> ...) Put the the modules named by
1709 <module name> ... on the use list of the current module.
1711 Sun Jan 5 15:52:59 1997 Jim Blandy <jimb@floss.cyclic.com>
1713 * boot-9.scm (error-catching-loop): Remove message saying that
1714 typing "$" will put you in the debugger. This isn't implemented
1717 Sun Dec 22 23:27:25 1996 Jim Blandy <jimb@floss.cyclic.com>
1719 * boot-9.scm (delq-all!): Function deleted; delq!'s semantics have
1720 been fixed, so this function is superfluous.
1721 (transform-usage-lambda): Use delq!, not delq-all!.
1723 Tue Dec 17 20:36:45 1996 Marius Vollmer <mvo@zagadka.ping.de>
1725 * boot-9.scm (resolve-module): New optional parameter that
1726 controls whether autoloading is attempted or not. Default is #t.
1727 (process-define-module): Don't autoload the defined module.
1728 (try-module-autoload): Don't autoload the directory modules.
1730 * boot-9.scm (process-define-module): Ensure that the-scm-module
1731 is last in the `uses' list to allow shadowing builtin
1732 bindings. All :use-module options are added in the order they
1733 appear in the arguments but before anything already on the list
1734 (such as the-scm-module).
1736 Wed Dec 11 21:06:05 1996 Gary Houston <ghouston@actrix.gen.nz>
1738 * slib.scm (slib-parent-dir): throw error if #f returned from
1741 Sat Nov 30 23:57:28 1996 Tom Tromey <tromey@cygnus.com>
1743 * PLUGIN/greet, PLUGIN/split.sed, PLUGIN/this.configure: Removed.
1744 * Makefile.am, aclocal.m4: New files.
1745 * configure.in: Updated for Automake.
1747 Wed Nov 27 14:16:14 1996 Marius Vollmer <mvo@zagadka.ping.de>
1749 * boot-9.scm (macroexpand-1, macroexpand), slib.scm
1750 (slib:features), r4rs.scm (%load-verbosely): "defined?" is now a
1751 function, use it accordingly.
1753 Thu Nov 21 11:12:10 1996 Jim Blandy <jimb@floss.cyclic.com>
1755 It's an "eval closure", not an "eval thunk." A thunk is a
1756 function of no arguments.
1757 * boot-9.scm (module-type): Rename module field.
1758 (make-module, eval-in-module, make-root-module,
1759 set-current-module): Uses changed.
1760 (module-eval-closure, set-module-eval-closure!,
1761 root-module-closure): Renamed from module-eval-thunk,
1762 set-module-eval-thunk!, root-module-thunk.
1763 (set-current-module): Change uses of *top-level-lookup-thunk* to
1764 *top-level-eval-closure*.
1766 Wed Nov 20 14:45:27 1996 Jim Blandy <jimb@totoro.cyclic.com>
1768 * slib.scm (slib-parent-dir): Use string-length, not length.
1769 (Thanks to Bernard Urban.)
1771 Sat Nov 2 20:00:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1773 * boot-9.scm: The debugging evaluator and recording of positions
1774 aren't enabled by default any longer (they are switched on in
1775 debug.scm). But during development we want to have them also
1776 *inside* boot-9.scm. Therefore, two lines are added at the
1777 beginning of boot-9.scm to enable these.
1779 Call `provide' so that `records' are included among the
1782 The scheme for saving the stack has been adjusted: save-stack is
1783 now commonly available for saving the stack. Calling `save-stack'
1784 sets a flag `stack-saved?' which prevents overwriting the stack.
1785 `stack-saved?' is reset at `abort'.
1787 Spelling correction: seperate --> separate.
1789 Removed `:'s that had creeped into some comments.
1791 The repl now doesn't print #<unspecified> results any longer
1792 If the user wants to see this, he can do
1793 (assert-repl-print-unspecified #t) in his startup file.
1795 The user now gets a friendly message instead of a backtrace at
1798 Added `before-read-hook'.
1800 Load module (ice-9 emacs) if option `-e' was specified.
1802 (provide): New function.
1804 (error): Save stack at entry, so that Guile entrails won't show up
1807 (backtrace): New function.
1809 (save-stack): Can now take arbitrary number of stack narrowing
1810 specifier pairs. The first specifier in a pair controls inner
1811 border, the second the outer border. A number means cut that
1812 number of frames, a procedure object means cut until that object
1813 is found in operator position in a frame.
1815 * debug.scm: Enable debugging evaluator and recording of positions
1818 * slib.scm (slib:load): Adapt to the new behavior of
1819 primitive-load: It doesn't any longer try both with and without
1820 ".scm" extension. (We don't want to use %search-load-path here.)
1822 (implementation-vicinity): New function. slib requires it
1824 (library-vicinity): Updated.
1826 Load "require.scm" in the library-vicinity.
1828 (install-require-vicinity, install-require-module): New functions.
1830 Mon Oct 28 17:56:29 1996 Jim Blandy <jimb@floss.cyclic.com>
1832 * boot-9.scm (load-from-path): New function.
1834 * boot-9.scm (try-load, basic-try-load, try-load-module,
1835 try-load): Deleted. I don't think they're being used.
1837 * Makefile.in (scm_files): Add r4rs.scm and test.scm to this list,
1838 so they'll get distributed.
1840 Get Guile to be a little less chatty by default. The new user
1841 should see as little clutter as possible.
1842 * r4rs.scm (%load-verbosely): Make this #f by default.
1843 * boot-9.scm (scm-repl-verbose): Make this #f by default.
1844 (scm-style-repl): Don't run 'pk' on the value passed to quit.
1846 * r4rs.scm: New file.
1847 * boot-9.scm: Load r4rs.scm, first thing.
1848 (OPEN_READ, OPEN_WRITE, OPEN_BOTH, *null-device*, open-input-file,
1849 open-output-file, open-io-file, close-input-port,
1850 close-output-port, close-io-port, call-with-input-file,
1851 call-with-output-file, with-input-from-port, with-output-to-port,
1852 with-error-to-port, with-input-from-file, with-output-to-file,
1853 with-error-to-file, with-input-from-string, with-output-to-string,
1854 with-error-to-string, the-eof-object): Definitions moved to
1855 r4rs.scm. Not all of them are R4RS, but those that are use those
1857 (load, %load-verbosely, %load-announce): Moved, along with code to
1858 set %load-hook, to r4rs.scm.
1860 * test.scm: New file.
1862 * boot-9.scm (integer?): Definition deleted, in favor of the one
1863 present in libguile (which used to be called int?). I have no
1864 idea why integer? didn't just call int? to begin with.
1866 * boot-9.scm (<, <=, =, >, >=): Definitions in terms of <?, <=?,
1867 =?, >?, and >=? deleted; they're defined that way by libguile now.
1869 * boot-9.scm (load): Simplified; primitive-load does most of this
1871 (%load-announce-win): Removed; no longer used. Set %load-hook to
1872 call %load-announce.
1874 Sun Oct 27 07:47:03 1996 Gary Houston <ghouston@actrix.gen.nz>
1876 * boot-9.scm (stat:dev, stat:ino, stat:mode, stat:nlink, stat:uid,
1877 stat:gid, stat:rdev, stat:size, stat:atime, stat:mtime,
1878 stat:ctime, stat:blksize, stat:blocks) accessor functions for stat
1880 (file-is-directory?): use stat:type.
1882 Fri Oct 25 03:34:47 1996 Jim Blandy <jimb@floss.cyclic.com>
1884 * boot-9.scm (%read-sharp): Don't recognize the `#!' syntax here;
1885 that's now taken care of in libguile, and in a way compatible with
1886 SCSH (which this isn't).
1888 Mon Oct 21 18:52:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
1890 * boot-9.scm: Formatting tweaks.
1892 Fri Oct 18 01:03:08 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
1894 * boot-9.scm (handle-system-error): Added hooks before-error-hook,
1895 after-error-hook, before-backtrace-hook and after-backtrace-hook
1896 to the error handler. E.g.: fancy emacs support could plug into
1898 (save-stack): New function. The stack is now made differently
1899 depending on the stack id. (The motivation is to make a better
1900 choice regarding what stack frames to present to the user.)
1901 (error-catching-loop): Stack handling code moved outside into
1904 Thu Oct 17 20:33:08 1996 Gary Houston <ghouston@actrix.gen.nz>
1906 * Makefile.in (scm_files): add expect.scm.
1908 * expect.scm: new file ported from guile-iii.
1910 * boot-9.scm: remove handle-system-error, after moving the code into
1911 error-catching-loop.
1912 Don't set 'throw-handler-default property on error keys.
1913 Just interpret (almost) any throw with 4 args as an error throw.
1914 Delete some try-load stuff that was already commented out.
1916 Second thoughts, keep handle-system-error but call it from
1917 error-catching-loop.
1919 Tue Oct 15 17:07:20 1996 Jim Blandy <jimb@floss.cyclic.com>
1921 * boot-9.scm: Doc fixes.
1922 (make-module): Rework for readability.
1923 (make-root-module, make-scm-module): USES argument to make-module
1924 should be '(), not #f.
1926 * boot-9.scm (try-load): %sys-load-path has been renamed to
1927 primitive-load-path; adjust call here.
1929 Tue Oct 15 14:25:01 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1931 * boot-9.scm (signal-handler): Bugfix: Moved the recording of
1932 the stack to the correct place: when it is decided to generate an
1935 Mon Oct 14 22:20:30 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1937 * boot-9.scm (error-catching-loop, signal-handler,
1938 handle-system-error): Backtracing now works for signals aswell;
1939 Backtracing mechanism can now identify the stack root created by
1940 start-stack so that the user isn't exposed to system stack frames.
1942 Mon Oct 14 06:05:42 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1944 * Makefile.in: Added threads.scm.
1946 Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
1948 * debug.scm (make-enable, make-disable): Simplified.
1950 * boot-9.scm: Renamed %%throw-handler-default -->
1951 throw-handler-default.
1952 ((handle-system-error key . arg-list)): Changed the way errors are
1954 ((scm-style-repl)): Wrap up the call to eval in a start-stack
1956 ((error-catching-loop thunk)): Introduce a lazy-catch into
1957 error-catching-loop so that the stack can be captured.
1959 Thu Oct 10 22:27:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
1961 * mapping.scm (hash-table-mapping): Explicitly request that
1962 make-vector fill new vectors with '(); this will make it easier to
1963 port Guile Scheme code to other Schemes.
1964 * boot-9.scm (make-print-style, make-print-table): Same.
1966 Sun Oct 6 03:54:59 1996 Gary Houston <ghouston@actrix.gen.nz>
1968 * boot-9.scm (load): rewritten again.
1969 Append "." to the default %load-path.
1970 (feature?): new function: checks for a symbol in the features list.
1971 (module-local-variable): remove apparently useless (caddr (list m v
1973 (%load-announce): minor formatting change.
1974 (file-exists?): use access? if posix is featured.
1975 (file-is-directory?): use stat if i/o-extensions is featured.
1976 (try-module-autoload module-name): use file-exists? before
1979 Sat Oct 5 18:54:03 1996 Mikael Djurfeldt <mdj@kenneth>
1981 * boot-9.scm: Added conditional loading of threads.scm.
1983 * threads.scm: New file. Modified from the Cygnus-r0.3
1986 * boot-9.scm (error-catching-loop): Added handling of key
1989 * boot-9.scm: Name change %%bad-throw --> bad-throw.
1991 Wed Oct 2 23:38:44 1996 Jim Blandy <jimb@totoro.cyclic.com>
1993 * boot-9.scm (make-record-type, record-constructor): Don't assume
1994 the empty list is false when parsing the argument list.
1996 Mon Sep 30 22:15:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
1998 * boot-9.scm (signal-handler): Clean up logic.
2000 * boot-9.scm (load): Assume %load-path is always bound.
2002 Sat Sep 28 00:15:37 1996 Gary Houston <ghouston@actrix.gen.nz>
2004 * boot-9.scm (error): replace another throw with scm-error. Throw
2005 to 'misc-error instead of 'error (no need to distinguish these.)
2006 Don't set up 'error as a key.
2007 Set up regex-error as a key, if regex is available.
2008 (signal-handler): use scm-error, not throw.
2010 (%try-load, try-load-with-path, %load, load-with-path,
2011 basic-try-load-with-path, basic-load-with-path,
2012 try-load-module-with-path,load-module-with-path): deleted, since
2013 they seem redundant.
2014 (try-load): define using %try-load, not try-load-with-path.
2015 (load): rewritten. load tries to open the file directly and
2016 with a .scm extension before searching the library directories
2017 (should "." be added to %load-path? then load could still open
2018 directly files starting with "/").
2019 (try-module-autoload): use load, not load-with-path.
2020 (%load-indent): deleted, -2 was causing errors.
2022 (%read-sharp): use port-line, not line-number.
2024 Fri Sep 27 16:23:51 1996 Jim Blandy <jimb@totoro.cyclic.com>
2026 * boot-9.scm (%%bad-throw): Delete definition. 1) It's very
2027 straightforward to provide the equivalent functionality using
2028 (catch #t ...), so there's no need for the extra complexity. 2)
2029 Outside the context of a read-eval-print loop (which Guile should
2030 not require) it's not clear we should do anything more complicated
2031 than print an error and exit; the user or REPL can establish
2032 something better if it wants. 3) In that case, it's much more
2033 robust to just do it in the C code.
2035 Tue Sep 24 06:53:04 1996 Gary Houston <ghouston@actrix.gen.nz>
2037 * boot-9.scm (%try-load): define using primitive-load. Previously
2038 %try-load itself was the primitive.
2039 (load-with-path): use scm-error instead of %load-announce-lossage.
2040 Errors are thrown to 'misc-error instead of 'could-not-load.
2041 (%load-announce-lossage): deleted.
2043 Mon Sep 23 00:16:31 1996 Mikael Djurfeldt <mdj@kenneth>
2045 * boot-9.scm (warn, scm-style-repl): Use C printer instead of `print'.
2046 (make-record-type type-name fields): Temporarily remove support
2047 for printing of records (not possible yet with C printer).
2049 Fri Sep 20 00:24:27 1996 Gary Houston <ghouston@actrix.gen.nz>
2051 * boot-9.scm (file-exists?, file-is-directory): catch only
2052 system-error, not every kind of error.
2053 (scm-error): new procedure.
2055 Thu Sep 19 16:02:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
2057 * boot-9.scm: Formatting tweaks.
2059 Wed Sep 18 09:07:37 1996 Gary Houston <ghouston@actrix.gen.nz>
2061 * boot-9.scm (%%handle-system-error key): remove the code for
2062 SCM-style errors. handle the case that an unexpected number
2063 of args are supplied.
2064 (%%system-errors): removed.
2065 (error): redefine using a throw with key and 4 args.
2066 ('error): associate 'error, 'error-signal keys with
2067 %%handle-system-error.
2068 (%%default-error-handler): removed.
2069 (signal-handler): throw with 4 args and use the error-signal key.
2070 Create an error message instead of using numerical codes.
2071 (%%bad-throw): call error instead of throw if key not found.
2073 Tue Sep 17 04:11:28 1996 Gary Houston <ghouston@actrix.gen.nz>
2075 * boot-9.scm: initialize new error keys (see libguile/ChangeLog).
2076 (%%handle-system-error key): check subr is not #f before printing.
2077 Recognize %s (embed an argument using "display") and
2078 %S (embed an argument using "write").
2080 Sun Sep 15 03:55:35 1996 Gary Houston <ghouston@actrix.gen.nz>
2082 * boot-9.scm (%%handle-system-error key): set args and rest to
2083 the empty list if they are #f.
2084 Initialize out-of-range as an error key.
2086 Sat Sep 14 03:41:15 1996 Gary Houston <ghouston@actrix.gen.nz>
2088 * PLUGIN/REQ: remove the "ice-9 lgh" line which causes a cycle.
2090 * boot-9.scm: remove leading %% from references to '%%system-error.
2091 (%%handle-system-error): don't pass all the thrown arguments when
2092 aborting, just the key and subr.
2093 Remove the code to "Install default handlers for built-in errors."
2094 Remove the definition of the syserror procedure.
2095 Associate 'numerical-overflow with default handler.
2097 Fri Sep 13 04:58:11 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2099 * boot-9.scm: Name change: value-ref --> local-ref
2100 resolved-ref --> nested-ref Motivation: conformance to the other
2101 dictionary operators: list-ref operates on list, vector-ref
2102 operates on vector, nested-ref operates on nested namespace,
2103 local-ref operates on the local nested namespace.
2105 Sat Sep 7 06:44:47 1996 Gary Houston <ghouston@actrix.gen.nz>
2107 * boot-9.scm (%%handle-system-error): recognise errors thrown
2108 by lgh-error (fill-message etc.)
2109 (fill-message): check first whether args is null.
2110 (fill-message): bug fix and check that args is a list.
2112 Thu Sep 5 11:33:41 1996 Jim Blandy <jimb@floss.cyclic.com>
2114 * boot-9.scm: %load-path is initialized in C code now.
2115 (implementation-vicinity, parse-path): Deleted, along with code to
2116 initialize %load-path.
2118 * boot-9.scm (in-vicinity): If the vicinity doesn't end with a
2119 "/", use one to separate it from the file.
2121 Thu Aug 29 23:05:11 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
2123 * boot-9.scm (%load-path): Add the site directory.
2124 Add the directory named after the version number.
2125 Prepend the version number to the other directories in the path.
2126 Simplify by mapping the common prefix onto each item.
2127 * Makefile.in (datadir, pkgdatadir, pkgverdatadir, subpkgdatadir,
2128 sitedatadir): New definitions.
2129 (libparent, libdir, install_path): Replaced by above.
2130 (install): Create the above directories.
2131 Put the source files into subpkgdatadir.
2132 (uninstall): Remove the above directories.
2134 Thu Aug 29 21:48:47 1996 Jim Blandy <jimb@floss.cyclic.com>
2136 Don't use the PLUGIN system to gather information for the
2137 Makefile's distribution and installation targets; just put it all
2138 in the Makefile directly.
2139 * PLUGIN/this.configure (scm_files, aux_files): Remove sections
2141 * configure.in: Remove code that gets and substitutes scm_files and
2143 * Makefile.in (scm_files, aux_files): Write out the list of files
2144 here, where people expect to find them.
2146 Fri Aug 23 06:44:36 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2148 * boot-9.scm: Preliminary solution: optionally load the debug
2149 module. Changed "gls" to "guile1.0b3".
2151 * debug.scm: New file: debug extensions.
2153 Wed Aug 21 13:06:56 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2155 * boot-9.scm (print-vector): Renamed weak-hash-table? -->
2156 weak-key-hash-table?. (Again!)
2158 Tue Aug 20 07:31:39 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
2160 * boot-9.scm (print-vector, macro-table, xformer-table):
2161 Renamed weak-hash-table --> weak-key-hash-table.
2163 * poe.scm (funcq-memo): Renamed weak-hash-table -->
2164 weak-key-hash-table.
2166 Sat Aug 3 06:16:35 1996 Gary Houston <ghouston@actrix.gen.nz>
2168 * boot-9.scm (*null-device*): global constant from goonix.
2169 (move->fdes): adjusted for boolean primitive-move->fdes. return
2170 the modified port, always set revealed count to 1 (SCSH compatible).
2171 (release-port-handle port): from goonix (SCSH compatible).
2172 (%open-file): removed.
2173 (open-input-file, open-output-file, file-exists?, file-is-directory?):
2174 modified for open-file change (does not return #f).
2176 Thu Aug 1 02:52:42 1996 Jim Blandy <jimb@totoro.cyclic.com>
2178 * Makefile.in (dist-dir): New target for new dist system.
2179 (manifest): Deleted.
2180 * PLUGIN/this.configure (aux_files): Removed PLUGIN; it's a
2181 directory, and needs special treatment in the dist-dir target.
2183 Thu Aug 1 09:00:21 1996 Gary Houston <ghouston@actrix.gen.nz>
2185 * boot-9.scm: remove the wrappers for '%' system primitives,
2186 now that they throw errors directly.
2187 remove make-simple-wrapper and similar functions.
2188 protect a call to getenv which may now throw an exception.
2190 Wed Jul 31 23:44:42 1996 Gary Houston <ghouston@actrix.gen.nz>
2192 * boot-9.scm (false-if-exception): new macro.
2194 Fri Apr 19 13:53:08 1996 Tom Lord <lord@beehive>
2196 * The more things change...