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