1 Sat Nov 2 20:00:42 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
3 * * boot-9.scm: The debugging evaluator and recording of positions
4 aren't enabled by default any longer (they are switched on in
5 debug.scm). But during development we want to have them also
6 *inside* boot-9.scm. Therefore, two lines are added at the
7 beginning of boot-9.scm to enable these.
9 Call `provide' so that `records' are included among the
12 The scheme for saving the stack has been adjusted: save-stack is
13 now commonly available for saving the stack. Calling `save-stack'
14 sets a flag `stack-saved?' which prevents overwriting the stack.
15 `stack-saved?' is reset at `abort'.
17 Spelling correction: seperate --> separate.
19 Removed `:'s that had creeped into some comments.
21 * The repl now doesn't print #<unspecified> results any longer
22 If the user wants to see this, he can do
23 (assert-repl-print-unspecified #t) in his startup file.
25 * The user now gets a friendly message instead of a backtrace at
28 Added `before-read-hook'.
30 Load module (ice-9 emacs) if option `-e' was specified.
32 (provide): New function.
34 (error): Save stack at entry, so that Guile entrails won't show up
37 (backtrace): New function.
39 * (save-stack): Can now take arbitrary number of stack narrowing
40 specifier pairs. The first specifier in a pair controls inner
41 border, the second the outer border. A number means cut that
42 number of frames, a procedure object means cut until that object
43 is found in operator position in a frame.
45 * debug.scm: Enable debugging evaluator and recording of positions
48 * slib.scm (slib:load): Adapt to the new behavior of
49 primitive-load: It doesn't any longer try both with and without
50 ".scm" extension. (We don't want to use %search-load-path here.)
52 (implementation-vicinity): New function. slib requires it
54 (library-vicinity): Updated.
56 Load "require.scm" in the library-vicinity.
58 (install-require-vicinity, install-require-module): New functions.
60 Mon Oct 28 17:56:29 1996 Jim Blandy <jimb@floss.cyclic.com>
62 * boot-9.scm (load-from-path): New function.
64 * boot-9.scm (try-load, basic-try-load, try-load-module,
65 try-load): Deleted. I don't think they're being used.
67 * Makefile.in (scm_files): Add r4rs.scm and test.scm to this list,
68 so they'll get distributed.
70 Get Guile to be a little less chatty by default. The new user
71 should see as little clutter as possible.
72 * r4rs.scm (%load-verbosely): Make this #f by default.
73 * boot-9.scm (scm-repl-verbose): Make this #f by default.
74 (scm-style-repl): Don't run 'pk' on the value passed to quit.
77 * boot-9.scm: Load r4rs.scm, first thing.
78 (OPEN_READ, OPEN_WRITE, OPEN_BOTH, *null-device*, open-input-file,
79 open-output-file, open-io-file, close-input-port,
80 close-output-port, close-io-port, call-with-input-file,
81 call-with-output-file, with-input-from-port, with-output-to-port,
82 with-error-to-port, with-input-from-file, with-output-to-file,
83 with-error-to-file, with-input-from-string, with-output-to-string,
84 with-error-to-string, the-eof-object): Definitions moved to
85 r4rs.scm. Not all of them are R4RS, but those that are use those
87 (load, %load-verbosely, %load-announce): Moved, along with code to
88 set %load-hook, to r4rs.scm.
92 * boot-9.scm (integer?): Definition deleted, in favor of the one
93 present in libguile (which used to be called int?). I have no
94 idea why integer? didn't just call int? to begin with.
96 * boot-9.scm (<, <=, =, >, >=): Definitions in terms of <?, <=?,
97 =?, >?, and >=? deleted; they're defined that way by libguile now.
99 * boot-9.scm (load): Simplified; primitive-load does most of this
101 (%load-announce-win): Removed; no longer used. Set %load-hook to
104 Sun Oct 27 07:47:03 1996 Gary Houston <ghouston@actrix.gen.nz>
106 * boot-9.scm (stat:dev, stat:ino, stat:mode, stat:nlink, stat:uid,
107 stat:gid, stat:rdev, stat:size, stat:atime, stat:mtime,
108 stat:ctime, stat:blksize, stat:blocks) accessor functions for stat
110 (file-is-directory?): use stat:type.
112 Fri Oct 25 03:34:47 1996 Jim Blandy <jimb@floss.cyclic.com>
114 * boot-9.scm (%read-sharp): Don't recognize the `#!' syntax here;
115 that's now taken care of in libguile, and in a way compatible with
116 SCSH (which this isn't).
118 Mon Oct 21 18:52:36 1996 Jim Blandy <jimb@totoro.cyclic.com>
120 * boot-9.scm: Formatting tweaks.
122 Fri Oct 18 01:03:08 1996 Mikael Djurfeldt <mdj@mdj.nada.kth.se>
124 * boot-9.scm (handle-system-error): Added hooks before-error-hook,
125 after-error-hook, before-backtrace-hook and after-backtrace-hook
126 to the error handler. E.g.: fancy emacs support could plug into
128 (save-stack): New function. The stack is now made differently
129 depending on the stack id. (The motivation is to make a better
130 choice regarding what stack frames to present to the user.)
131 (error-catching-loop): Stack handling code moved outside into
134 Thu Oct 17 20:33:08 1996 Gary Houston <ghouston@actrix.gen.nz>
136 * Makefile.in (scm_files): add expect.scm.
138 * expect.scm: new file ported from guile-iii.
140 * boot-9.scm: remove handle-system-error, after moving the code into
142 Don't set 'throw-handler-default property on error keys.
143 Just interpret (almost) any throw with 4 args as an error throw.
144 Delete some try-load stuff that was already commented out.
146 Second thoughts, keep handle-system-error but call it from
149 Tue Oct 15 17:07:20 1996 Jim Blandy <jimb@floss.cyclic.com>
151 * boot-9.scm: Doc fixes.
152 (make-module): Rework for readability.
153 (make-root-module, make-scm-module): USES argument to make-module
154 should be '(), not #f.
156 * boot-9.scm (try-load): %sys-load-path has been renamed to
157 primitive-load-path; adjust call here.
159 Tue Oct 15 14:25:01 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
161 * boot-9.scm (signal-handler): Bugfix: Moved the recording of
162 the stack to the correct place: when it is decided to generate an
165 Mon Oct 14 22:20:30 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
167 * boot-9.scm (error-catching-loop, signal-handler,
168 handle-system-error): Backtracing now works for signals aswell;
169 Backtracing mechanism can now identify the stack root created by
170 start-stack so that the user isn't exposed to system stack frames.
172 Mon Oct 14 06:05:42 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
174 * Makefile.in: Added threads.scm.
176 Mon Oct 14 04:21:51 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
178 * debug.scm (make-enable, make-disable): Simplified.
180 * boot-9.scm: Renamed %%throw-handler-default -->
181 throw-handler-default.
182 ((handle-system-error key . arg-list)): Changed the way errors are
184 ((scm-style-repl)): Wrap up the call to eval in a start-stack
186 ((error-catching-loop thunk)): Introduce a lazy-catch into
187 error-catching-loop so that the stack can be captured.
189 Thu Oct 10 22:27:32 1996 Jim Blandy <jimb@totoro.cyclic.com>
191 * mapping.scm (hash-table-mapping): Explicitly request that
192 make-vector fill new vectors with '(); this will make it easier to
193 port Guile Scheme code to other Schemes.
194 * boot-9.scm (make-print-style, make-print-table): Same.
196 Sun Oct 6 03:54:59 1996 Gary Houston <ghouston@actrix.gen.nz>
198 * boot-9.scm (load): rewritten again.
199 Append "." to the default %load-path.
200 (feature?): new function: checks for a symbol in the features list.
201 (module-local-variable): remove apparently useless (caddr (list m v
203 (%load-announce): minor formatting change.
204 (file-exists?): use access? if posix is featured.
205 (file-is-directory?): use stat if i/o-extensions is featured.
206 (try-module-autoload module-name): use file-exists? before
209 Sat Oct 5 18:54:03 1996 Mikael Djurfeldt <mdj@kenneth>
211 * boot-9.scm: Added conditional loading of threads.scm.
213 * threads.scm: New file. Modified from the Cygnus-r0.3
216 * boot-9.scm (error-catching-loop): Added handling of key
219 * boot-9.scm: Name change %%bad-throw --> bad-throw.
221 Wed Oct 2 23:38:44 1996 Jim Blandy <jimb@totoro.cyclic.com>
223 * boot-9.scm (make-record-type, record-constructor): Don't assume
224 the empty list is false when parsing the argument list.
226 Mon Sep 30 22:15:50 1996 Jim Blandy <jimb@totoro.cyclic.com>
228 * boot-9.scm (signal-handler): Clean up logic.
230 * boot-9.scm (load): Assume %load-path is always bound.
232 Sat Sep 28 00:15:37 1996 Gary Houston <ghouston@actrix.gen.nz>
234 * boot-9.scm (error): replace another throw with scm-error. Throw
235 to 'misc-error instead of 'error (no need to distinguish these.)
236 Don't set up 'error as a key.
237 Set up regex-error as a key, if regex is available.
238 (signal-handler): use scm-error, not throw.
240 * (%try-load, try-load-with-path, %load, load-with-path,
241 basic-try-load-with-path, basic-load-with-path,
242 try-load-module-with-path,load-module-with-path): deleted, since
244 (try-load): define using %try-load, not try-load-with-path.
245 * (load): rewritten. load tries to open the file directly and
246 with a .scm extension before searching the library directories
247 (should "." be added to %load-path? then load could still open
248 directly files starting with "/").
249 (try-module-autoload): use load, not load-with-path.
250 (%load-indent): deleted, -2 was causing errors.
252 (%read-sharp): use port-line, not line-number.
254 Fri Sep 27 16:23:51 1996 Jim Blandy <jimb@totoro.cyclic.com>
256 * boot-9.scm (%%bad-throw): Delete definition. 1) It's very
257 straightforward to provide the equivalent functionality using
258 (catch #t ...), so there's no need for the extra complexity. 2)
259 Outside the context of a read-eval-print loop (which Guile should
260 not require) it's not clear we should do anything more complicated
261 than print an error and exit; the user or REPL can establish
262 something better if it wants. 3) In that case, it's much more
263 robust to just do it in the C code.
265 Tue Sep 24 06:53:04 1996 Gary Houston <ghouston@actrix.gen.nz>
267 * boot-9.scm (%try-load): define using primitive-load. Previously
268 %try-load itself was the primitive.
269 (load-with-path): use scm-error instead of %load-announce-lossage.
270 Errors are thrown to 'misc-error instead of 'could-not-load.
271 (%load-announce-lossage): deleted.
273 Mon Sep 23 00:16:31 1996 Mikael Djurfeldt <mdj@kenneth>
275 * boot-9.scm (warn, scm-style-repl): Use C printer instead of `print'.
276 (make-record-type type-name fields): Temporarily remove support
277 for printing of records (not possible yet with C printer).
279 Fri Sep 20 00:24:27 1996 Gary Houston <ghouston@actrix.gen.nz>
281 * boot-9.scm (file-exists?, file-is-directory): catch only
282 system-error, not every kind of error.
283 (scm-error): new procedure.
285 Thu Sep 19 16:02:46 1996 Jim Blandy <jimb@totoro.cyclic.com>
287 * boot-9.scm: Formatting tweaks.
289 Wed Sep 18 09:07:37 1996 Gary Houston <ghouston@actrix.gen.nz>
291 * boot-9.scm (%%handle-system-error key): remove the code for
292 SCM-style errors. handle the case that an unexpected number
293 of args are supplied.
294 (%%system-errors): removed.
295 (error): redefine using a throw with key and 4 args.
296 ('error): associate 'error, 'error-signal keys with
297 %%handle-system-error.
298 (%%default-error-handler): removed.
299 (signal-handler): throw with 4 args and use the error-signal key.
300 Create an error message instead of using numerical codes.
301 (%%bad-throw): call error instead of throw if key not found.
303 Tue Sep 17 04:11:28 1996 Gary Houston <ghouston@actrix.gen.nz>
305 * boot-9.scm: initialize new error keys (see libguile/ChangeLog).
306 (%%handle-system-error key): check subr is not #f before printing.
307 Recognize %s (embed an argument using "display") and
308 %S (embed an argument using "write").
310 Sun Sep 15 03:55:35 1996 Gary Houston <ghouston@actrix.gen.nz>
312 * boot-9.scm (%%handle-system-error key): set args and rest to
313 the empty list if they are #f.
314 Initialize out-of-range as an error key.
316 Sat Sep 14 03:41:15 1996 Gary Houston <ghouston@actrix.gen.nz>
318 * PLUGIN/REQ: remove the "ice-9 lgh" line which causes a cycle.
320 * boot-9.scm: remove leading %% from references to '%%system-error.
321 (%%handle-system-error): don't pass all the thrown arguments when
322 aborting, just the key and subr.
323 Remove the code to "Install default handlers for built-in errors."
324 Remove the definition of the syserror procedure.
325 Associate 'numerical-overflow with default handler.
327 Fri Sep 13 04:58:11 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
329 * boot-9.scm: Name change: value-ref --> local-ref
330 resolved-ref --> nested-ref Motivation: conformance to the other
331 dictionary operators: list-ref operates on list, vector-ref
332 operates on vector, nested-ref operates on nested namespace,
333 local-ref operates on the local nested namespace.
335 Sat Sep 7 06:44:47 1996 Gary Houston <ghouston@actrix.gen.nz>
337 * boot-9.scm (%%handle-system-error): recognise errors thrown
338 by lgh-error (fill-message etc.)
339 (fill-message): check first whether args is null.
340 (fill-message): bug fix and check that args is a list.
342 Thu Sep 5 11:33:41 1996 Jim Blandy <jimb@floss.cyclic.com>
344 * boot-9.scm: %load-path is initialized in C code now.
345 (implementation-vicinity, parse-path): Deleted, along with code to
346 initialize %load-path.
348 * boot-9.scm (in-vicinity): If the vicinity doesn't end with a
349 "/", use one to separate it from the file.
351 Thu Aug 29 23:05:11 1996 Thomas Morgan <tmorgan@gnu.ai.mit.edu>
353 * boot-9.scm (%load-path): Add the site directory.
354 Add the directory named after the version number.
355 Prepend the version number to the other directories in the path.
356 Simplify by mapping the common prefix onto each item.
357 * Makefile.in (datadir, pkgdatadir, pkgverdatadir, subpkgdatadir,
358 sitedatadir): New definitions.
359 (libparent, libdir, install_path): Replaced by above.
360 (install): Create the above directories.
361 Put the source files into subpkgdatadir.
362 (uninstall): Remove the above directories.
364 Thu Aug 29 21:48:47 1996 Jim Blandy <jimb@floss.cyclic.com>
366 Don't use the PLUGIN system to gather information for the
367 Makefile's distribution and installation targets; just put it all
368 in the Makefile directly.
369 * PLUGIN/this.configure (scm_files, aux_files): Remove sections
371 * configure.in: Remove code that gets and substitutes scm_files and
373 * Makefile.in (scm_files, aux_files): Write out the list of files
374 here, where people expect to find them.
376 Fri Aug 23 06:44:36 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
378 * boot-9.scm: Preliminary solution: optionally load the debug
379 module. Changed "gls" to "guile1.0b3".
381 * debug.scm: New file: debug extensions.
383 Wed Aug 21 13:06:56 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
385 * boot-9.scm (print-vector): Renamed weak-hash-table? -->
386 weak-key-hash-table?. (Again!)
388 Tue Aug 20 07:31:39 1996 Mikael Djurfeldt <mdj@woody.nada.kth.se>
390 * boot-9.scm (print-vector, macro-table, xformer-table):
391 Renamed weak-hash-table --> weak-key-hash-table.
393 * poe.scm (funcq-memo): Renamed weak-hash-table -->
396 Sat Aug 3 06:16:35 1996 Gary Houston <ghouston@actrix.gen.nz>
398 * boot-9.scm (*null-device*): global constant from goonix.
399 (move->fdes): adjusted for boolean primitive-move->fdes. return
400 the modified port, always set revealed count to 1 (SCSH compatible).
401 (release-port-handle port): from goonix (SCSH compatible).
402 (%open-file): removed.
403 (open-input-file, open-output-file, file-exists?, file-is-directory?):
404 modified for open-file change (does not return #f).
406 Thu Aug 1 02:52:42 1996 Jim Blandy <jimb@totoro.cyclic.com>
408 * Makefile.in (dist-dir): New target for new dist system.
410 * PLUGIN/this.configure (aux_files): Removed PLUGIN; it's a
411 directory, and needs special treatment in the dist-dir target.
413 Thu Aug 1 09:00:21 1996 Gary Houston <ghouston@actrix.gen.nz>
415 * boot-9.scm: remove the wrappers for '%' system primitives,
416 now that they throw errors directly.
417 remove make-simple-wrapper and similar functions.
418 protect a call to getenv which may now throw an exception.
420 Wed Jul 31 23:44:42 1996 Gary Houston <ghouston@actrix.gen.nz>
422 * boot-9.scm (false-if-exception): new macro.
424 Fri Apr 19 13:53:08 1996 Tom Lord <lord@beehive>
426 * The more things change...