From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Hartwig Newsgroups: gmane.lisp.guile.user Subject: Re: repl, abridged output? Date: Tue, 4 Dec 2012 09:43:55 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1354585458 1164 80.91.229.3 (4 Dec 2012 01:44:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Dec 2012 01:44:18 +0000 (UTC) Cc: guile-user@gnu.org To: Daniel Llorens Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Dec 04 02:44:31 2012 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TfhYg-0002T9-VU for guile-user@m.gmane.org; Tue, 04 Dec 2012 02:44:27 +0100 Original-Received: from localhost ([::1]:55027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfhYR-0000jc-SL for guile-user@m.gmane.org; Mon, 03 Dec 2012 20:44:11 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43327) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfhYL-0000jI-Ew for guile-user@gnu.org; Mon, 03 Dec 2012 20:44:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TfhYI-0004wZ-Ed for guile-user@gnu.org; Mon, 03 Dec 2012 20:44:04 -0500 Original-Received: from mail-wg0-f51.google.com ([74.125.82.51]:49808) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TfhYD-0004w9-60 for guile-user@gnu.org; Mon, 03 Dec 2012 20:44:02 -0500 Original-Received: by mail-wg0-f51.google.com with SMTP id gg4so1497586wgb.30 for ; Mon, 03 Dec 2012 17:43:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=P8Cf1DxqaWkkp9tokqbNcwiSMGxpJslpNWozM1wqVZc=; b=B06vHqtIhtcuobnY2HLDwSvH/SrehTa4ZoTlKZVzYypgmRezz2jA66JpJVEwK5ydfj W/HoSnIoku9JAoBQW6LGsbYo8XuBaCqnIx4PiMmWJeFO1HXxDUYXnPD3JqJX06zOdMwt dNjxWvYJzWb/Vha4fvXxJOzzEuXQwI/Tgl1737D2NrB/V7fJPcGTLAsdBPqD2ukNEKgh XNAyXTwRfx2lJnjJqPWmp+aOVK2ChKUIHJZrEtMYk8xr5RJuW+u8iu1p8O/10hSZBZNz IqVdjhRqoqhU8wqWUQnWZmoazG8JwLmk6AZzSVwF4Xdjgq/BXexJBvweh63tf2xCZX8C TUfw== Original-Received: by 10.216.209.77 with SMTP id r55mr4069198weo.81.1354585435885; Mon, 03 Dec 2012 17:43:55 -0800 (PST) Original-Received: by 10.216.125.68 with HTTP; Mon, 3 Dec 2012 17:43:55 -0800 (PST) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 74.125.82.51 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:9724 Archived-At: On 3 December 2012 20:39, Daniel Llorens wrote: > I've seen that there's a REPL command ,inspect that produces > abridged output. Is it possible to have this as the default for > printing to the REPL? Is there any way to configure this? scheme@(guile-user)> (eval '(set! repl-print (lambda (repl val) (if (not (eq? val *unspecified*)) (begin (run-hook before-print-hook val) (format #t "~20@y" val) (newline))))) (resolve-module '(system repl common))) scheme@(guile-user)> (use-modules (srfi srfi-1)) scheme@(guile-user)> (iota 500) $1 =3D (0 1 2 3 4 5 6 7 =E2=80=A6)