From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.devel Subject: Re: Discussion for %display-auto-compilation-messages (and --no-auto-compilation-messages option) Date: Sun, 02 Mar 2014 22:13:48 +0100 Message-ID: <87a9d8tib7.fsf@gnu.org> References: <53125A46.3010407@gmail.com> 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 1393794855 16134 80.91.229.3 (2 Mar 2014 21:14:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Mar 2014 21:14:15 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sun Mar 02 22:14:24 2014 Return-path: Envelope-to: guile-devel@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 1WKDiH-0007cB-L0 for guile-devel@m.gmane.org; Sun, 02 Mar 2014 22:14:21 +0100 Original-Received: from localhost ([::1]:36663 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKDiH-0004bV-7o for guile-devel@m.gmane.org; Sun, 02 Mar 2014 16:14:21 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34259) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKDi7-0004bK-UP for guile-devel@gnu.org; Sun, 02 Mar 2014 16:14:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKDi0-0005VG-JS for guile-devel@gnu.org; Sun, 02 Mar 2014 16:14:11 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:45021) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKDi0-0005V9-C8 for guile-devel@gnu.org; Sun, 02 Mar 2014 16:14:04 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WKDhu-0007Sn-OR for guile-devel@gnu.org; Sun, 02 Mar 2014 22:13:58 +0100 Original-Received: from reverse-83.fdn.fr ([80.67.176.83]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Mar 2014 22:13:58 +0100 Original-Received: from ludo by reverse-83.fdn.fr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 02 Mar 2014 22:13:58 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 25 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: reverse-83.fdn.fr X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 12 =?utf-8?Q?Vent=C3=B4se?= an 222 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:6N+1123HBpevMBy4hUEWYp+nzuo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:16942 Archived-At: Hi, Sjoerd van Leent skribis: > - scm_puts_unlocked (";;; compiling ", scm_current_error_port ()); > - scm_display (source, scm_current_error_port ()); > - scm_newline (scm_current_error_port ()); > + if (scm_is_true (*scm_loc_display_auto_compilation_messages)) > + { > + scm_puts_unlocked (";;; compiling ", scm_current_error_port ()); > + scm_display (source, scm_current_error_port ()); > + scm_newline (scm_current_error_port ()); > + } FWIW, I think the approach should rather be to have a special port (a fluid) for such things, say, ‘current-notification-port’. We’d simply replace scm_current_error_port by scm_current_notication_port above. The command-line option could be --quiet. It would bind both current-notification-port and current-warning-port to a void port. WDYT? Would you like to adjust the patch accordingly? Thanks, Ludo’.