From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Rottmann Newsgroups: gmane.lisp.guile.devel Subject: Re: How can I tell guile to shut up? ;) Date: Thu, 30 Jun 2011 03:24:06 +0200 Message-ID: <87r56cxgax.fsf@rotty.yi.org> References: <99db88be1896528082d33a77ec4cadbe.squirrel@webmail.kapsi.fi> <87y60lsjx5.fsf@pobox.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1309397086 22355 80.91.229.12 (30 Jun 2011 01:24:46 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 30 Jun 2011 01:24:46 +0000 (UTC) Cc: guile-devel , Juhani =?utf-8?Q?Viher=C3=A4koski?= To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Jun 30 03:24:41 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qc5zl-0007Us-Ep for guile-devel@m.gmane.org; Thu, 30 Jun 2011 03:24:41 +0200 Original-Received: from localhost ([::1]:40122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qc5zk-0007g2-AY for guile-devel@m.gmane.org; Wed, 29 Jun 2011 21:24:40 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qc5zN-0007fh-De for guile-devel@gnu.org; Wed, 29 Jun 2011 21:24:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qc5zM-0003JN-0r for guile-devel@gnu.org; Wed, 29 Jun 2011 21:24:17 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:50125) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Qc5zL-0003JJ-MV for guile-devel@gnu.org; Wed, 29 Jun 2011 21:24:15 -0400 Original-Received: (qmail invoked by alias); 30 Jun 2011 01:24:12 -0000 Original-Received: from 85-127-233-250.dynamic.xdsl-line.inode.at (EHLO nathot.lan) [85.127.233.250] by mail.gmx.net (mp011) with SMTP; 30 Jun 2011 03:24:12 +0200 X-Authenticated: #3102804 X-Provags-ID: V01U2FsdGVkX1+Wwy9uS3KWL3I4V5DXu7AbY6h8BkTXW4rL02SgmZ FAcfDd5Zinzai5 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by nathot.lan (Postfix) with ESMTP id 039943A69B; Thu, 30 Jun 2011 03:24:11 +0200 (CEST) Original-Received: from nathot.lan ([127.0.0.1]) by localhost (nathot.lan [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id oproNkbl8FKI; Thu, 30 Jun 2011 03:24:06 +0200 (CEST) Original-Received: from delenn.lan (delenn.lan [192.168.3.11]) by nathot.lan (Postfix) with ESMTP id B60C53A696; Thu, 30 Jun 2011 03:24:06 +0200 (CEST) Original-Received: by delenn.lan (Postfix, from userid 1000) id 638372C008A; Thu, 30 Jun 2011 03:24:06 +0200 (CEST) In-Reply-To: <87y60lsjx5.fsf@pobox.com> (Andy Wingo's message of "Tue, 28 Jun 2011 23:52:38 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 213.165.64.23 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12599 Archived-At: Andy Wingo writes: > After some thinking, the base thing to do is just to add a warning port, > and make warnings (non-fatal informative messages) write to that port. > I have done this in the attached patches. Any objections? > Great thing to do -- this adds quite some flexibility that can be put to good use. One thing about the implementation, though: I don't quite like that `%current-warning-port' (as already hinted at in the source) is intended to be private (but isn't, but that's another, harder, issue), however there is no way to redirect the warnings to another port for a dynamic extent save for using that (assumably) private API. How about (especially since it looks like R7RS will include a subset of it in the small language) moving SRFI 39 into the core and using that? Regards, Rotty -- Andreas Rottmann --