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

937 commits

Author SHA1 Message Date
Mikael Djurfeldt
526e04642c * readline.scm: Bugfix: Avoid getting the continued-lines prompt
at multiple calls to read.
(promtp2): Variable for continued-lines prompt.
(make-readline-port): Use prompt2.
(set-readline-prompt!): New optional arg which sets
continued-lines prompt.
1999-06-29 10:35:36 +00:00
Mikael Djurfeldt
dd6ba90547 * boot-9.scm (top-repl): Set/clear readline prompts before/after
reading expressions.
1999-06-29 10:35:06 +00:00
Jim Blandy
d21ffe2694 *** empty log message *** 1999-06-18 10:16:40 +00:00
Jim Blandy
67e6fa38cd * ls.scm (ls, lls): Handle no arguments as meaning to look in
`(current-module)'. (Patch from Thien-Thi Nguyen.)
1999-06-18 10:16:10 +00:00
Jim Blandy
8044bbc8dc *** empty log message *** 1999-06-16 08:44:24 +00:00
Jim Blandy
1011dac034 * string-fun.scm (split-before-predicate, split-after-predicate,
split-discarding-predicate): Make these public.  (Thanks to
Thien-Thi Nguyen.)
1999-06-14 16:55:08 +00:00
Jim Blandy
8f59c14e2c * more changes to expect.scm, to avoid the one-character lookhead
that was introduced to fix the $ problem:
* expect.scm (expect): call the match proc an extra time at end
of file and set the eof? argument appropriately.  call
expect-eof-proc only if the last call didn't match.
* expect.scm (expect-strings): change port to eof? in match proc.
* expect.scm (expect-regexec): take an eof indicator as an argument
instead of a port.
1999-06-14 16:54:15 +00:00
Jim Blandy
027ffa31f5 *** empty log message *** 1999-06-12 12:45:51 +00:00
Jim Blandy
ad226f250e *** empty log message *** 1999-06-12 12:45:23 +00:00
Jim Blandy
8ed3c2fb12 *** empty log message *** 1999-06-09 12:55:20 +00:00
Jim Blandy
2645b7b835 * expect.scm (expect-regexec): define 'eof-next?'. I don't
know why it was missing.  also don't peek for end of lines
	unless expect-strings-exec-flags contains regexp/noteol.
	(expect-strings-exec-flags): initialise to regexp/noteol.
1999-06-09 12:54:59 +00:00
Jim Blandy
51786bda60 * Makefile.am (ice9_sources): Add popen.scm to list.
* Makefile.in: Regenerated.
* popen.scm: applied fixes from Greg Harvey.  use a guardian
and a gc-thunk so that cleanup is done if a pipe is garbage
collected or closed with close-port.  use a weak hash-table instead of
an alist.
* boot-9.scm (reopen-file): deleted.
* popen.scm (open-output-pipe, open-input-pipe): moved from
boot-9.scm.
* popen.scm: new file.
1999-06-09 12:30:45 +00:00
Jim Blandy
aad827f4c5 *** empty log message *** 1999-06-09 12:25:26 +00:00
Jim Blandy
156ecad591 * * expect.scm (expect): call the match proc with the port instead.
(expect-strings): use peek-char to get the next char.  this has
	the advantage of getting the handling of $ "correct", but the
	disadvantage of needing to get (and maybe block for) an extra character
	from the port when it may not be needed.  hence:
*	(expect-strings-exec-flags): new variable/parameter, supplies
	flags for regexp-exec.  if this includes regexp/noteol, then
	automatic regexp/noteol handling (requiring an extra peeked char)
	is enabled.  default is regexp/noteol.
*       (expect-strings-compile-flags): new variable/parameter, supplies
	flags for make-regexp.  default is regexp/newline.
*	* expect.scm (expect): call the match proc with an extra char,
	peeked from the stream.
	(expect-strings): build a match proc which takes the extra char.
	(expect-regexec): take an extra arg "eof-next?" and use it
	to decide whether the regexp/noteol flag should be added.
1999-06-09 12:17:16 +00:00
Jim Blandy
e13c54c40e * boot-9.scm (top-repl): don't flush all ports at exit.
(error-catching-loop): likewise.
* boot-9.scm (scm-style-repl): -read: don't call
consume-trailing-whitespace if val is eof object.  Allows
exiting repl with single control-D.
* boot-9.scm (error-catching-loop): don't force output within
error catching loop after quit received.
(top-repl): flush all ports when the repl terminates.
* boot-9.scm (error-catching-loop): flush all ports before
primitive exit if non-interactive.
force-output on current-error-port if interactive.
* boot-9.scm (reopen-file): deleted.
* popen.scm (open-output-pipe, open-input-pipe): moved from
boot-9.scm.
* popen.scm: new file.
1999-06-09 12:17:03 +00:00
Mikael Djurfeldt
15631a33d1 *** empty log message *** 1999-06-05 06:00:05 +00:00
Mikael Djurfeldt
e69cd299ed * boot-9.scm (iota): replaced by a tail recursive version.
(reverse-iota):  removed.
1999-06-05 05:59:26 +00:00
Mikael Djurfeldt
fa5518d1fa * optargs.scm (lambda*): Bugfix: Replaced ARGLIST -->
non-optional-args.  (Thanks to David Lutterkort.)
1999-06-03 05:02:23 +00:00
Mikael Djurfeldt
8d8fc9da71 *** empty log message *** 1999-06-03 05:02:05 +00:00
Jim Blandy
e7d37b0a69 *** empty log message *** 1999-05-09 09:13:20 +00:00
Jim Blandy
b12e50dabf * string-case.scm: Removed; functions moved to libguile/strop.c
(which could be dynamically linked in the future anyway).
* Makefile.am (ice9_sources): Don't list string-case.scm.
* Makefile.in: Regenerated.
* format.scm: Don't bother importing (ice-9 string-case).
1999-05-09 09:12:01 +00:00
Jim Blandy
7c1ce4ee3a *** empty log message *** 1999-05-09 08:22:42 +00:00
Jim Blandy
9c792b5df0 * string-case.scm: Removed; functions moved to libguile/strop.c
(which could be dynamically linked in the future anyway).
* format.scm: Don't bother importing (ice-9 string-case).
1999-05-09 08:21:28 +00:00
Jim Blandy
b7e13f6541 *** empty log message *** 1999-05-02 17:28:43 +00:00
Jim Blandy
7611fcf2d7 * string-case.scm: New file, brought in from SLIB, and adapted to
Guile's module system.
1999-05-02 17:27:28 +00:00
Jim Blandy
7da43e4123 * format.scm: New file, brought in from SLIB, with the following
changes:
(format:format): If the first argument is the format string, stick
a #f on the front of it, so it is now a valid CL format argument
list.  This is easier than changing everyplace else (like the
error formatter) that expects it to be in CL form.  The other
clause which explicitly tests for this case is now dead code.
(format:format-work): Allow `@' and `:' in either order, as per
modern CL behavior.
(format:num->cardinal): Don't assume that an elseless if returns
'() when the condition is false.
1999-05-02 17:27:20 +00:00
Jim Blandy
50706e9475 * boot-9.scm (provided?): New function. 1999-05-02 17:27:05 +00:00
Jim Blandy
699139fd17 * Makefile.am: Add string-case.scm and format.scm to ice9_sources.
* Makefile.in: Regenerated.
1999-05-02 17:26:49 +00:00
Jim Blandy
cceae55da9 *** empty log message *** 1999-04-17 16:53:21 +00:00
Jim Blandy
331de0309e * Makefile.in: Regenerated. 1999-04-17 16:51:31 +00:00
Mikael Djurfeldt
d2b8d4ffc1 *** empty log message *** 1999-04-08 06:07:30 +00:00
Mikael Djurfeldt
87cfc5dace * boot-9.scm: Provide 'values. 1999-04-08 06:06:56 +00:00
Mikael Djurfeldt
b6e17c631e *** empty log message *** 1999-03-21 13:05:55 +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
e059c0b79b *** empty log message *** 1999-03-21 05:04:45 +00:00
Mikael Djurfeldt
70558403f9 * session.scm (apropos-internal): Modified to comply with new
argument order for hash-fold.
1999-03-21 05:04:11 +00:00
Mikael Djurfeldt
33f8ad2b94 *** empty log message *** 1999-03-19 05:38:12 +00:00
Mikael Djurfeldt
275b2a7e0f *** empty log message *** 1999-03-19 05:16:04 +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
deea77ebd9 *** empty log message *** 1999-03-19 02:15:58 +00:00
Mikael Djurfeldt
6ae3499427 * session.scm (system-module): New procedure. Used to switch a
module between system and user state.
1999-03-19 02:15:43 +00:00
Mikael Djurfeldt
2251c7a4ce *** empty log message *** 1999-03-16 03:10:06 +00:00
Mikael Djurfeldt
3267d4a159 * emacs.scm, session.scm, slib.scm): Added :no-backtrace in module
definition.
1999-03-16 03:09:52 +00:00
Mikael Djurfeldt
bbefd48041 * session.scm (apropos-internal): Rewritten using hash-fold.
* emacs.scm, session.scm, slib.scm): Added :no-backtrace in module
definition.
1999-03-16 03:09:44 +00:00
Mikael Djurfeldt
6ee350ad3f *** empty log message *** 1999-03-14 16:55:01 +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
8812412672 *** empty log message *** 1999-03-12 09:50:46 +00:00
Mikael Djurfeldt
31264e8117 * emacs.scm (emacs-load): Reset port filename after transfer. 1999-03-12 09:49:20 +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