* * boot-9.scm (resolve-module): New optional parameter that
[bpt/guile.git] / ice-9 / ChangeLog
CommitLineData
00f06035
GH
1Wed Dec 11 21:06:05 1996 Gary Houston <ghouston@actrix.gen.nz>
2
3 * slib.scm (slib-parent-dir): throw error if #f returned from
4 %search-load-path.
5
733943b9
TT
6Sat Nov 30 23:57:28 1996 Tom Tromey <tromey@cygnus.com>
7
8 * PLUGIN/greet, PLUGIN/split.sed, PLUGIN/this.configure: Removed.
9 * Makefile.am, aclocal.m4: New files.
10 * configure.in: Updated for Automake.
11
84abd243
MV
12Wed Nov 27 14:16:14 1996 Marius Vollmer <mvo@zagadka.ping.de>
13
14 * boot-9.scm (macroexpand-1, macroexpand), slib.scm
15 (slib:features), r4rs.scm (%load-verbosely): "defined?" is now a
16 function, use it accordingly.
17
a31bc6fb
JB
18Thu Nov 21 11:12:10 1996 Jim Blandy <jimb@floss.cyclic.com>
19
20 It's an "eval closure", not an "eval thunk." A thunk is a
21 function of no arguments.
22 * boot-9.scm (module-type): Rename module field.
23 (make-module, eval-in-module, make-root-module,
24 set-current-module): Uses changed.
25 (module-eval-closure, set-module-eval-closure!,
26 root-module-closure): Renamed from module-eval-thunk,
27 set-module-eval-thunk!, root-module-thunk.
28 (set-current-module): Change uses of *top-level-lookup-thunk* to
29 *top-level-eval-closure*.
30
3763761c
JB
31Wed Nov 20 14:45:27 1996 Jim Blandy <jimb@totoro.cyclic.com>
32
33 * slib.scm (slib-parent-dir): Use string-length, not length.
34 (Thanks to Bernard Urban.)
35
7ad737b6
MD
36Sat Nov 2 20:00:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
37
38* * boot-9.scm: The debugging evaluator and recording of positions
39 aren't enabled by default any longer (they are switched on in
40 debug.scm). But during development we want to have them also
41 *inside* boot-9.scm. Therefore, two lines are added at the
42 beginning of boot-9.scm to enable these.
43
44 Call `provide' so that `records' are included among the
45 `*features*'.
46
47 The scheme for saving the stack has been adjusted: save-stack is
48 now commonly available for saving the stack. Calling `save-stack'
49 sets a flag `stack-saved?' which prevents overwriting the stack.
50 `stack-saved?' is reset at `abort'.
51
52 Spelling correction: seperate --> separate.
53
54 Removed `:'s that had creeped into some comments.
55
56* The repl now doesn't print #<unspecified> results any longer
57 If the user wants to see this, he can do
58 (assert-repl-print-unspecified #t) in his startup file.
59
60* The user now gets a friendly message instead of a backtrace at
61 error.
62
63 Added `before-read-hook'.
64
65 Load module (ice-9 emacs) if option `-e' was specified.
66
67 (provide): New function.
68
69 (error): Save stack at entry, so that Guile entrails won't show up
70 in backtraces.
71
72 (backtrace): New function.
73
74* (save-stack): Can now take arbitrary number of stack narrowing
75 specifier pairs. The first specifier in a pair controls inner
76 border, the second the outer border. A number means cut that
77 number of frames, a procedure object means cut until that object
78 is found in operator position in a frame.
79
80 * debug.scm: Enable debugging evaluator and recording of positions
81 by default.
82
83 * slib.scm (slib:load): Adapt to the new behavior of
84 primitive-load: It doesn't any longer try both with and without
85 ".scm" extension. (We don't want to use %search-load-path here.)
86
87 (implementation-vicinity): New function. slib requires it
88
89 (library-vicinity): Updated.
90
91 Load "require.scm" in the library-vicinity.
92
93 (install-require-vicinity, install-require-module): New functions.
94
99f97bfe
JB
95Mon Oct 28 17:56:29 1996 Jim Blandy <jimb@floss.cyclic.com>
96
581a242b
JB
97 * boot-9.scm (load-from-path): New function.
98
99 * boot-9.scm (try-load, basic-try-load, try-load-module,
100 try-load): Deleted. I don't think they're being used.
101
48be3fb3
JB
102 * Makefile.in (scm_files): Add r4rs.scm and test.scm to this list,
103 so they'll get distributed.
104
105 Get Guile to be a little less chatty by default. The new user
106 should see as little clutter as possible.
107 * r4rs.scm (%load-verbosely): Make this #f by default.
108 * boot-9.scm (scm-repl-verbose): Make this #f by default.
109 (scm-style-repl): Don't run 'pk' on the value passed to quit.
110
111 * r4rs.scm: New file.
112 * boot-9.scm: Load r4rs.scm, first thing.
113 (OPEN_READ, OPEN_WRITE, OPEN_BOTH, *null-device*, open-input-file,
114 open-output-file, open-io-file, close-input-port,
115 close-output-port, close-io-port, call-with-input-file,
116 call-with-output-file, with-input-from-port, with-output-to-port,
117 with-error-to-port, with-input-from-file, with-output-to-file,
118 with-error-to-file, with-input-from-string, with-output-to-string,
119 with-error-to-string, the-eof-object): Definitions moved to
120 r4rs.scm. Not all of them are R4RS, but those that are use those
121 that are not.
122 (load, %load-verbosely, %load-announce): Moved, along with code to
123 set %load-hook, to r4rs.scm.
124
125 * test.scm: New file.
126
127 * boot-9.scm (integer?): Definition deleted, in favor of the one
128 present in libguile (which used to be called int?). I have no
129 idea why integer? didn't just call int? to begin with.
130
131 * boot-9.scm (<, <=, =, >, >=): Definitions in terms of <?, <=?,
132 =?, >?, and >=? deleted; they're defined that way by libguile now.
133
99f97bfe
JB
134 * boot-9.scm (load): Simplified; primitive-load does most of this
135 work now.
136 (%load-announce-win): Removed; no longer used. Set %load-hook to
137 call %load-announce.
138
3afb28ce
GH
139Sun Oct 27 07:47:03 1996 Gary Houston <ghouston@actrix.gen.nz>
140
4fe3604d
JB
141 * boot-9.scm (stat:dev, stat:ino, stat:mode, stat:nlink, stat:uid,
142 stat:gid, stat:rdev, stat:size, stat:atime, stat:mtime,
143 stat:ctime, stat:blksize, stat:blocks) accessor functions for stat
144 components.
3afb28ce
GH
145 (file-is-directory?): use stat:type.
146
3065a62a
JB
147Fri Oct 25 03:34:47 1996 Jim Blandy <jimb@floss.cyclic.com>
148
149 * boot-9.scm (%read-sharp): Don't recognize the `#!' syntax here;
150 that's now taken care of in libguile, and in a way compatible with
151 SCSH (which this isn't).
152
e4c5095f
JB
153Mon Oct 21 18:52:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
154
155 * boot-9.scm: Formatting tweaks.
156
1bb961a3
MD
157Fri Oct 18 01:03:08 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
158
159 * boot-9.scm (handle-system-error): Added hooks before-error-hook,
160 after-error-hook, before-backtrace-hook and after-backtrace-hook
161 to the error handler. E.g.: fancy emacs support could plug into
162 these.
163 (save-stack): New function. The stack is now made differently
164 depending on the stack id. (The motivation is to make a better
165 choice regarding what stack frames to present to the user.)
166 (error-catching-loop): Stack handling code moved outside into
167 save-stack.
168
9a0d70e2
GH
169Thu Oct 17 20:33:08 1996 Gary Houston <ghouston@actrix.gen.nz>
170
d7189b49
GH
171 * Makefile.in (scm_files): add expect.scm.
172
173 * expect.scm: new file ported from guile-iii.
174
9a0d70e2
GH
175 * boot-9.scm: remove handle-system-error, after moving the code into
176 error-catching-loop.
177 Don't set 'throw-handler-default property on error keys.
178 Just interpret (almost) any throw with 4 args as an error throw.
179 Delete some try-load stuff that was already commented out.
180
35c5db87
GH
181 Second thoughts, keep handle-system-error but call it from
182 error-catching-loop.
183
d065b65f
JB
184Tue Oct 15 17:07:20 1996 Jim Blandy <jimb@floss.cyclic.com>
185
aa9576ad
JB
186 * boot-9.scm: Doc fixes.
187 (make-module): Rework for readability.
188 (make-root-module, make-scm-module): USES argument to make-module
189 should be '(), not #f.
190
d065b65f
JB
191 * boot-9.scm (try-load): %sys-load-path has been renamed to
192 primitive-load-path; adjust call here.
193
c01c94bf
MD
194Tue Oct 15 14:25:01 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
195
d065b65f 196 * boot-9.scm (signal-handler): Bugfix: Moved the recording of
c01c94bf
MD
197 the stack to the correct place: when it is decided to generate an
198 error-signal.
199
2dfc85c0
MD
200Mon Oct 14 22:20:30 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
201
202 * boot-9.scm (error-catching-loop, signal-handler,
203 handle-system-error): Backtracing now works for signals aswell;
204 Backtracing mechanism can now identify the stack root created by
205 start-stack so that the user isn't exposed to system stack frames.
206
84d8ad97
MD
207Mon Oct 14 06:05:42 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
208
209 * Makefile.in: Added threads.scm.
210
4f0292cf
MD
211Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
212
213 * debug.scm (make-enable, make-disable): Simplified.
214
215 * boot-9.scm: Renamed %%throw-handler-default -->
216 throw-handler-default.
217 ((handle-system-error key . arg-list)): Changed the way errors are
218 reported.
219 ((scm-style-repl)): Wrap up the call to eval in a start-stack
220 acro.
221 ((error-catching-loop thunk)): Introduce a lazy-catch into
222 error-catching-loop so that the stack can be captured.
223
1eaceb61
JB
224Thu Oct 10 22:27:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
225
226 * mapping.scm (hash-table-mapping): Explicitly request that
227 make-vector fill new vectors with '(); this will make it easier to
228 port Guile Scheme code to other Schemes.
229 * boot-9.scm (make-print-style, make-print-table): Same.
230
6fa8995c
GH
231Sun Oct 6 03:54:59 1996 Gary Houston <ghouston@actrix.gen.nz>
232
233 * boot-9.scm (load): rewritten again.
234 Append "." to the default %load-path.
235 (feature?): new function: checks for a symbol in the features list.
236 (module-local-variable): remove apparently useless (caddr (list m v
237 ...))
238 (%load-announce): minor formatting change.
239 (file-exists?): use access? if posix is featured.
240 (file-is-directory?): use stat if i/o-extensions is featured.
241 (try-module-autoload module-name): use file-exists? before
242 file-is-directory?
243
8b4a21d1
MD
244Sat Oct 5 18:54:03 1996 Mikael Djurfeldt <mdj@kenneth>
245
8acae5bb
MD
246 * boot-9.scm: Added conditional loading of threads.scm.
247
248 * threads.scm: New file. Modified from the Cygnus-r0.3
249 distribution.
250
8b4a21d1
MD
251 * boot-9.scm (error-catching-loop): Added handling of key
252 `switch-repl'.
253
254 * boot-9.scm: Name change %%bad-throw --> bad-throw.
255
c90c9685
JB
256Wed Oct 2 23:38:44 1996 Jim Blandy <jimb@totoro.cyclic.com>
257
258 * boot-9.scm (make-record-type, record-constructor): Don't assume
259 the empty list is false when parsing the argument list.
260
261Mon Sep 30 22:15:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
262
263 * boot-9.scm (signal-handler): Clean up logic.
264
265 * boot-9.scm (load): Assume %load-path is always bound.
266
5552355a
GH
267Sat Sep 28 00:15:37 1996 Gary Houston <ghouston@actrix.gen.nz>
268
269 * boot-9.scm (error): replace another throw with scm-error. Throw
270 to 'misc-error instead of 'error (no need to distinguish these.)
271 Don't set up 'error as a key.
272 Set up regex-error as a key, if regex is available.
273 (signal-handler): use scm-error, not throw.
274
275* (%try-load, try-load-with-path, %load, load-with-path,
276 basic-try-load-with-path, basic-load-with-path,
277 try-load-module-with-path,load-module-with-path): deleted, since
278 they seem redundant.
279 (try-load): define using %try-load, not try-load-with-path.
280* (load): rewritten. load tries to open the file directly and
281 with a .scm extension before searching the library directories
282 (should "." be added to %load-path? then load could still open
283 directly files starting with "/").
284 (try-module-autoload): use load, not load-with-path.
285 (%load-indent): deleted, -2 was causing errors.
286
287 (%read-sharp): use port-line, not line-number.
288
c90c9685
JB
289Fri Sep 27 16:23:51 1996 Jim Blandy <jimb@totoro.cyclic.com>
290
291 * boot-9.scm (%%bad-throw): Delete definition. 1) It's very
292 straightforward to provide the equivalent functionality using
293 (catch #t ...), so there's no need for the extra complexity. 2)
294 Outside the context of a read-eval-print loop (which Guile should
295 not require) it's not clear we should do anything more complicated
296 than print an error and exit; the user or REPL can establish
297 something better if it wants. 3) In that case, it's much more
298 robust to just do it in the C code.
299
855c0eac
GH
300Tue Sep 24 06:53:04 1996 Gary Houston <ghouston@actrix.gen.nz>
301
302 * boot-9.scm (%try-load): define using primitive-load. Previously
303 %try-load itself was the primitive.
304 (load-with-path): use scm-error instead of %load-announce-lossage.
305 Errors are thrown to 'misc-error instead of 'could-not-load.
306 (%load-announce-lossage): deleted.
307
a0c97697
MD
308Mon Sep 23 00:16:31 1996 Mikael Djurfeldt <mdj@kenneth>
309
310 * boot-9.scm (warn, scm-style-repl): Use C printer instead of `print'.
311 (make-record-type type-name fields): Temporarily remove support
312 for printing of records (not possible yet with C printer).
313
be2d2c70
GH
314Fri Sep 20 00:24:27 1996 Gary Houston <ghouston@actrix.gen.nz>
315
316 * boot-9.scm (file-exists?, file-is-directory): catch only
317 system-error, not every kind of error.
318 (scm-error): new procedure.
319
434bf5ce
JB
320Thu Sep 19 16:02:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
321
322 * boot-9.scm: Formatting tweaks.
323
2194b6f0
GH
324Wed Sep 18 09:07:37 1996 Gary Houston <ghouston@actrix.gen.nz>
325
326 * boot-9.scm (%%handle-system-error key): remove the code for
327 SCM-style errors. handle the case that an unexpected number
328 of args are supplied.
329 (%%system-errors): removed.
330 (error): redefine using a throw with key and 4 args.
331 ('error): associate 'error, 'error-signal keys with
332 %%handle-system-error.
333 (%%default-error-handler): removed.
334 (signal-handler): throw with 4 args and use the error-signal key.
335 Create an error message instead of using numerical codes.
336 (%%bad-throw): call error instead of throw if key not found.
337
338Tue Sep 17 04:11:28 1996 Gary Houston <ghouston@actrix.gen.nz>
339
340 * boot-9.scm: initialize new error keys (see libguile/ChangeLog).
341 (%%handle-system-error key): check subr is not #f before printing.
342 Recognize %s (embed an argument using "display") and
343 %S (embed an argument using "write").
344
234f2da6
GH
345Sun Sep 15 03:55:35 1996 Gary Houston <ghouston@actrix.gen.nz>
346
347 * boot-9.scm (%%handle-system-error key): set args and rest to
348 the empty list if they are #f.
349 Initialize out-of-range as an error key.
350
e1724d20
GH
351Sat Sep 14 03:41:15 1996 Gary Houston <ghouston@actrix.gen.nz>
352
40c8906e
GH
353 * PLUGIN/REQ: remove the "ice-9 lgh" line which causes a cycle.
354
e1724d20
GH
355 * boot-9.scm: remove leading %% from references to '%%system-error.
356 (%%handle-system-error): don't pass all the thrown arguments when
357 aborting, just the key and subr.
358 Remove the code to "Install default handlers for built-in errors."
359 Remove the definition of the syserror procedure.
360 Associate 'numerical-overflow with default handler.
361
1a80fb07
MD
362Fri Sep 13 04:58:11 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
363
364 * boot-9.scm: Name change: value-ref --> local-ref
365 resolved-ref --> nested-ref Motivation: conformance to the other
366 dictionary operators: list-ref operates on list, vector-ref
367 operates on vector, nested-ref operates on nested namespace,
368 local-ref operates on the local nested namespace.
369
7cb1d4d3
GH
370Sat Sep 7 06:44:47 1996 Gary Houston <ghouston@actrix.gen.nz>
371
372 * boot-9.scm (%%handle-system-error): recognise errors thrown
373 by lgh-error (fill-message etc.)
9561554c 374 (fill-message): check first whether args is null.
a949b3f2 375 (fill-message): bug fix and check that args is a list.
7cb1d4d3 376
393ee9a8
JB
377Thu Sep 5 11:33:41 1996 Jim Blandy <jimb@floss.cyclic.com>
378
379 * boot-9.scm: %load-path is initialized in C code now.
380 (implementation-vicinity, parse-path): Deleted, along with code to
381 initialize %load-path.
382
383 * boot-9.scm (in-vicinity): If the vicinity doesn't end with a
384 "/", use one to separate it from the file.
385
e4ef46d4
JB
386Thu Aug 29 23:05:11 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
387
388 * boot-9.scm (%load-path): Add the site directory.
389 Add the directory named after the version number.
390 Prepend the version number to the other directories in the path.
391 Simplify by mapping the common prefix onto each item.
392 * Makefile.in (datadir, pkgdatadir, pkgverdatadir, subpkgdatadir,
393 sitedatadir): New definitions.
394 (libparent, libdir, install_path): Replaced by above.
395 (install): Create the above directories.
396 Put the source files into subpkgdatadir.
397 (uninstall): Remove the above directories.
398
00312aa3
JB
399Thu Aug 29 21:48:47 1996 Jim Blandy <jimb@floss.cyclic.com>
400
401 Don't use the PLUGIN system to gather information for the
402 Makefile's distribution and installation targets; just put it all
403 in the Makefile directly.
404 * PLUGIN/this.configure (scm_files, aux_files): Remove sections
405 for these.
406 * configure.in: Remove code that gets and substitutes scm_files and
407 aux_files.
408 * Makefile.in (scm_files, aux_files): Write out the list of files
409 here, where people expect to find them.
410
96a8aaf3
MD
411Fri Aug 23 06:44:36 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
412
413 * boot-9.scm: Preliminary solution: optionally load the debug
7685f77c 414 module. Changed "gls" to "guile1.0b3".
96a8aaf3
MD
415
416 * debug.scm: New file: debug extensions.
417
4e378733
MD
418Wed Aug 21 13:06:56 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
419
420 * boot-9.scm (print-vector): Renamed weak-hash-table? -->
421 weak-key-hash-table?. (Again!)
422
0190d683
MD
423Tue Aug 20 07:31:39 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
424
425 * boot-9.scm (print-vector, macro-table, xformer-table):
426 Renamed weak-hash-table --> weak-key-hash-table.
427
428 * poe.scm (funcq-memo): Renamed weak-hash-table -->
429 weak-key-hash-table.
430
8b13c6b3
GH
431Sat Aug 3 06:16:35 1996 Gary Houston <ghouston@actrix.gen.nz>
432
433 * boot-9.scm (*null-device*): global constant from goonix.
434 (move->fdes): adjusted for boolean primitive-move->fdes. return
435 the modified port, always set revealed count to 1 (SCSH compatible).
436 (release-port-handle port): from goonix (SCSH compatible).
437 (%open-file): removed.
438 (open-input-file, open-output-file, file-exists?, file-is-directory?):
439 modified for open-file change (does not return #f).
440
a44a755d
JB
441Thu Aug 1 02:52:42 1996 Jim Blandy <jimb@totoro.cyclic.com>
442
443 * Makefile.in (dist-dir): New target for new dist system.
444 (manifest): Deleted.
445 * PLUGIN/this.configure (aux_files): Removed PLUGIN; it's a
446 directory, and needs special treatment in the dist-dir target.
447
02b754d3
GH
448Thu Aug 1 09:00:21 1996 Gary Houston <ghouston@actrix.gen.nz>
449
450 * boot-9.scm: remove the wrappers for '%' system primitives,
451 now that they throw errors directly.
452 remove make-simple-wrapper and similar functions.
453 protect a call to getenv which may now throw an exception.
454
455Wed Jul 31 23:44:42 1996 Gary Houston <ghouston@actrix.gen.nz>
456
457 * boot-9.scm (false-if-exception): new macro.
458
0f2d19dd
JB
459Fri Apr 19 13:53:08 1996 Tom Lord <lord@beehive>
460
461 * The more things change...
462
463