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

916 commits

Author SHA1 Message Date
Mikael Djurfeldt
1c157c41c5 *** empty log message *** 1999-09-11 14:55:19 +00:00
Mikael Djurfeldt
daebab9eed Use readline conditionally. (This requires more fixing in the debugger...) 1999-09-11 14:55:02 +00:00
Mikael Djurfeldt
08cc62c7d9 *** empty log message *** 1999-09-11 13:54:15 +00:00
Mikael Djurfeldt
d61d203926 *** empty log message *** 1999-09-11 13:36:36 +00:00
Mikael Djurfeldt
8bafd6a348 Regenerated 1999-09-11 13:36:15 +00:00
Mikael Djurfeldt
e80e1c98b3 * * debugger.scm: New file: Initial version of the Guile debugger
written by Chris Hanson.  (The debugger isn't finished, but is
	included in Guile anyway since it is already quite useful.)
1999-09-11 13:36:02 +00:00
Mikael Djurfeldt
00b3396830 * * boot-9.scm (top-repl): Use (ice-9 debug) (ice-9 debugger) (ice-9
session) (ice-9 threads) (ice-9 regex) from guile-user only if
	top-repl is called.  This makes startup time for scripts 30% of
	what it was before...  Removed redundant code for loading of
	readline.
1999-09-11 13:35:28 +00:00
Mikael Djurfeldt
7a37fe8684 * Makefile.am (ice9_sources): Added debugger.scm. 1999-09-11 13:35:11 +00:00
Mikael Djurfeldt
a48a7629fc *** empty log message *** 1999-08-29 14:24:24 +00:00
Mikael Djurfeldt
defed51763 * boot-9.scm (try-module-autoload): Use %search-load-path. 1999-08-29 14:21:30 +00:00
Mikael Djurfeldt
6822fe53c9 *** empty log message *** 1999-08-24 02:22:40 +00:00
Mikael Djurfeldt
8a30733e8d * boot-9.scm: Removed old style hooks.
(inherit-print-state): Rwwritten to use port-with-print-state.
1999-08-24 02:22:18 +00:00
Jim Blandy
f8c9d4978d *** empty log message *** 1999-08-20 05:14:11 +00:00
Jim Blandy
e8566222c2 Remove support for the #/ path list syntax entirely.
* boot-9.scm (read-path-list-notation,
read-path-list-notation-warning): Deleted.
Don't register read-path-list-notation-warning as a reader for
objects starting with '#/'.
1999-08-20 05:12:43 +00:00
Jim Blandy
c6e23ea25f Update FSF address in copyright notices. 1999-08-06 07:26:07 +00:00
Mikael Djurfeldt
1a961d7ef3 Renamed module-modified! --> module-modified 1999-08-05 17:56:15 +00:00
Mikael Djurfeldt
eba968840d *** empty log message *** 1999-08-05 12:08:53 +00:00
Mikael Djurfeldt
1777c18bc1 GOOPS needs the observer protocol specified for the new module
system.  Here's a simple version for the old module system:
* boot-9.scm (module-observers, module-weak-observers,
module-observer-id, set-module-observers!,
set-module-observer-id!): New accessors.
(module-type): Added slots `observers',	`weak-observers' and
`observer-id'.
(module-observe, module-observe-weak, module-unobserve,
module-modified!): New procedures.
(module-make-local-var!, module-add!, module-remove!,
module-clear!, module-define!, module-use!): Call module-modified!.
1999-08-05 12:05:57 +00:00
Mikael Djurfeldt
2a52b4295e *** empty log message *** 1999-07-29 18:15:24 +00:00
Mikael Djurfeldt
5f5f264287 * boot-9.scm (error-catching-loop): Correct non-RnRS usage of internal
defines.
1999-07-29 18:12:21 +00:00
Marius Vollmer
0e8a8468a3 Added guile-readline subdirectory with the removed readline
support.
* guile-readline: New directory, see ChangeLog there.
* configure.in: Cause configure to descend into guile-readline
dir.
* Makefile.am: Likewise for make.
* NEWS: Explain how to activate the readline support.
* configure, Makefile.in, aclocal.m4: Regenerated.
1999-07-23 22:04:27 +00:00
Jim Blandy
59526439d6 *** empty log message *** 1999-07-19 19:07:11 +00:00
Jim Blandy
8cdfb9aa53 * streams.scm: New module, contributed by Michael Livshin.
* Makefile.am (ice9_sources): List it.
* Makefile.in: Regenerated.
1999-07-19 19:07:09 +00:00
Jim Blandy
a3bb43e586 *** empty log message *** 1999-07-19 08:11:28 +00:00
Jim Blandy
e3306d8063 * boot-9.scm (read-delimited!): Put the terminator in the correct
position.
1999-07-19 08:11:19 +00:00
Jim Blandy
131f97a979 Regenerated. 1999-07-19 07:42:33 +00:00
Gary Houston
6c9514275b 1999-07-04 Gary Houston <ghouston@easynet.co.uk>
* strports.c (scm_strprint_obj): bug fix: get pt from the port,
	not from the parameter obj.  (Thanks to Eric Moore.)
	* ports.h: SCM_CRDY, SCM_CUC, SCM_CRDYP, SCM_SETRDY, SCM_CUNGET,
	SCM_CGETUN, SCM_CLRDY, SCM_TRY_CLRDY, SCM_N_READY_CHARS: deleted.
	* strings.c (scm_make_string): throw error if 2nd arg isn't
	a char.
	* unif.c (scm_uniform_array_read_x): fix reading from a port.
	allow non-fports.
	(scm_uniform_array_write): likewise.
1999-06-29  Gary Houston  <ghouston@easynet.co.uk>
	* ports.c (scm_drain_input): rewritten.
	* fports.c (local_fclose): check putback_buf.
	(local_read_flush): likewise.
	* ports.c (scm_remove_from_port_table): maybe free putback_buf.
	* ports.h (scm_port): replace cbuf/cbufend/cp with putback_buf/
	putback_buf_size.
	(SCM_INITIAL_PUTBACK_BUF_SIZE): renamed from SCM_INITIAL_CBUF_SIZE.
	* ports.c (scm_grow_port_cbuf): deleted.
	(scm_add_to_port_table): initialise putback_buf to 0.  remove cbuf
	stuff.
	(scm_char_ready_p): check putback_buf
	(scm_fill_buffer): likewise.
	(scm_ungetc): rewritten.
1999-06-27  Gary Houston  <ghouston@easynet.co.uk>
	* fports.c (local_fclose): account for push-back buffer.
	* ports.c (scm_char_ready_p): check the push-back buffer in
	a new way.
	* ioext.c (scm_do_read_line): remove the extra code to handle
	the push-back buffer.
	* ports.c (scm_getc): don't use SCM_CRDYP etc.
	* ioext.c (scm_do_read_line): call scm_fill_buffer.
	* ports.c (scm_ungetc): don't call SCM_CUNGET.  reset the
	read buffer pointers.
	scm_fill_buffer: new procedure.
	(scm_getc): call scm_fill_buffer.
	* ports.h (struct scm_port): saved_read_buf, saved_read_pos,
	saved_read_end: new fields.
1999-07-04  Gary Houston  <ghouston@easynet.co.uk>
	* configure.in: don't check for ways to violate stdio abstraction.
1999-07-04 11:02:21 +00:00
Jim Blandy
ab41a129a8 never finished 1999-06-30 09:27:12 +00:00
Mikael Djurfeldt
40ed3fe694 *** empty log message *** 1999-06-29 10:36:08 +00:00
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