From: Andy Wingo <wingo@pobox.com>
To: bug-guile@gnu.org
Subject: duplicates handlers warnings should go to stderr, not stdout
Date: Sat, 01 Sep 2007 18:19:46 +0200 [thread overview]
Message-ID: <87veauicil.fsf@pobox.com> (raw)
Currently warnings about duplicates, etc are printed to the current
output port, whereas they should go to the error port.
Index: ice-9/boot-9.scm
===================================================================
RCS file: /cvsroot/guile/guile/guile-core/ice-9/boot-9.scm,v
retrieving revision 1.356.2.9
diff -u -u -r1.356.2.9 boot-9.scm
--- ice-9/boot-9.scm 8 Aug 2007 15:04:30 -0000 1.356.2.9
+++ ice-9/boot-9.scm 1 Sep 2007 16:18:05 -0000
@@ -3055,7 +3055,7 @@
#f))
(define (warn module name int1 val1 int2 val2 var val)
- (format #t
+ (format (current-error-port)
"WARNING: ~A: `~A' imported from both ~A and ~A\n"
(module-name module)
name
@@ -3077,7 +3077,7 @@
(define (warn-override-core module name int1 val1 int2 val2 var val)
(and (eq? int1 the-scm-module)
(begin
- (format #t
+ (format (current-error-port)
"WARNING: ~A: imported module ~A overrides core binding `~A'\n"
(module-name module)
(module-name int2)
--
http://wingolog.org/
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-guile
next reply other threads:[~2007-09-01 16:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-01 16:19 Andy Wingo [this message]
2007-09-01 17:11 ` duplicates handlers warnings should go to stderr, not stdout 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=87veauicil.fsf@pobox.com \
--to=wingo@pobox.com \
--cc=bug-guile@gnu.org \
/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).