* slib.scm (slib:load): Use load-from-path instead of
[bpt/guile.git] / ice-9 / ChangeLog
1 Thu Aug 14 19:55:37 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
2
3 * slib.scm (slib:load): Use load-from-path instead of
4 primitive-load-path so that backtraces get narrowed properly at
5 the top.
6
7 * boot-9.scm (top-repl): Save stack already in signal handler in
8 order to narrow it correctly.
9 (save-stack): Adjust narrowing tag for the top of load-stacks.
10
11 Tue Jul 29 01:18:08 1997 Gary Houston <ghouston@actrix.gen.nz>
12
13 * boot-9.scm (move->fdes, dup->port): use dup->fdes, not primitive-dup.
14 (dup->fdes): deleted, now done in C.
15
16 Sat Jul 26 08:00:42 1997 Gary Houston <ghouston@actrix.gen.nz>
17
18 * boot-9.scm (setenv): new procedure, scsh compatible.
19
20 Sat Jul 26 21:30:10 1997 Marius Vollmer <mvo@zagadka.ping.de>
21
22 * boot-9.scm (with-fluids): New macro to go with the
23 builtin `with-fluids*'.
24
25 Thu Jul 24 04:28:11 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
26
27 * slib.scm (install-require-module): In newer versions of slib
28 *catalog* is #f until the first access. Therefore we call
29 require:provided? for a random feature if *catalog* is #f.
30
31 Wed Jul 23 20:13:04 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
32
33 * boot-9.scm: If using emacs interface, enable backtraces
34 automatically.
35
36 Mon Jul 21 06:45:45 1997 Gary Houston <ghouston@actrix.gen.nz>
37
38 * boot-9.scm (dup->port, dup->inport, dup->outport, dup->fdes,
39 dup, fdes->inport, fdes->outport, port->fdes): new procedures.
40 (duplicate-port): was a C primitive, now it's here.
41 (move->fdes): allow the first argument to be a file descriptor.
42 Return the modified port or file descriptor (was unspecified.)
43
44 Fri Jul 11 00:13:43 1997 Jim Blandy <jimb@floss.red-bean.com>
45
46 Changes to compile under gnu-win32, from Marcus Daniels:
47 * boot-9.scm (load-user-init): If HOME is unset, provide
48 a default of /.
49
50 * boot-9.scm (define-public): Changed to accomodate Hobbit.
51
52 Tue Jun 24 00:31:47 1997 Jim Blandy <jimb@floss.red-bean.com>
53
54 * boot-9.scm, debug.scm, hcons.scm, lineio.scm, mapping.scm,
55 poe.scm, slib.scm, tags.scm, threads.scm: Use normal list
56 notation, instead of #/ notation.
57
58 * expect.scm (expect-strings): Pass regexp/newline flag to
59 make-regexp.
60
61 Mon Jun 23 16:13:38 1997 Jim Blandy <jimb@floss.red-bean.com>
62
63 Fix inconsistencies in parsing of #/ style lists.
64 * boot-9.scm (read-path-list-notation): New function.
65 (parse-path-symbol): Deleted. Replaced by above.
66 Plug in read-path-list-notation as the parser for #/ lists,
67 instead of the anonymous lambda form calling parse-path-symbol.
68 (Thanks to Maurizio Vitale.)
69
70 * boot-9.scm (make-list): Remove the definition of this function
71 from the (ice-9 common-list) module; make the `init' argument
72 optional in the scm module's definition, to match the deleted
73 definition. Harmony reigneth? (Thanks to Bernard URBAN.)
74
75 Sun Jun 22 18:33:17 1997 Jim Blandy <jimb@floss.red-bean.com>
76
77 Try to detect when people are using one version of libguile and a
78 different version of ice-9. People have been skewing things and
79 sending in bug reports.
80 * version.scm.in: New file, which the configure script munges to
81 produce version.scm, which contains the ice-9 config stamp.
82 * boot-9.scm: Compare the libguile and ice-9 config stamps;
83 display a warning if the two are different.
84 * Makefile.am: Install version.scm, but don't distribute it.
85 Distribute version.scm.in, but don't install it.
86 * Makefile.in: Regenerated.
87
88 Thu Jun 19 21:01:16 1997 Jim Blandy <jimb@floss.red-bean.com>
89
90 * slib.scm (slib:warn): Alias for WARN function.
91
92 Fri Jun 13 00:32:04 1997 Jim Blandy <jimb@floss.red-bean.com>
93
94 * boot-9.scm (struct-printer): Fix off-by-one error in range
95 check. Correctly check for struct printer tag.
96
97 * expect.scm: Turn this into a module, (ice-9 expect).
98 (expect-port, expect-timeout, expect-timeout-proc,
99 expect-eof-proc, expect-char-proc, expect, expect-strings,
100 expect-select): Make these public definitions.
101 (expect-strings): Use make-regexp and regexp-exec, instead of
102 regcomp and regexec. We've omitted the REG_NEWLINE flag; hope
103 that's okay.
104
105 * boot-9.scm (with-regexp-parts): Comment this out. It has no
106 users in the core, and relies on mildly hairy details of the old
107 regexp interface.
108
109 * test.scm: Re-enable tests asserting that '() is true, and not a
110 boolean. This stuff has been true for a while.
111
112 * boot-9.scm (ipow-by-squaring, butlast): Fix uses of outdated
113 function names.
114
115 * boot-9.scm (with-excursion-getter-and-setter, q-rear): Doc
116 fixes.
117
118 Wed Jun 11 00:31:40 1997 Jim Blandy <jimb@floss.red-bean.com>
119
120 * Makefile.in: Regenerated after xtra_PLUGIN_guile_libs change in
121 ../configure.in.
122
123 Fri Jun 6 14:37:18 1997 Marius Vollmer <mvo@zagadka.ping.de>
124
125 * boot-9.scm (struct-printer): Bugfix: Check the layout of the
126 vtable and not the one of the struct.
127
128 Wed Jun 4 23:27:16 1997 Marius Vollmer <mvo@zagadka.ping.de>
129
130 * boot-9.scm (struct-layout, %struct-printer-tag, struct-printer,
131 make-struct-printer, set-struct-printer-in-vtable!): New bindings
132 to support printing of structures.
133 (record-type-vtable, make-record-type): Add slot to hold printing
134 function and initialize it with something appropriate. Removed
135 commented out printing code.
136 (record-type-name, record-type-fields): Adjusted slot offsets.
137 (%print-module): Reduce argument list to "mod" and "port".
138
139 Tue Jun 3 17:04:18 1997 Jim Blandy <jimb@totoro.cyclic.com>
140
141 * slib.scm (identity): New function, used by SLIB.
142
143 Sat May 31 18:57:12 1997 Gary Houston <ghouston@actrix.gen.nz>
144
145 * boot-9.scm: signal-handler, alarm-thunk: removed.
146 don't define ticks-interrupt etc.
147 top-repl: install signal handlers for SIGINT, SIGFPE, SIGSEGV, SIGBUS
148 during call to scm-style-repl.
149
150 Fri May 30 18:08:10 1997 Jim Blandy <jimb@floss.cyclic.com>
151
152 * slib.scm (slib:load): Use primitive-load-path instead of
153 basic-load. This is probably wrong, but hopefully the entire
154 source access system will be revised soon anyway, and this will
155 make require behave more like Emacs Lisp's require. If this
156 breaks something, please let me know. Maybe this is real dumb.
157
158 Thu May 29 02:36:48 1997 Jim Blandy <jimb@floss.cyclic.com>
159
160 * regex.scm: Add a module declaration. Use DEFINE-PUBLIC everywhere.
161 * boot-9.scm: If the `regex' feature is present, use the module
162 (ice-9 regex).
163
164 Tue May 27 22:48:14 1997 Tim Pierce <twp@twp.tezcat.com>
165
166 * regex.scm: New file.
167 * Makefile.am (subpkgdata_DATA): Add regex.scm.
168 * Makefile.in: Regenerated.
169
170 Mon May 26 17:24:48 1997 Jim Blandy <jimb@totoro.cyclic.com>
171
172 * COPYING, boot-9.scm, debug.scm, emacs.scm, expect.scm, gtcl.scm,
173 gwish.scm, hcons.scm, lineio.scm, mapping.scm, nonblocking.scm,
174 oldprint.scm, poe.scm, r4rs.scm, source.scm, tags.scm, test.scm,
175 threads.scm: New address for FSF.
176
177 Fri May 16 04:09:45 1997 Jim Blandy <jimb@floss.cyclic.com>
178
179 * debug.scm: Update copyright years; this file has been worked on
180 in 1997.
181
182 Thu May 15 07:56:08 1997 Gary Houston <ghouston@actrix.gen.nz>
183
184 * expect.scm: use gettimeofday instead of get-internal-real-time
185 and use a floating point timeout when calling select. Untested,
186 since the regex library is currently AWOL.
187
188 Wed May 14 21:00:30 1997 Jim Blandy <jimb@floss.cyclic.com>
189
190 * boot-9.scm (eval-string): Function deleted; it was already
191 implemented in C, so there's no point in making a divergable copy
192 here.
193
194 Tue May 13 16:40:06 1997 Jim Blandy <jimb@floss.cyclic.com>
195
196 * Makefile.in: Regenerated, using automake-1.1p.
197
198 Tue May 13 16:40:06 1997 Jim Blandy <jimb@floss.cyclic.com>
199
200 * Makefile.in: Regenerated, using automake-1.1p.
201
202 Tue May 13 02:48:49 1997 Gary Houston <ghouston@actrix.gen.nz>
203
204 * boot-9.scm (error-catching-loop): don't read a line from
205 current input when quit is encountered, the previous change
206 fixes this too.
207
208 Mon May 12 19:00:21 1997 Jim Blandy <jimb@floss.cyclic.com>
209
210 * boot-9.scm (scm-style-repl): After reading an expression,
211 consume any trailing newline (perhaps preceded by whitespace), to
212 avoid screwing up GDB. More detail in comments.
213
214 Mon May 5 13:18:38 1997 Jim Blandy <jimb@floss.cyclic.com>
215
216 * Makefile.am (ETAGS_ARGS): New variable, since we're not treating
217 the Scheme code like code yet.
218 * Makefile.in: Resrac,husrched.
219
220 Wed Apr 30 15:25:15 1997 Marius Vollmer <mvo@zagadka.ping.de>
221
222 * boot-9.scm (link-dynamic-module): Do not catch errors from
223 dynamic-link and dynamic-call. When the shared library exists it
224 is now assumed to be suitable for a dynamic C module.
225
226 Fri Apr 25 21:21:35 1997 Marius Vollmer <mvo@zagadka.ping.de>
227
228 * boot-9.scm (process-use-modules): New function to support the
229 use-modules macro
230 (use-modules): throw an error iff one of the requested modules
231 can't be found.
232
233 Tue Apr 29 06:54:46 1997 Gary Houston <ghouston@actrix.gen.nz>
234
235 * boot-9.scm: don't define timer-thunk or gc-thunk.
236
237 Sun Apr 27 17:56:09 1997 Jim Blandy <jimb@floss.cyclic.com>
238
239 * aclocal.m4: Removed; unnecessary, given changes of Apr 24.
240
241 * Makefile.am (subpkgdatadir): Use "ice-9" instead of "@module@";
242 we're not using AM_INIT_GUILE_MODULE any more.
243 * Makefile.in: Regeneratitetedrerd.
244
245 Thu Apr 24 01:33:33 1997 Jim Blandy <jimb@floss.cyclic.com>
246
247 Get 'make dist' to work again.
248 * Makefile.am (EXTRA_DIST): Remove PLUGIN files.
249 * Makefile.in: Regenerated, like two tons of fleas.
250
251 Changes for reduced Guile distribution: one configure script,
252 no plugins.
253 * configure.in, configure: Removed.
254 * Makefile.in: Regenerated.
255
256 Sat Apr 19 08:03:50 1997 Jim Blandy <jimb@floss.cyclic.com>
257
258 * boot-9.scm (eval-string, command-line, load-user-init): New
259 functions.
260
261 Sat Apr 12 08:27:05 1997 Gary Houston <ghouston@actrix.gen.nz>
262
263 * boot-9.scm (log10): defined.
264
265 Tue Apr 1 17:46:49 1997 Gary Houston <ghouston@actrix.gen.nz>
266
267 * expect.scm (expect-select): correct the millisecond timeout
268 arithmetic (from Marko.Kohtala@ntc.nokia.com).
269
270 Mon Mar 31 03:23:19 1997 Gary Houston <ghouston@actrix.gen.nz>
271
272 * boot-9.scm (open-input-pipe, open-output-pipe): defined here
273 instead of in libguile.
274 (tm:sec etc.) new accessors for broken-down time.
275 (set-tm:sec etc.) new setters for broken-down time.
276
277 Thu Mar 27 05:06:00 1997 Gary Houston <ghouston@actrix.gen.nz>
278
279 * boot-9.scm (netent:addrtype, servent:port): added missing
280 procedures.
281 (netent:net, servent:proto): repaired.
282 (utsname:sysname etc.): new accessors for uname.
283
284 Tue Mar 25 03:04:03 1997 Gary Houston <ghouston@actrix.gen.nz>
285
286 * boot-9.scm (sockaddr:fam, sockaddr:path, sockaddr:addr,
287 sockaddr:port): new functions.
288
289 Wed Mar 19 04:50:34 1997 Gary Houston <ghouston@actrix.gen.nz>
290
291 * boot-9.scm: define accessor procedures for the objects returned
292 by getpw, getgr, gethost, getnet, getproto, getserv (e.g.,
293 passwd:name, where the first component is the name of the C structure
294 and the second is the unprefixed C member name.)
295
296 Tue Mar 18 18:39:31 1997 Gary Houston <ghouston@actrix.gen.nz>
297
298 * boot-9.scm (setpwent, setgrent, sethostent, setnetent, setprotoent,
299 setservent): no longer take an argument, it was bogus.
300
301 Thu Mar 13 00:13:41 1997 Gary Houston <ghouston@actrix.gen.nz>
302
303 * boot-9.scm (scm-error): deleted, reimplemented in C.
304
305 Mon Mar 10 15:48:31 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
306
307 * boot-9.scm (process-define-module): Modified to handle both
308 keywords and symbols.
309
310 Sat Mar 8 04:32:44 1997 Gary Houston <ghouston@actrix.gen.nz>
311
312 * slib.scm: update read usage.
313
314 * r4rs.scm: update primitive-load usage.
315 Don't define read-sharp.
316
317 * boot-9.scm: use read-hash-extend to install extra read syntax.
318 (read-sharp): removed.
319 Adjust usage of primitive-load-path, read, which no longer take
320 case_i or read-sharp arguments.
321
322 Sat Mar 8 00:07:54 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
323
324 * boot-9.scm: Added loading of session support module.
325
326 * debug.scm: Removed `display-application'. (Replaced by
327 primitive procedure.)
328
329 * boot-9.scm (beautify-user-module!): Don't add the root module
330 interface to the end of the use-list of the root module.
331
332 Thu Mar 6 07:26:34 1997 Gary Houston <ghouston@actrix.gen.nz>
333
334 * boot-9.scm: repl-quit, repl-abort: obsolete variables deleted.
335
336 Wed Mar 5 20:30:24 1997 Gary Houston <ghouston@actrix.gen.nz>
337
338 * boot-9.scm: check use-emacs-interface for emacs support.
339
340 Sun Mar 2 19:47:14 1997 Gary Houston <ghouston@actrix.gen.nz>
341
342 * boot-9.scm (scm-style-repl): call repl-report-start-timing if
343 read gets EOF.
344 * (exit): alias for quit.
345
346 Sun Mar 2 05:25:11 1997 Gary Houston <ghouston@actrix.gen.nz>
347
348 * boot-9.scm (error-catching-loop thunk): use a status variable to
349 return the quit args.
350 (scm-style-repl): call -quit, passing return value from
351 error-catching-repl. Make -quit return its args.
352 stand-alone-repl: comment out, since it seems unused.
353
354 (error-catching-loop thunk): discard trailing junk after a (quit).
355
356 Sat Mar 1 15:24:39 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
357
358 * boot-9.scm: Removed the old printer code.
359
360 * r4rs.scm (apply, call-with-current-continuation): Added comment
361 explaining why apply and call/cc need to be closures.
362
363 * boot-9.scm (apply, call-with-current-continuation): Bugfix:
364 Removed. These definitions are already present in r4rs.scm.
365
366 * debug.scm (trace-entry, trace-exit): Check that we're on a repl
367 stack before printing traced frames; Re-enable trace flag at end
368 of handlers.
369
370 Sat Mar 1 00:10:38 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
371
372 * debug.scm: Add hook for reset of trace level at abort.
373
374 * boot-9.scm (run-hooks): New procedure.
375 (add-hooks!): New macro.
376 Change hooks to use these functions.
377
378 * debug.scm: *Warning* This feature is a bit premature. I add
379 it anyway because 1. it is very useful, and, 2. you can start
380 making it less premature by complaining to me and by modifying
381 the source! :-)
382 (trace): Given one or more procedure objects, trace each one.
383 Given no arguments, show all traced procedures.
384 (untrace): Given one or more procedure objects, untrace each one.
385 Given no arguments, untrace all traced procedures. The tracing in
386 Guile have an advantage to most other systems: We don't create new
387 procedure objects, but mark the procedure objects themselves.
388 This means that also anonymous and internal procedures can be
389 traced.
390
391 * boot-9.scm (error-catching-loop): Added handling of apply-frame
392 and exit-frame exceptions.
393
394 * boot-9.scm (assert-repl-prompt, the-prompt-string): Removed.
395 (set-repl-prompt!): Setter for repl prompt.
396 (scm-style-repl): If prompt is #f, don't prompt; if prompt is a
397 string, display it; if prompt is a thunk, call it and display its
398 result; otherwise display "> ".
399 (Change suggested by Roland Orre <orre@nada.kth.se>.)
400
401 * r4rs.scm (%load-verbosely): Reverted change to
402 `module-defined?', since the module system isn't bootstrapped when
403 we load r4rs.scm. This is just a temporary fix to make the
404 repository version runnable.
405
406 Thu Feb 27 23:25:47 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
407
408 * boot-9.scm: Removed the enabling of debug evaluator and
409 recording of source code positions. This was placed there for our
410 convenience, but it has already sneaked into the distribution
411 once... so we'd better add this in our local copies instead when
412 we need it. (These options are normally enabled at the end of
413 boot-9.scm when loading the debug module.)
414
415 Thu Feb 27 16:04:45 1997 Marius Vollmer <mvo@zagadka.ping.de>
416
417 * boot-9.scm (module-defined?): New function.
418 (macroexpand-1, macroexpand): Use local-ref instead of defined?
419 and eval.
420 * r4rs.scm (%load-verbosely): Use "module-defined?" instead of
421 "defined?".
422 * slib.scm (defined?): New function to take the place of the
423 builtin "defined?". It allways examines the slib module.
424
425 Mon Feb 24 21:46:15 1997 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
426
427 * configure.in: Added AM_MAINTAINER_MODE
428
429 Sat Feb 15 04:51:20 1997 Gary Houston <ghouston@actrix.gen.nz>
430
431 * boot-9.scm (read-sharp): define directly, don't go through a
432 %read-sharp layer.
433
434 Tue Feb 11 08:45:48 1997 Gary Houston <ghouston@actrix.gen.nz>
435
436 * boot-9.scm (uniform-vector-set!): use uniform-array-set1!, not
437 uniform-vector-set1! which doesn't exist.
438
439 Mon Feb 10 03:01:48 1997 Mikael Djurfeldt <mdj@kenneth>
440
441 * boot-9.scm (backtrace): Removed. (A C version now exists in
442 backtrace.c.)
443
444 Fri Jan 24 06:05:36 1997 Gary Houston <ghouston@actrix.gen.nz>
445
446 * boot-9.scm (read-line!, read-delimited!, read-delimited,
447 read-line): new procedures, see libguile/ChangeLog.
448
449 Thu Jan 16 17:07:03 1997 Marius Vollmer <mvo@zagadka.ping.de>
450
451 Added dynamic linking of modules. See libguile/DYNAMIC-LINKING.
452
453 * boot-9.scm (split-c-module-name, convert-c-registered-modules,
454 init-dynamic-module, dynamic-maybe-call,
455 find-and-link-dynamic-module, link-dynamic-module,
456 try-module-dynamic-link, registered-modules): New definitions for
457 dynamic linking of modules.
458 (resolve-module): Try to dynamically link the requested module
459 after failing to load it as Scheme code.
460
461 Wed Jan 8 05:50:14 1997 Gary Houston <ghouston@actrix.gen.nz>
462
463 * boot-9.scm (getservbyport, getservbyname): remove stray %.
464
465 Tue Jan 7 20:02:24 1997 Jim Blandy <jimb@floss.cyclic.com>
466
467 * boot-9.scm (and=>): Rename THUNK argument to PROCEDURE, 'cos
468 that's what it is.
469
470 * lineio.scm (make-line-buffering-input-port): Properly test for
471 the case of an empty buffer list. The old code assumed that '()
472 was false.
473
474 Mon Jan 6 01:13:53 1997 Mikael Djurfeldt <mdj@kenneth>
475
476 * boot-9.scm (use-modules): New macro (from Marius Vollmer).
477 (use-modules <module name> ...) Put the the modules named by
478 <module name> ... on the use list of the current module.
479
480 Sun Jan 5 15:52:59 1997 Jim Blandy <jimb@floss.cyclic.com>
481
482 * boot-9.scm (error-catching-loop): Remove message saying that
483 typing "$" will put you in the debugger. This isn't implemented
484 yet.
485
486 Sun Dec 22 23:27:25 1996 Jim Blandy <jimb@floss.cyclic.com>
487
488 * boot-9.scm (delq-all!): Function deleted; delq!'s semantics have
489 been fixed, so this function is superfluous.
490 (transform-usage-lambda): Use delq!, not delq-all!.
491
492 Tue Dec 17 20:36:45 1996 Marius Vollmer <mvo@zagadka.ping.de>
493
494 * boot-9.scm (resolve-module): New optional parameter that
495 controls whether autoloading is attempted or not. Default is #t.
496 (process-define-module): Don't autoload the defined module.
497 (try-module-autoload): Don't autoload the directory modules.
498
499 * boot-9.scm (process-define-module): Ensure that the-scm-module
500 is last in the `uses' list to allow shadowing builtin
501 bindings. All :use-module options are added in the order they
502 appear in the arguments but before anything already on the list
503 (such as the-scm-module).
504
505 Wed Dec 11 21:06:05 1996 Gary Houston <ghouston@actrix.gen.nz>
506
507 * slib.scm (slib-parent-dir): throw error if #f returned from
508 %search-load-path.
509
510 Sat Nov 30 23:57:28 1996 Tom Tromey <tromey@cygnus.com>
511
512 * PLUGIN/greet, PLUGIN/split.sed, PLUGIN/this.configure: Removed.
513 * Makefile.am, aclocal.m4: New files.
514 * configure.in: Updated for Automake.
515
516 Wed Nov 27 14:16:14 1996 Marius Vollmer <mvo@zagadka.ping.de>
517
518 * boot-9.scm (macroexpand-1, macroexpand), slib.scm
519 (slib:features), r4rs.scm (%load-verbosely): "defined?" is now a
520 function, use it accordingly.
521
522 Thu Nov 21 11:12:10 1996 Jim Blandy <jimb@floss.cyclic.com>
523
524 It's an "eval closure", not an "eval thunk." A thunk is a
525 function of no arguments.
526 * boot-9.scm (module-type): Rename module field.
527 (make-module, eval-in-module, make-root-module,
528 set-current-module): Uses changed.
529 (module-eval-closure, set-module-eval-closure!,
530 root-module-closure): Renamed from module-eval-thunk,
531 set-module-eval-thunk!, root-module-thunk.
532 (set-current-module): Change uses of *top-level-lookup-thunk* to
533 *top-level-eval-closure*.
534
535 Wed Nov 20 14:45:27 1996 Jim Blandy <jimb@totoro.cyclic.com>
536
537 * slib.scm (slib-parent-dir): Use string-length, not length.
538 (Thanks to Bernard Urban.)
539
540 Sat Nov 2 20:00:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
541
542 * boot-9.scm: The debugging evaluator and recording of positions
543 aren't enabled by default any longer (they are switched on in
544 debug.scm). But during development we want to have them also
545 *inside* boot-9.scm. Therefore, two lines are added at the
546 beginning of boot-9.scm to enable these.
547
548 Call `provide' so that `records' are included among the
549 `*features*'.
550
551 The scheme for saving the stack has been adjusted: save-stack is
552 now commonly available for saving the stack. Calling `save-stack'
553 sets a flag `stack-saved?' which prevents overwriting the stack.
554 `stack-saved?' is reset at `abort'.
555
556 Spelling correction: seperate --> separate.
557
558 Removed `:'s that had creeped into some comments.
559
560 The repl now doesn't print #<unspecified> results any longer
561 If the user wants to see this, he can do
562 (assert-repl-print-unspecified #t) in his startup file.
563
564 The user now gets a friendly message instead of a backtrace at
565 error.
566
567 Added `before-read-hook'.
568
569 Load module (ice-9 emacs) if option `-e' was specified.
570
571 (provide): New function.
572
573 (error): Save stack at entry, so that Guile entrails won't show up
574 in backtraces.
575
576 (backtrace): New function.
577
578 (save-stack): Can now take arbitrary number of stack narrowing
579 specifier pairs. The first specifier in a pair controls inner
580 border, the second the outer border. A number means cut that
581 number of frames, a procedure object means cut until that object
582 is found in operator position in a frame.
583
584 * debug.scm: Enable debugging evaluator and recording of positions
585 by default.
586
587 * slib.scm (slib:load): Adapt to the new behavior of
588 primitive-load: It doesn't any longer try both with and without
589 ".scm" extension. (We don't want to use %search-load-path here.)
590
591 (implementation-vicinity): New function. slib requires it
592
593 (library-vicinity): Updated.
594
595 Load "require.scm" in the library-vicinity.
596
597 (install-require-vicinity, install-require-module): New functions.
598
599 Mon Oct 28 17:56:29 1996 Jim Blandy <jimb@floss.cyclic.com>
600
601 * boot-9.scm (load-from-path): New function.
602
603 * boot-9.scm (try-load, basic-try-load, try-load-module,
604 try-load): Deleted. I don't think they're being used.
605
606 * Makefile.in (scm_files): Add r4rs.scm and test.scm to this list,
607 so they'll get distributed.
608
609 Get Guile to be a little less chatty by default. The new user
610 should see as little clutter as possible.
611 * r4rs.scm (%load-verbosely): Make this #f by default.
612 * boot-9.scm (scm-repl-verbose): Make this #f by default.
613 (scm-style-repl): Don't run 'pk' on the value passed to quit.
614
615 * r4rs.scm: New file.
616 * boot-9.scm: Load r4rs.scm, first thing.
617 (OPEN_READ, OPEN_WRITE, OPEN_BOTH, *null-device*, open-input-file,
618 open-output-file, open-io-file, close-input-port,
619 close-output-port, close-io-port, call-with-input-file,
620 call-with-output-file, with-input-from-port, with-output-to-port,
621 with-error-to-port, with-input-from-file, with-output-to-file,
622 with-error-to-file, with-input-from-string, with-output-to-string,
623 with-error-to-string, the-eof-object): Definitions moved to
624 r4rs.scm. Not all of them are R4RS, but those that are use those
625 that are not.
626 (load, %load-verbosely, %load-announce): Moved, along with code to
627 set %load-hook, to r4rs.scm.
628
629 * test.scm: New file.
630
631 * boot-9.scm (integer?): Definition deleted, in favor of the one
632 present in libguile (which used to be called int?). I have no
633 idea why integer? didn't just call int? to begin with.
634
635 * boot-9.scm (<, <=, =, >, >=): Definitions in terms of <?, <=?,
636 =?, >?, and >=? deleted; they're defined that way by libguile now.
637
638 * boot-9.scm (load): Simplified; primitive-load does most of this
639 work now.
640 (%load-announce-win): Removed; no longer used. Set %load-hook to
641 call %load-announce.
642
643 Sun Oct 27 07:47:03 1996 Gary Houston <ghouston@actrix.gen.nz>
644
645 * boot-9.scm (stat:dev, stat:ino, stat:mode, stat:nlink, stat:uid,
646 stat:gid, stat:rdev, stat:size, stat:atime, stat:mtime,
647 stat:ctime, stat:blksize, stat:blocks) accessor functions for stat
648 components.
649 (file-is-directory?): use stat:type.
650
651 Fri Oct 25 03:34:47 1996 Jim Blandy <jimb@floss.cyclic.com>
652
653 * boot-9.scm (%read-sharp): Don't recognize the `#!' syntax here;
654 that's now taken care of in libguile, and in a way compatible with
655 SCSH (which this isn't).
656
657 Mon Oct 21 18:52:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
658
659 * boot-9.scm: Formatting tweaks.
660
661 Fri Oct 18 01:03:08 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
662
663 * boot-9.scm (handle-system-error): Added hooks before-error-hook,
664 after-error-hook, before-backtrace-hook and after-backtrace-hook
665 to the error handler. E.g.: fancy emacs support could plug into
666 these.
667 (save-stack): New function. The stack is now made differently
668 depending on the stack id. (The motivation is to make a better
669 choice regarding what stack frames to present to the user.)
670 (error-catching-loop): Stack handling code moved outside into
671 save-stack.
672
673 Thu Oct 17 20:33:08 1996 Gary Houston <ghouston@actrix.gen.nz>
674
675 * Makefile.in (scm_files): add expect.scm.
676
677 * expect.scm: new file ported from guile-iii.
678
679 * boot-9.scm: remove handle-system-error, after moving the code into
680 error-catching-loop.
681 Don't set 'throw-handler-default property on error keys.
682 Just interpret (almost) any throw with 4 args as an error throw.
683 Delete some try-load stuff that was already commented out.
684
685 Second thoughts, keep handle-system-error but call it from
686 error-catching-loop.
687
688 Tue Oct 15 17:07:20 1996 Jim Blandy <jimb@floss.cyclic.com>
689
690 * boot-9.scm: Doc fixes.
691 (make-module): Rework for readability.
692 (make-root-module, make-scm-module): USES argument to make-module
693 should be '(), not #f.
694
695 * boot-9.scm (try-load): %sys-load-path has been renamed to
696 primitive-load-path; adjust call here.
697
698 Tue Oct 15 14:25:01 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
699
700 * boot-9.scm (signal-handler): Bugfix: Moved the recording of
701 the stack to the correct place: when it is decided to generate an
702 error-signal.
703
704 Mon Oct 14 22:20:30 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
705
706 * boot-9.scm (error-catching-loop, signal-handler,
707 handle-system-error): Backtracing now works for signals aswell;
708 Backtracing mechanism can now identify the stack root created by
709 start-stack so that the user isn't exposed to system stack frames.
710
711 Mon Oct 14 06:05:42 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
712
713 * Makefile.in: Added threads.scm.
714
715 Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
716
717 * debug.scm (make-enable, make-disable): Simplified.
718
719 * boot-9.scm: Renamed %%throw-handler-default -->
720 throw-handler-default.
721 ((handle-system-error key . arg-list)): Changed the way errors are
722 reported.
723 ((scm-style-repl)): Wrap up the call to eval in a start-stack
724 acro.
725 ((error-catching-loop thunk)): Introduce a lazy-catch into
726 error-catching-loop so that the stack can be captured.
727
728 Thu Oct 10 22:27:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
729
730 * mapping.scm (hash-table-mapping): Explicitly request that
731 make-vector fill new vectors with '(); this will make it easier to
732 port Guile Scheme code to other Schemes.
733 * boot-9.scm (make-print-style, make-print-table): Same.
734
735 Sun Oct 6 03:54:59 1996 Gary Houston <ghouston@actrix.gen.nz>
736
737 * boot-9.scm (load): rewritten again.
738 Append "." to the default %load-path.
739 (feature?): new function: checks for a symbol in the features list.
740 (module-local-variable): remove apparently useless (caddr (list m v
741 ...))
742 (%load-announce): minor formatting change.
743 (file-exists?): use access? if posix is featured.
744 (file-is-directory?): use stat if i/o-extensions is featured.
745 (try-module-autoload module-name): use file-exists? before
746 file-is-directory?
747
748 Sat Oct 5 18:54:03 1996 Mikael Djurfeldt <mdj@kenneth>
749
750 * boot-9.scm: Added conditional loading of threads.scm.
751
752 * threads.scm: New file. Modified from the Cygnus-r0.3
753 distribution.
754
755 * boot-9.scm (error-catching-loop): Added handling of key
756 `switch-repl'.
757
758 * boot-9.scm: Name change %%bad-throw --> bad-throw.
759
760 Wed Oct 2 23:38:44 1996 Jim Blandy <jimb@totoro.cyclic.com>
761
762 * boot-9.scm (make-record-type, record-constructor): Don't assume
763 the empty list is false when parsing the argument list.
764
765 Mon Sep 30 22:15:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
766
767 * boot-9.scm (signal-handler): Clean up logic.
768
769 * boot-9.scm (load): Assume %load-path is always bound.
770
771 Sat Sep 28 00:15:37 1996 Gary Houston <ghouston@actrix.gen.nz>
772
773 * boot-9.scm (error): replace another throw with scm-error. Throw
774 to 'misc-error instead of 'error (no need to distinguish these.)
775 Don't set up 'error as a key.
776 Set up regex-error as a key, if regex is available.
777 (signal-handler): use scm-error, not throw.
778
779 (%try-load, try-load-with-path, %load, load-with-path,
780 basic-try-load-with-path, basic-load-with-path,
781 try-load-module-with-path,load-module-with-path): deleted, since
782 they seem redundant.
783 (try-load): define using %try-load, not try-load-with-path.
784 (load): rewritten. load tries to open the file directly and
785 with a .scm extension before searching the library directories
786 (should "." be added to %load-path? then load could still open
787 directly files starting with "/").
788 (try-module-autoload): use load, not load-with-path.
789 (%load-indent): deleted, -2 was causing errors.
790
791 (%read-sharp): use port-line, not line-number.
792
793 Fri Sep 27 16:23:51 1996 Jim Blandy <jimb@totoro.cyclic.com>
794
795 * boot-9.scm (%%bad-throw): Delete definition. 1) It's very
796 straightforward to provide the equivalent functionality using
797 (catch #t ...), so there's no need for the extra complexity. 2)
798 Outside the context of a read-eval-print loop (which Guile should
799 not require) it's not clear we should do anything more complicated
800 than print an error and exit; the user or REPL can establish
801 something better if it wants. 3) In that case, it's much more
802 robust to just do it in the C code.
803
804 Tue Sep 24 06:53:04 1996 Gary Houston <ghouston@actrix.gen.nz>
805
806 * boot-9.scm (%try-load): define using primitive-load. Previously
807 %try-load itself was the primitive.
808 (load-with-path): use scm-error instead of %load-announce-lossage.
809 Errors are thrown to 'misc-error instead of 'could-not-load.
810 (%load-announce-lossage): deleted.
811
812 Mon Sep 23 00:16:31 1996 Mikael Djurfeldt <mdj@kenneth>
813
814 * boot-9.scm (warn, scm-style-repl): Use C printer instead of `print'.
815 (make-record-type type-name fields): Temporarily remove support
816 for printing of records (not possible yet with C printer).
817
818 Fri Sep 20 00:24:27 1996 Gary Houston <ghouston@actrix.gen.nz>
819
820 * boot-9.scm (file-exists?, file-is-directory): catch only
821 system-error, not every kind of error.
822 (scm-error): new procedure.
823
824 Thu Sep 19 16:02:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
825
826 * boot-9.scm: Formatting tweaks.
827
828 Wed Sep 18 09:07:37 1996 Gary Houston <ghouston@actrix.gen.nz>
829
830 * boot-9.scm (%%handle-system-error key): remove the code for
831 SCM-style errors. handle the case that an unexpected number
832 of args are supplied.
833 (%%system-errors): removed.
834 (error): redefine using a throw with key and 4 args.
835 ('error): associate 'error, 'error-signal keys with
836 %%handle-system-error.
837 (%%default-error-handler): removed.
838 (signal-handler): throw with 4 args and use the error-signal key.
839 Create an error message instead of using numerical codes.
840 (%%bad-throw): call error instead of throw if key not found.
841
842 Tue Sep 17 04:11:28 1996 Gary Houston <ghouston@actrix.gen.nz>
843
844 * boot-9.scm: initialize new error keys (see libguile/ChangeLog).
845 (%%handle-system-error key): check subr is not #f before printing.
846 Recognize %s (embed an argument using "display") and
847 %S (embed an argument using "write").
848
849 Sun Sep 15 03:55:35 1996 Gary Houston <ghouston@actrix.gen.nz>
850
851 * boot-9.scm (%%handle-system-error key): set args and rest to
852 the empty list if they are #f.
853 Initialize out-of-range as an error key.
854
855 Sat Sep 14 03:41:15 1996 Gary Houston <ghouston@actrix.gen.nz>
856
857 * PLUGIN/REQ: remove the "ice-9 lgh" line which causes a cycle.
858
859 * boot-9.scm: remove leading %% from references to '%%system-error.
860 (%%handle-system-error): don't pass all the thrown arguments when
861 aborting, just the key and subr.
862 Remove the code to "Install default handlers for built-in errors."
863 Remove the definition of the syserror procedure.
864 Associate 'numerical-overflow with default handler.
865
866 Fri Sep 13 04:58:11 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
867
868 * boot-9.scm: Name change: value-ref --> local-ref
869 resolved-ref --> nested-ref Motivation: conformance to the other
870 dictionary operators: list-ref operates on list, vector-ref
871 operates on vector, nested-ref operates on nested namespace,
872 local-ref operates on the local nested namespace.
873
874 Sat Sep 7 06:44:47 1996 Gary Houston <ghouston@actrix.gen.nz>
875
876 * boot-9.scm (%%handle-system-error): recognise errors thrown
877 by lgh-error (fill-message etc.)
878 (fill-message): check first whether args is null.
879 (fill-message): bug fix and check that args is a list.
880
881 Thu Sep 5 11:33:41 1996 Jim Blandy <jimb@floss.cyclic.com>
882
883 * boot-9.scm: %load-path is initialized in C code now.
884 (implementation-vicinity, parse-path): Deleted, along with code to
885 initialize %load-path.
886
887 * boot-9.scm (in-vicinity): If the vicinity doesn't end with a
888 "/", use one to separate it from the file.
889
890 Thu Aug 29 23:05:11 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
891
892 * boot-9.scm (%load-path): Add the site directory.
893 Add the directory named after the version number.
894 Prepend the version number to the other directories in the path.
895 Simplify by mapping the common prefix onto each item.
896 * Makefile.in (datadir, pkgdatadir, pkgverdatadir, subpkgdatadir,
897 sitedatadir): New definitions.
898 (libparent, libdir, install_path): Replaced by above.
899 (install): Create the above directories.
900 Put the source files into subpkgdatadir.
901 (uninstall): Remove the above directories.
902
903 Thu Aug 29 21:48:47 1996 Jim Blandy <jimb@floss.cyclic.com>
904
905 Don't use the PLUGIN system to gather information for the
906 Makefile's distribution and installation targets; just put it all
907 in the Makefile directly.
908 * PLUGIN/this.configure (scm_files, aux_files): Remove sections
909 for these.
910 * configure.in: Remove code that gets and substitutes scm_files and
911 aux_files.
912 * Makefile.in (scm_files, aux_files): Write out the list of files
913 here, where people expect to find them.
914
915 Fri Aug 23 06:44:36 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
916
917 * boot-9.scm: Preliminary solution: optionally load the debug
918 module. Changed "gls" to "guile1.0b3".
919
920 * debug.scm: New file: debug extensions.
921
922 Wed Aug 21 13:06:56 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
923
924 * boot-9.scm (print-vector): Renamed weak-hash-table? -->
925 weak-key-hash-table?. (Again!)
926
927 Tue Aug 20 07:31:39 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
928
929 * boot-9.scm (print-vector, macro-table, xformer-table):
930 Renamed weak-hash-table --> weak-key-hash-table.
931
932 * poe.scm (funcq-memo): Renamed weak-hash-table -->
933 weak-key-hash-table.
934
935 Sat Aug 3 06:16:35 1996 Gary Houston <ghouston@actrix.gen.nz>
936
937 * boot-9.scm (*null-device*): global constant from goonix.
938 (move->fdes): adjusted for boolean primitive-move->fdes. return
939 the modified port, always set revealed count to 1 (SCSH compatible).
940 (release-port-handle port): from goonix (SCSH compatible).
941 (%open-file): removed.
942 (open-input-file, open-output-file, file-exists?, file-is-directory?):
943 modified for open-file change (does not return #f).
944
945 Thu Aug 1 02:52:42 1996 Jim Blandy <jimb@totoro.cyclic.com>
946
947 * Makefile.in (dist-dir): New target for new dist system.
948 (manifest): Deleted.
949 * PLUGIN/this.configure (aux_files): Removed PLUGIN; it's a
950 directory, and needs special treatment in the dist-dir target.
951
952 Thu Aug 1 09:00:21 1996 Gary Houston <ghouston@actrix.gen.nz>
953
954 * boot-9.scm: remove the wrappers for '%' system primitives,
955 now that they throw errors directly.
956 remove make-simple-wrapper and similar functions.
957 protect a call to getenv which may now throw an exception.
958
959 Wed Jul 31 23:44:42 1996 Gary Houston <ghouston@actrix.gen.nz>
960
961 * boot-9.scm (false-if-exception): new macro.
962
963 Fri Apr 19 13:53:08 1996 Tom Lord <lord@beehive>
964
965 * The more things change...
966
967