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

312 commits

Author SHA1 Message Date
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
Marius Vollmer
645e38d9ac * boot-9.scm (define-public): Removed spurious call to
`interaction-evironment'.
(define-public, defmacro-public): Use `export' instead of explicit
module magic.
(eval-when): New macro.
(define-module, use-modules, use-syntax, export): Use it to
restrict the use of these forms to the top level.
(define-public, defmacro-public): Only export binding when on
top-level.
(process-define-module): Call `set-current-module' with the
defined module.
(define-module): Simply call `process-define-module' without any
fuss (but only on top-level).
(named-module-use!): New function.
(top-repl): Do not use `define-module'.  Use equivalent low-level
means instead.
2001-02-13 01:07:45 +00:00
Marius Vollmer
22b3076671 * boot-9.scm (scm-style-repl): Use `primitive-eval' instead of
`eval'.
(define-public): Do not use `eval'.
2001-02-11 18:16:58 +00:00
Dirk Herrmann
e9bab9df3d * Make readline run-time options accessible. 2001-01-26 16:58:48 +00:00
Gary Houston
6d36532c1c * boot-9.scm: don't import (ice-9 rdelim) here. it's done
in C for now.
	* rdelim.scm: export the C primitives too.
	* documentation.scm: use (ice-9 rdelim).

	* filesys.c (scm_link): docstring fix.
	* fports.h (scm_setfileno): obsolete declaration removed.
	* posix.c: bogus popen declaration removed.

	* rdelim.c: new file, split from ioext.c with new proc
	scm_init_rdelim.
	* rdelim.h: new file.
	* Makefile.am: add rdelim.c and related files.
	* init.c: call scm_init_rdelim.  include rdelim.h.
2001-01-24 21:45:09 +00:00
Gary Houston
9d7748147e * rdelim.scm: new file implementing module (ice-9 rdelim).
* ice-9.scm (scm-line-incrementors read-line! read-delimited!
	read-delimited read-line): moved to rdelim.scm.
	scm-line-incrementors is not exported.
	* boot-9.scm: import (ice-9 rdelim) for backwards compatibility,
	for now.
	* lineio.scm: use module (ice-9 rdelim).
	* Makefile.am (ice9_sources): add rdelim.scm.
2001-01-21 22:11:29 +00:00
Dirk Herrmann
1746633025 * Remove calls to symbol-interned? which have always been useless, but now
have become wrong since symbols and bindings are separated.
2000-12-29 15:47:16 +00:00
Dirk Herrmann
6b098fecdc * Lookup 'use-emacs-interface in the-root-module. 2000-12-12 18:10:56 +00:00
Dirk Herrmann
4e15fee80f * Don't use make-shared-substring any more. 2000-11-28 13:40:40 +00:00
Gary Houston
3923fa6d06 * boot-9.scm: values?, get-values, values, call-with-values:
removed.  values and call-with-values are now primitives and
	the other two were only exported by accident.  don't define
	*values-rtd* record type or handle multiple values in
	scm-style-repl.
2000-11-26 18:28:57 +00:00
Mikael Djurfeldt
82b3d7781f * boot-9.scm: Removed comment. (Thanks to Brad Knotwell.) 2000-09-20 16:50:18 +00:00
Mikael Djurfeldt
484cd65682 * boot-9.scm (gentemp): Moved to symbols.c. 2000-09-12 05:45:26 +00:00
Marius Vollmer
2d55a919c3 * boot-9.scm (make-object-property): New function. 2000-09-03 20:20:19 +00:00
Mikael Djurfeldt
06f0414c85 * boot-9.scm (make-record-type): Use `string-append' instead of
`symbol-append'.
(symbol-append): Map `symbol->string' on
args.
(obarray-symbol-append, obarray-gensym): Simply removed.  I don't
think I'll announce this in NEWS even.  One of the functions never
even worked...  /mdj.
(find-and-link-dynamic-module, keyword->symbol): Use
`symbol->string'.
(try-module-autoload, process-define-module): Rewrote using R5RS
semantics.
2000-08-27 03:20:19 +00:00