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

16 commits

Author SHA1 Message Date
Kevin Ryde
ff1e26b92e (format:out-num-padded): Print "+" on 0 under @ modifier. 2004-09-01 23:49:41 +00:00
Kevin Ryde
f9d8f9730f (format:out): Ignore excess arguments, per common lisp. 2004-09-01 23:48:07 +00:00
Kevin Ryde
28fdf6ac32 2004-05-25 Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>
* format.scm: Remove the arbitrary limit of 100 iterations for the
	~{...~} control structure.
2004-07-19 00:13:17 +00:00
Rob Browning
26a03f0796 (format:out-substr): Update the column counter
correctly. This fixes the behavior of ~T (tabbing) after ~F, for
instance.
Patch by Matthias Koeppe <mkoeppe@mail.math.uni-magdeburg.de>.
2004-01-13 16:56:11 +00:00
Marius Vollmer
efc6c94c44 (string-index, list-head): Removed, we already these in the core. 2001-11-27 22:30:04 +00:00
Marius Vollmer
3cc34e16be Use (ice-9 and-let-star).
(format:out): Initialize format:output-col with current column of
`port', if it has one.  Else leave it alone.  Thanks to Matthias
Köppe!
2001-06-09 18:14:36 +00:00
Marius Vollmer
9a7d04c37c Added kluge at top that keeps `export' from
re-exporting the `format' variable of the `(guile)' module.
2001-06-04 22:09:39 +00:00
Marius Vollmer
b337528fb5 * Makefile.am (ice9_sources): Added "pretty-print.scm".
* pretty-print.scm: New file, copied from SLIB.
* format.scm: Autoload `pretty-print'.
2001-05-25 00:15:32 +00:00
Marius Vollmer
296ff5e78b Merged from mvo-vcell-cleanup-1-branch. 2001-05-15 14:59:42 +00:00
Mikael Djurfeldt
a510a7d8d5 * format.scm (format:obj->str): Made tail-recursive. (Thanks to
Matthias Köppe.)
2000-08-14 15:40:03 +00:00
Mikael Djurfeldt
186cf94654 * format.scm (format:obj->str): Handle circular references. Also,
print improper lists with (x y . z) syntax rather than as
individual pairs.  (This code should probably be integrated into C
level facilities.  It is currently terribly slow.)
2000-04-04 11:40:39 +00:00
Mikael Djurfeldt
1af9072d73 * format.scm (format): Reintroduce (define format format:format)
so that the binding in the public interface of the module will be OK.
2000-02-11 04:48:07 +00:00
Greg J. Badros
14469b7c69 * format.scm: Use (variable-set! (builtin-variable 'format)) to
re-define format to be format:format (instead of just define,
which interacts poorly with the module system).  Thanks to Shuji
Narazaki for this change.
2000-01-20 20:58:30 +00:00
Jim Blandy
8a7391cd1a * format.scm (format:format-work): Use #\tab and #\page instead of
slib:form-feed and slib:tab.  (Thanks to Ceri Storey.)

* format.scm (format:abort): Call error, not slib:error.
1999-09-11 17:51:09 +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
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