1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-17 22:22:25 +02:00
Commit graph

275 commits

Author SHA1 Message Date
Mikael Djurfeldt
87cfc5dace * boot-9.scm: Provide 'values. 1999-04-08 06:06:56 +00:00
Mikael Djurfeldt
7cbaee0c89 * boot-9.scm (process-define-module, use-syntax): Bugfix:
:use-syntax should add syntax to using module, not current module.
(internal-use-syntax): Removed.
1999-03-21 13:04:39 +00:00
Mikael Djurfeldt
432558b9b5 * boot-9.scm (try-load-module): New procedure. Broken out from
resolve-module.
(resolve-module): Bugfix: Make it possible for a module at a
deeper level (x y z) to depend on a module on a higher (x y).
Use try-load-module.
1999-03-19 05:14:09 +00:00
Mikael Djurfeldt
c8eed87557 * boot-9.scm (make-record-type): Use `set-struct-vtable-name!' to
associate a name to the record type descriptor so that the object
system can create a wrapper class for it.
1999-03-14 16:46:04 +00:00
Mikael Djurfeldt
baa47a940d Gragg 1999-03-12 09:53:30 +00:00
Mikael Djurfeldt
edc185c769 * boot-9.scm (set-system-module!): New procedure: Set system/user
status of a module.;
Mark `the-root-module' and `the-scm-module' as system modules.
(process-define-module): Add new keyword :no-backtrace.
* boot-9.scm (environment-module): Bugfixed.
(set-module-eval-closure!): Add a pointer back from the eval
closure to the module.
1999-03-12 09:48:18 +00:00
Mikael Djurfeldt
45a02a29a6 * boot-9.scm (process-define-module): Reverted the change of
1998-11-23 which caused loading of object code if :use-module was
applied to the module itself.
1998-12-14 07:53:32 +00:00
Mikael Djurfeldt
9705d5c2a1 Fix 1998-12-11 05:07:18 +00:00
Mikael Djurfeldt
bf3c93d1ae * boot-9.scm (environment->module): New procedure. 1998-12-11 05:05:43 +00:00
Mikael Djurfeldt
7122506062 * boot-9.scm (process-define-module): Added new specifier
:autoload MODULENAME BINDINGS to the define-module form.
The autoload specifier tells the module system to load the module
MODULENAME at the first occasion that any variable with its name
among BINDINGS is referenced.
(make-autoload-interface): New procedure:  Constructs a stand-in
for the public interface for the module to be autoloaded.
1998-12-01 17:06:34 +00:00
Mikael Djurfeldt
3b3085c692 * boot-9.scm (*suppress-old-style-hook-warning*): Set this to #t
if you don't want the old style hook warnings.
1998-12-01 11:28:24 +00:00
Mikael Djurfeldt
49e5d550cb * boot-9.scm (try-using-libtool-name): Fix check on dlname to make
sure that it isn't empty, as it is when we are only buidling
static libraries.
1998-12-01 07:35:00 +00:00
Mikael Djurfeldt
1f60d9d237 Warn that resolve-module is used by modules.c 1998-11-26 17:56:36 +00:00
Mikael Djurfeldt
04efd24d82 * boot-9.scm: Use run-hook instead of run-hooks everywhere. 1998-11-26 08:31:02 +00:00
Mikael Djurfeldt
d1406b6a40 * boot-9.scm (run-hooks, add-hook!, remove-hook!): Added temporary
code for backward compatibility until people have had time to
adapt to the new hooks.
1998-11-25 15:17:12 +00:00
Mikael Djurfeldt
c04e89c78a Fix 1998-11-23 03:05:57 +00:00
Mikael Djurfeldt
3e3cec458e * boot-9.scm (beautify-user-module!): Beautify also if public
interface is set to the module itself.  In this way we can use
beautify-user-module! to beautify a module prepared for object
code.
(process-define-module): Special case: Try to load object code as
well if a module does :use-module on itself.
* boot-9.scm: Bugfix: Since boot-9.scm is now loaded from
invoke_main_func, we can no longer be sure that all modules have
been registered when boot-9.scm is loaded.
(register-modules): New function: Register and tag modules
registered by scm_register_module_xxx since last call to this
function.  Modules are tagged with the dynamic object passed as
argument.  (Already linked modules should be tagged with #f.)
(init-dynamic-module, link-dynamic-module): Call register-modules
first to register linked modules.
* boot-9.scm (init-dynamic-module): Remove module from
registered-modules as soon as possible in case we are recursively
invoked; Set public interface before doing the dynamic-call.
* boot-9.scm (map-in-order): Removed (replaced by scm_serial_map).
(abort-hook, before-error-hook, after-error-hook,
before-backtrace-hook, after-backtrace-hook, before-read-hook,
after-read-hook, exit-hook): Make hooks with `make-hook'.
* boot-9.scm: Make hooks first class citizens and make them easier
to use from C:
(make-hook, add-hook!, remove-hook!, run-hooks): Moved to
libguile/feature.c.
* boot-9.scm: Added warnings about bindings used in
libguile/modules.c: the-module, set-current-module,
make-modules-in, beautify-user-module!, module-eval-closure.
1998-11-23 02:36:43 +00:00
Mikael Djurfeldt
631c1902df * boot-9.scm: Added warnings about bindings used in
libguile/modules.c: the-module, set-current-module,
make-modules-in, module-eval-closure.
1998-11-22 12:03:34 +00:00
Mikael Djurfeldt
dc61592f84 * boot-9.scm (the-environment): New special form: Returns an
object representing the current local evaluation environment.
This object can be used in `local-eval' and `defined?'.
1998-11-20 17:12:45 +00:00
Mikael Djurfeldt
7398c2c2b5 * boot-9.scm (collect): New syntax. Similar to begin but returns
a list of the results of all forms in the sequence instead of the
result of the last form.
1998-11-12 16:03:11 +00:00
Mikael Djurfeldt
1729d8ff31 * boot-9.scm (values, call-with-values): Moved here from
syncase.scm.
1998-11-10 14:40:28 +00:00
Mikael Djurfeldt
e586be785c * boot-9.scm (readline-options, readline-enable, readline.disable,
readline-set!: New options interface.
1998-11-09 14:26:47 +00:00
Mikael Djurfeldt
4fdf8b2c76 * boot-9.scm: Set the repl start module in `top-repl' instead of
at the end of boot-9.scm.
1998-11-05 14:44:08 +00:00
Mikael Djurfeldt
2055a1bcd3 * boot-9.scm (exit-hook): New hook: Is run at the very end of an
interactive session.
1998-10-31 16:46:55 +00:00
Jim Blandy
9630e974d2 * boot-9.scm, debug.scm, expect.scm, hcons.scm, lineio.scm,
r4rs.scm, slib.scm, threads.scm: Update copyright years.
1998-10-19 21:23:31 +00:00
Jim Blandy
9aca88c39a * boot-9.scm: Don't assume that this file is loaded just before
entering a read-eval-print loop.  Turn code to load (ice-9 emacs)
into...
(load-emacs-interface): New function.
(top-repl): Call it, if use-emacs-interface is defined and true.
At this point, we *do* know we're about to enter a REPL.
1998-10-19 13:49:29 +00:00
Mikael Djurfeldt
c8f11b9756 * boot-9.scm: Added extended read syntax for byte vectors #y(...)
and short vectors #h(...).
1998-10-18 12:41:43 +00:00
Jim Blandy
bf7bc911dd * boot-9.scm (read-path-list-notation-warning): New function:
print a warning the first time we see `#/' notation.
1998-10-09 15:12:51 +00:00
Mikael Djurfeldt
45456413b8 * boot-9.scm (make-options): Bugfix: Changed pair? --> list? in
order to allow the empty list as arg.
(error-catching-loop): Use `with-traps' to create a dynamic
context with traps enabled.
1998-08-21 08:06:03 +00:00
Mikael Djurfeldt
5ef4ef4e18 * boot-9.scm: Removed (ice-9 regex) from use-list of (guile)
module.
(try-using-libtool-name): Removed dependency on (ice-9 regex).
1998-08-19 13:10:26 +00:00
Mikael Djurfeldt
325f42e0de * boot-9.scm: Make the root module use (ice-9 regex) if
available.  The dynamic linking facilities in boot-9.scm are
currently dependent upon regular expressions.  My change of
1998-07-14 removed (ice-9 regex) from the use-list of the root
module and thereby destroyed dynamic linking.
1998-08-15 09:16:43 +00:00
Mikael Djurfeldt
a0cc0a0125 * boot-9.scm (export, export-syntax): New special forms: Export
bindings from a module.  `(export name1 name2 ...)' can be used at
the top of a module (after `define-module') to specify which names
should be exported.  It can be used as an alternative to
`define-public'.  `export-syntax' works equivalently to `export'
but is intended for export of syntactic keywords.
(Thanks to Thien-Thi Nguyen.)
1998-07-15 23:01:45 +00:00
Mikael Djurfeldt
39bc994824 * boot-9.scm: Renamed module (guile-repl)' --> (guile-user)'. 1998-07-15 19:32:13 +00:00
Mikael Djurfeldt
ae996c08a0 * boot-9.scm: Let the user start in module `(guile-repl)' instead
of module `(guile)'.  Also make sure that `(guile-repl)' uses
suitable modules.  This change improves Guile stability
substantially since bindings will only be copied from the root
module: If the user redefines builtins in `(guile-repl)' it won't
affect the internal operation of Guile itself.
1998-07-14 22:48:00 +00:00
Mikael Djurfeldt
13e341bb4d * boot-9.scm: Let the user start in module `(user)' instead of
module `(guile)'.  Also make sure that `(user)' uses suitable
modules.  This change improves Guile stability substantially since
bindings will only be copied from the root module: If the user
redefines builtins in `(user)' it won't affect the internal
operation of Guile itself.
1998-07-14 10:23:40 +00:00
Mikael Djurfeldt
c6775c407a * boot-9.scm (load-module): When loading files from within files
themselves being loaded: Use the directory path of the file being
loaded as root for relative filenames.  (After suggestion by
Steven G. Johnson.)
1998-06-18 23:59:24 +00:00
Mikael Djurfeldt
279ba8c035 * boot-9.scm: Check that (current-input-port) is a tty before
enabling readline.  (Thanks to Michael N. Livshin.)
1998-06-09 21:56:51 +00:00
Mikael Djurfeldt
cf26610900 * boot-9.scm (use-syntax): Turned into a macro inorder to be
similar in use to `use-modules'.
Example: (use-syntax (ice-9 syncase)) will 1. load the module
(ice-9 syncase), and, 2. install the procedure `syncase' as eval
transformer.
(internal-use-syntax): New procedure.
(process-define-module): Use `internal-use-syntax'.
1998-06-07 10:29:40 +00:00
Mikael Djurfeldt
dc5c203863 * boot-9.scm: Antirevert Jim's readline code which he reverted
19971027 and adapt it to the current readline interface.

* boot-9.scm (top-repl): Only enable readline if not using the
Emacs interface; Only use repl prompt when using the readline port
from repl-read.  (We don't want to see it when calling `read'.)

* boot-9.scm (remove-hook!): Parenthesis bug.
1998-05-12 23:59:21 +00:00
Mikael Djurfeldt
f246e585bb * boot-9.scm: Load readline module if readline is present.
* readline.scm (apropos-completion-function): New procedure:
Symbolic completion.  (Thanks to Andrew Archibald!)
1998-05-11 01:15:26 +00:00
Mikael Djurfeldt
f714ca8e67 * boot-9.scm (process-define-module): Added keyword use-syntax. 1998-05-04 11:44:13 +00:00
Mikael Djurfeldt
16b8ebbe81 * boot-9.scm: Added new run-time option interface eval-options. 1998-03-30 21:07:52 +00:00
Mikael Djurfeldt
abf06c1273 * boot-9.scm (remove-hook!): New macro. (Thanks to Maciej
Stachowiak.)
1998-03-28 10:30:40 +00:00
Jim Blandy
0543c9b780 Fixed copyright notice on complex transcendental functions. Jerry
Hedden assigned the copyright to the FSF a while ago.
1998-01-05 22:10:10 +00:00
Tim Pierce
249cdba61b Changes for SLIB compatibility. 1997-12-26 02:59:08 +00:00
Tim Pierce
848f2a0114 boot-9.scm (read-line): Rewritten to use %read-line.
ioext.c (%read-line): Return a cons of the input line and its terminator.
fports.c, genio.c, genio.h, ports.c, ports.h: Change fgets methods
	to return the string length as well as its contents.
1997-12-13 08:33:33 +00:00
Mikael Djurfeldt
8bb7f6466b * boot-9.scm (error-catching-loop, save-stack): `the-last-stack'
is now a fluid.
1997-11-29 01:11:21 +00:00
Tim Pierce
ebd79f623f Libtool support for find-and-link-dynamic-module 1997-11-28 17:22:20 +00:00
Gary Houston
28d8ab3c69 * boot-9.scm (set-batch-mode?!, batch-mode?): initialize more
usefully so they will work from a script.
1997-11-09 23:36:17 +00:00
Marius Vollmer
cf8f1a90f9 * boot-9.scm (inherit-print-state): Moved definition to the
neighborhood of the record code.
1997-10-31 22:16:24 +00:00