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

275 commits

Author SHA1 Message Date
Mikael Djurfeldt
39819fa9e4 * boot-9.scm (process-define-module): New options: :export-syntax,
:re-export-syntax
2001-10-17 12:02:13 +00:00
Mikael Djurfeldt
5d20b8c7fe * boot-9.scm (process-define-module): Added :re-export. 2001-09-24 11:12:23 +00:00
Thien-Thi Nguyen
bd83482d50 (process-use-modules): Fix typo. 2001-09-19 12:56:28 +00:00
Dirk Herrmann
8c494e9973 * Removed lots of deprecated stuff. 2001-08-31 14:42:31 +00:00
Thien-Thi Nguyen
bbf5a91367 (resolve-interface): When returning a custom
interface, also consult source module's entire binding set,
not just its exported bindings, before throwing error.
2001-08-30 23:25:34 +00:00
Marius Vollmer
0005eb7c2d (resolve-interface): Get variables from the public interface of a
module instead of from the module itselfs.
2001-08-25 16:12:09 +00:00
Keisuke Nishida
88c4ba2aef * boot-9.scm (process-define-module): Bug fixed. 2001-07-31 14:08:04 +00:00
Marius Vollmer
6672871b9e (compile-interface-spec): Bug fix: the keyword argument is "renamer"
not "rename".
2001-07-12 23:26:52 +00:00
Rob Browning
71335c0d9d * boot-9.scm: Fixed the sense of the error message when read-eval?
is #f.  Thanks to Matthias for catching this.
2001-07-09 14:28:03 +00:00
Rob Browning
600c958485 * boot-9.scm: added fix suggested by Matthias for #. read
extension -- now only works if read-eval? is not #f.
2001-07-06 17:38:40 +00:00
Neil Jerram
d95c0b76d6 * Handle evaluator traps by calling trap handlers directly rather than
by scm_ithrow and a lazy catch handler.
2001-06-26 21:55:45 +00:00
Marius Vollmer
e6b748a832 (re-export-syntax): New. 2001-06-25 01:06:33 +00:00
Marius Vollmer
019ac1c987 (system-error-errno): New. 2001-06-16 20:14:24 +00:00
Marius Vollmer
de698bfa26 Use `begin-deprecated' instead of testing
`include-deprecated-features' when conditionally using the (ice-9
rdelim) module.  See below.
2001-06-11 17:23:42 +00:00
Gary Houston
6eb396fe09 * boot-9.scm: use the (ice-9 rdelim) module if
include-deprecated-features is true.
2001-06-10 20:44:45 +00:00
Marius Vollmer
89d06712d9 (module-ensure-local-variable!): Renamed from
`module-ensure-variable!'.  Make sure that there really is a local
variable, not just a visible one.
(module-ensure-variable!): See above.
(module-export!): Behave like always when deprecated features are
enabled, but issue a warning when re-exporting a variable.  When
deprecated features are disabled, only export local variables,
creating them uninitialized when they don't yet exist.
(module-re-export!): New.  Use this for re-exporting imported
variables.
(re-export): New, to go with `module-re-export!'.

