unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Mark H Weaver <mhw@netris.org>
To: ludo@gnu.org (Ludovic Courtès)
Cc: Andy Wingo <wingo@pobox.com>, guile-devel@gnu.org
Subject: Re: Discussion for %display-auto-compilation-messages (and --no-auto-compilation-messages option)
Date: Tue, 25 Mar 2014 22:34:00 -0400	[thread overview]
Message-ID: <8761n1k7s7.fsf@yeeloong.lan> (raw)
In-Reply-To: <87vbv23rhy.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Tue, 25 Mar 2014 22:20:09 +0100")

ludo@gnu.org (Ludovic Courtès) writes:

> Andy Wingo <wingo@pobox.com> skribis:
>
>> On Sun 02 Mar 2014 22:13, ludo@gnu.org (Ludovic Courtès) writes:
>>
>>> 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.
>>
>> Isn't that the same as current-warning-port?  I thought this was one of
>> the use cases for current-warning-port :)
>
> Yeah it’s very similar, but we could want to differentiate between
> actual warnings and mere notifications.  Dunno if it’s important.

One issue worth thinking about is that there are cases where code has to
parameterize all of these port parameters.

For example, I recently discovered that REPL Servers weren't redirecting
the warning port to the socket, so warnings about expressions typed on a
REPL server were being sent to the main program's stderr.  I fixed this
in 5e74217c7cf07ad474cdce1a01e049492e7ef1b7, but if we add another port
parameter I'll have to fix that in at least two places now: server.scm
and coop-server.scm.

I wonder if external code needs to sometimes do this as well.  How will
they cope with a periodically-expanding set of port parameters, while
retaining compatible with older versions of guile that lack some of
them?  Should we add a 'parameterize-all-stdout-like-ports' macro?

     Mark



  reply	other threads:[~2014-03-26  2:34 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-01 22:08 Discussion for %display-auto-compilation-messages (and --no-auto-compilation-messages option) Sjoerd van Leent
2014-03-02 21:13 ` Ludovic Courtès
2014-03-03 15:17   ` Sjoerd van Leent
2014-03-25 20:58   ` Andy Wingo
2014-03-25 21:20     ` Ludovic Courtès
2014-03-26  2:34       ` Mark H Weaver [this message]
2014-03-26  3:19         ` Mark H Weaver
2014-03-26  8:18           ` Andy Wingo

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=8761n1k7s7.fsf@yeeloong.lan \
    --to=mhw@netris.org \
    --cc=guile-devel@gnu.org \
    --cc=ludo@gnu.org \
    --cc=wingo@pobox.com \
    /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).