From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nala Ginrut Newsgroups: gmane.lisp.guile.user Subject: Re: repl, abridged output? Date: Wed, 05 Dec 2012 15:00:28 +0800 Organization: HFG Message-ID: <1354690828.25329.62.camel@Renee-desktop.suse> References: <87vccit1kx.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1354690855 11855 80.91.229.3 (5 Dec 2012 07:00:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 5 Dec 2012 07:00:55 +0000 (UTC) Cc: guile-user@gnu.org To: Ludovic =?ISO-8859-1?Q?Court=E8s?= Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Dec 05 08:01:08 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 1Tg8yb-0007iS-VQ for guile-user@m.gmane.org; Wed, 05 Dec 2012 08:01:02 +0100 Original-Received: from localhost ([::1]:49705 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg8yQ-0001j2-10 for guile-user@m.gmane.org; Wed, 05 Dec 2012 02:00:50 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34703) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg8yI-0001iX-MJ for guile-user@gnu.org; Wed, 05 Dec 2012 02:00:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Tg8yH-0004hG-3u for guile-user@gnu.org; Wed, 05 Dec 2012 02:00:42 -0500 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:60698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Tg8yB-0004fQ-VV; Wed, 05 Dec 2012 02:00:36 -0500 Original-Received: by mail-pb0-f41.google.com with SMTP id xa7so3366277pbc.0 for ; Tue, 04 Dec 2012 23:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:subject:from:to:cc:date:in-reply-to:references :organization:content-type:x-mailer:mime-version :content-transfer-encoding; bh=mArbApa5RQKiQS9T+pXKON88y7LfJ083XvwG9E6LLuk=; b=nYE+qZYM++HSm1AW+zkeYoSEET7h8LGZzoN0GPqsElIWEZRWMa7EXg9sI2t3N4bZcC euj6LzroG4XgnPG3/qu7CpDDS78QL2C33DMXX6kqnUB+y0gtS6IjRnavMVgalO1q8/nQ 5Ujnh7POyad0xIK0wg+xamxQQGzD814A/MXwKXvJ6SOXbmfs89VP2FHovDHDWYGm7OIu +Q1loRG59uvzLpnm1rLkHAyQqlSrQ3pC3XsIXuQ6Id9ke0ovqNBNsPaU/g4Xmesw0euN F32GAQdjN0lxitF3thKxnuMrLhPU+mWvHHA3SWQMHP8tz2w9tzpnYQ/7pI6S31nDvKo2 DNzQ== Original-Received: by 10.68.209.136 with SMTP id mm8mr45741299pbc.146.1354690834184; Tue, 04 Dec 2012 23:00:34 -0800 (PST) Original-Received: from [147.2.147.112] ([61.14.130.226]) by mx.google.com with ESMTPS id gq10sm2388054pbc.54.2012.12.04.23.00.30 (version=SSLv3 cipher=OTHER); Tue, 04 Dec 2012 23:00:32 -0800 (PST) In-Reply-To: <87vccit1kx.fsf@gnu.org> X-Mailer: Evolution 3.4.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.41 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:9735 Archived-At: On Tue, 2012-12-04 at 13:59 +0100, Ludovic Courtès wrote: > Hi! > > Daniel Hartwig skribis: > > > 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 = (0 1 2 3 4 5 6 7 …) > > Indeed. Perhaps there should be a standard, simple way to do that. > Would you like to propose a patch? :-) > Daniel has posted a patch for that, and it simplified my color-REPL work. My patch will be based on his patch, then I don't have to patch 'pp' now. Coming soon. > Ludo’. > >