unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: "Andy Wingo" <wingo@pobox.com>
Cc: guile-devel@gnu.org
Subject: Truncated print
Date: Sun, 03 Jan 2010 00:52:31 +0100	[thread overview]
Message-ID: <87bphc9i9s.fsf@gnu.org> (raw)
In-Reply-To: <E1NPbB4-00045m-3S@cvs.savannah.gnu.org> (Andy Wingo's message of "Tue, 29 Dec 2009 12:27:54 +0000")

Howdy!

"Andy Wingo" <wingo@pobox.com> writes:

> commit b8596c08ac2ef2201c1e8559ac5f4d62ebde3d91
> Author: Andy Wingo <wingo@pobox.com>
> Date:   Tue Dec 29 13:26:41 2009 +0100
>
>     add ~@y truncated printing directive to format
>     
>     * doc/ref/misc-modules.texi (Formatted Output): Add documentation for
>       the new ~@y format directive.
>       (Pretty Printing): Add documentation for truncated-write.
>     
>     * module/ice-9/format.scm (format): Add ~@y, for doing a truncated
>       print. Also, allow both ~y variants to take a width parameter.

Nice!  Can you please add test cases, e.g., based on the examples added
to the manual?

> +(truncated-print "The quick brown fox" #:width 10) (newline)
> +@print{} "The quick brown..."

I think it’d be nice to default to ‘HORIZONTAL ELLIPSIS’ (U+2026).
Perhaps the ellipsis string could be a keyword parameter?

Thanks,
Ludo’.




       reply	other threads:[~2010-01-02 23:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1NPbB4-00045m-3S@cvs.savannah.gnu.org>
2010-01-02 23:52 ` Ludovic Courtès [this message]
2010-01-03 12:22   ` Truncated print Andy Wingo
2010-01-05  0:28     ` Ludovic Courtès
2010-01-05  9:01       ` Andy Wingo
2010-01-08 20:55         ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bphc9i9s.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-devel@gnu.org \
    --cc=wingo@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).