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