(named-module-use!, top-repl): Use resolve-interface
instead of resolve-module to get at the used module.
2001-06-04 22:14:16 +00:00
Marius Vollmer
a482f2cc7b Added exception notice to all files.
(module-export!): Revert 2001-06-02 change.  It
caused more problems than it solved by accidentally re-exporting
importing bindings once in a while.
2001-06-03 23:29:45 +00:00
Marius Vollmer
99a34d6e6a (try-load-module): Bracket calls to try-module-linked
and try-module-dynamic-link with `begin-deprecated'.
(split-c-module-name, convert-c-registered-modules,
registered-modules, register-modules, warn-autoload-deprecation,
init-dynamic-module, dynamic-maybe-call, dynamic-maybe-link,
find-and-link-dynamic-module, try-using-libtool-name,
try-using-sharlib-name, link-dynamic-module, try-module-linked,
try-module-dynamic-link): Deprecated.  Activate deprecation
message.
2001-06-03 01:02:53 +00:00
Marius Vollmer
9540368e79 (module-ensure-variable!): New.
(module-export!): Use it to ensure that there is a variable to
export.  Previously, we would always create a new variable, copy
the value over, and export the new variable.  This confused
syncase since it keys important properties on variables.
2001-06-02 18:33:25 +00:00
Marius Vollmer
532cf805db (resolve-interface): Expect keyword arguments instead of a `spec'.
(compile-interface-spec, compile-define-module-args): New.
(define-module): Use compile-define-module-args to construct
argument for process-define-module.
(use-modules, use-syntax): Use compile-interface-spec to construct
arguments for process-use-modules.
(process-define-module): Expect keywords in argument list.
2001-06-01 20:15:10 +00:00
Marius Vollmer
615bfe7277 (top-repl): Revert part of the 2001-05-19 change.
When defining the guile-user module, do not use any modules.  Add
them to guile-user when `top-repl' is called.
2001-06-01 14:01:27 +00:00
Marius Vollmer
9f79272ab3 (cond-expand): Define using
`procedure->memoizing-macro' to get at the lexical environment.
Use `env-module' instead of `current-module' to get the right
module.
2001-05-25 13:18:52 +00:00
Martin Grabmüller
b9b8f9da60 * boot-9.scm (%cond-expand-table): New hash table mapping modules
to feature lists.
	(cond-expand): Use feature information associated with modules.

	* boot-9.scm (use-srfis): Do not extend the srfi-0 feature list.
	(cond-expand-provide): New procedure.
2001-05-23 05:08:17 +00:00
Marius Vollmer
25afac9812 (define-module): Return the new module. (process-define-module): Use
`spec' instead of `module-name' when getting the syntax transformer.
2001-05-22 22:45:13 +00:00
Marius Vollmer
eee58958bb (use-syntax): Do not set scm:eval-transformer when
deprecated features have been removed.  Thanks to Dale P. Smith!
2001-05-21 13:19:40 +00:00
Marius Vollmer
d866f4455b (process-define-module): Do not call
set-current-module.
(define-module): Do it here, in the expansion.
(top-repl): Do not define '(guile-user)' module and conditionally
load `(ice-9 threads)' and/or `(ice-9 regex)' here.  Do it on
top-level as the last thing in boot-9.scm instead.
(%load-path): Use `list' instead of `cons' to create a single
element list when adding "." to it.
(process-define-module, process-use-modules, module-export!): Add
dummy definitions prior to booting the mdule system.
2001-05-19 01:30:02 +00:00
Thien-Thi Nguyen
f8a502cb72 (resolve-interface, use-srfis): Small cleanup; nfc.
(process-define-module): Internal proc `unrecognized'
now accepts arg; update callers.
Reverse order of interfaces added to module to be
consistent with that specified in `define-module' form.
2001-05-18 17:28:03 +00:00
Martin Grabmüller
f41be016f6 * boot-9.scm (cond-expand-features): Made the feature list public,
so it can be manipulated by `use-srfis'.
	(use-srfis): New procedure.
2001-05-15 20:20:51 +00:00
Thien-Thi Nguyen
b622dec753 (resolve-interface): Signal error now also if used module's
public interface is not available.
No longer call `beautify-user-module!'.
Signal error now also if selected binding not found.
2001-05-15 19:33:43 +00:00
Marius Vollmer
296ff5e78b Merged from mvo-vcell-cleanup-1-branch. 2001-05-15 14:59:42 +00:00
Marius Vollmer
5f89fb1313 (error-catching-repl): Call the E
("eval'er") procedure via call-with-values and call the P
("printer") for each produced value.  Thanks to Matthias Köppe!
2001-05-15 00:51:06 +00:00
Martin Grabmüller
1d00af09c7 * boot-9.scm (cond-expand): Reduce feature list to built-in
features.
2001-05-14 19:09:50 +00:00
Dirk Herrmann
5cd06d5eaa * Deprecated some definitions.
* Minor fixes.
2001-05-14 16:38:08 +00:00
Martin Grabmüller
7f24bc58dc * boot-9.scm: Added `cond-expand' (SRFI-0) for portable feature
checking.
2001-05-11 05:41:03 +00:00
Thien-Thi Nguyen
fb1b76f432 (resolve-module): Abstraction maintenance: Use
`module-public-interface'.
(resolve-module): Extend to handle selection and renaming in spec.
Arg is now `spec' which can be a simple module name (list of symbols)
or a interface spec.
(symbol-prefix-proc): New proc.
(process-define-module): Use "define-module" in error messages
instead of "defmodule".  Factor error into internal proc.
Rewrite `use-module' and `use-syntax' handlers.
Replace some single-arm `if-not' constructs w/ `or'.
(process-use-modules): Arg is now `module-interface-specs',
which is passed through to `resolve-interface' as before; nfc.
(named-module-use!, top-repl): Abstraction maintenance: Use `provided?'.
2001-05-10 22:00:22 +00:00
Neil Jerram
4879243cdc * Correct error message in `use-syntax'. 2001-05-05 13:41:59 +00:00
Marius Vollmer
9fb41ceac5 * boot-9.scm (begin-deprecated): New.
(call-with-deprecation): Removed.
(id): Use `issue-deprecation-warning' instead of
`call-with-deprecation'.  Wrap definition in `begin-deprecated'.
(eval-in-module): Manifest deprecation via `begin-deprecation' and
`issue-deprecation-warning'.
(warn-autoload-deprecation): Deactivated.
2001-05-02 00:59:43 +00:00
Thien-Thi Nguyen
20edfbbdb5 Surround commentary w/ standard markers; nfc. 2001-04-28 19:07:38 +00:00
Marius Vollmer
8acc3515a0 * boot-9.scm (the-module, set-current-module, current-module):
Removed, they are now defined in libguile.
2001-04-25 22:04:25 +00:00
Keisuke Nishida
ff5546f5c6 * boot-9.scm (load-compiled): New variable, initialized in the VM.
(try-module-autoload): Try loading compiled modules if applicable.
2001-04-16 03:42:36 +00:00
Keisuke Nishida
6b08d75b56 * boot-9.scm (call-with-deprecation): New procedure.
(identity): New procedure.
	(id): Deprecated.
2001-04-15 22:47:25 +00:00
Keisuke Nishida
8add1522ae * boot-9.scm (defmacro, define-macro, define-syntax-macro):
Define only at the top level.
2001-04-15 15:20:28 +00:00
Keisuke Nishida
a54e6fa326 Moved up the eval-case section. 2001-04-14 12:29:54 +00:00
Neil Jerram
6414341421 * boot-9.scm (warn-autoload-deprecation): Close parenthesis in
"You just tried to autoload ..." message.
2001-04-06 14:45:34 +00:00
Marius Vollmer
999010b63d * boot-9.scm (init-dynamic-module): Fix typo in call to
warn-autoload-deprecation.  I feel silly.
2001-03-29 22:36:06 +00:00
Marius Vollmer
a4e7b79a5e * boot-9.scm (warn-autoload-deprecation): New function.
(init-dynamic-module): Use it here to print warning.  Only give
warning when a module has actually been found.
2001-03-26 22:31:47 +00:00
Keisuke Nishida
870777d7c7 Simple value history support. 2001-03-17 15:32:17 +00:00
Marius Vollmer
bf4aaed27c * boot-9.scm, rdelim.scm: Use "'()" instead of "()" in all places
where the empty list is meant.
2001-03-03 14:58:22 +00:00
Mikael Djurfeldt
704f4e86cf * boot-9.scm (save-stack): Use `primitive-eval' for stack
cutting.  Makes backtraces work again!  Also added a reference to
save-stack from the place in the repl where the primitive-eval
frame is invoked.
2001-02-27 03:19:36 +00:00
Marius Vollmer
7b748b1649 * boot-9.scm (eval-when, eval-case): Renamed `eval-when' to
`eval-case', everywhere.
2001-02-21 20:11:44 +00:00