Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2880)

Issue 5624050: Directs output from identifier-foll*.ly to stderr (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by PhilEHolmes
Modified:
12 years, 2 months ago
Reviewers:
Graham Percival, dak, mail
CC:
lilypond-devel_gnu.org
Visibility:
Public.

Description

identifier-following-chordmode.ly sends a load of output to stdout - i.e. the terminal. This sends it to stderr - i.e. the logifles.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M input/regression/identifier-following-chordmode.ly View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 5
PhilEHolmes
Please review.
12 years, 2 months ago (2012-02-04 14:40:59 UTC) #1
mail_philholmes.net
----- Original Message ----- From: <PhilEHolmes@googlemail.com> To: <dak@gnu.org>; <graham@percival-music.ca> Cc: <reply@codereview-hr.appspotmail.com>; <lilypond-devel@gnu.org> Sent: Saturday, February ...
12 years, 2 months ago (2012-02-04 14:52:45 UTC) #2
dak
On 2012/02/04 14:52:45, mail_philholmes.net wrote: > ----- Original Message ----- > From: <mailto:PhilEHolmes@googlemail.com> > To: ...
12 years, 2 months ago (2012-02-04 15:11:47 UTC) #3
mail_philholmes.net
----- Original Message ----- From: <dak@gnu.org> To: <PhilEHolmes@googlemail.com>; <graham@percival-music.ca>; <mail@philholmes.net> Cc: <lilypond-devel@gnu.org>; <reply@codereview-hr.appspotmail.com> Sent: Saturday, ...
12 years, 2 months ago (2012-02-04 15:35:28 UTC) #4
dak
12 years, 2 months ago (2012-02-04 15:42:43 UTC) #5
On 2012/02/04 15:35:28, mail_philholmes.net wrote:
> ----- Original Message ----- 
> From: <mailto:dak@gnu.org>
> To: <PhilEHolmes@googlemail.com>; <graham@percival-music.ca>; 
> <mailto:mail@philholmes.net>
> Cc: <lilypond-devel@gnu.org>; <mailto:reply@codereview-hr.appspotmail.com>
> Sent: Saturday, February 04, 2012 3:11 PM
> Subject: Re: Directs output from identifier-foll*.ly to stderr (issue 
> 5624050)
> 
> 
> > On 2012/02/04 14:52:45, http://mail_philholmes.net wrote:
> >> ----- Original Message -----
> >> From: <mailto:PhilEHolmes@googlemail.com>
> >> To: <dak@gnu.org>; <mailto:graham@percival-music.ca>
> >> Cc: <reply@codereview-hr.appspotmail.com>;
> > <mailto:lilypond-devel@gnu.org>
> >> Sent: Saturday, February 04, 2012 2:40 PM
> >> Subject: Directs output from identifier-foll*.ly to stderr (issue
> > 5624050)
> >
> >
> >> > Reviewers: dak, Graham Percival,
> >> >
> >> > Message:
> >> > Please review.
> >> >
> >> > Description:
> >> > identifier-following-chordmode.ly sends a load of output to stdout -
> >> > i.e. the terminal.  This sends it to stderr - i.e. the logifles.
> >> >
> >> > Please review this at http://codereview.appspot.com/5624050/
> >> >
> >> > Affected files:
> >> >   M input/regression/identifier-following-chordmode.ly
> >> >
> >> >
> >> > Index: input/regression/identifier-following-chordmode.ly
> >> > diff --git a/input/regression/identifier-following-chordmode.ly
> >> > b/input/regression/identifier-following-chordmode.ly
> >> > index
> >> >
> >
> >
>
bec19ea680e0eca5f0f79903825e122db2d42b34..9735f4310691971256aa5c82073ed6da1bc776d7
> >
> >> > 100644
> >> > --- a/input/regression/identifier-following-chordmode.ly
> >> > +++ b/input/regression/identifier-following-chordmode.ly
> >> > @@ -12,7 +12,7 @@ modifier."
> >> >  myDisplayMusic =
> >> >  #(define-music-function (parser location music)
> >> >   (ly:music?)
> >> > - (display-scheme-music music)
> >> > + (display-scheme-music music (current-error-port))
> >> >   (make-music 'SequentialMusic 'void #t))
> >> >
> >> >  \myDisplayMusic \chordmode { c }
> >
> >
> >> By the way - passes make, make doc.
> >
> >> --
> >> Phil Holmes
> >
> >
> >
> > I object to sending things to stderr by default instead of the current
> > output port.  That makes it impossible to get the stuff anywhere else
> > while the current output port can be redirected easily in Scheme.
> >
> > http://codereview.appspot.com/5624050/
> >
> 
> If I set the output in the regtests to be (current-output-port) the output 
> goes to stdout.  I appreciate that we generally want the flexibility to send 
> output to one or the other - however, in this case, since it's a regtest, 
> not part of the executable environment, it seems a reasonable solution. 
> Anyone wanting to revert to stdout can simply edit the lilypond source.
> 
> If this is the wrong approach, please let me know what would be correct.

I missed that this was a definition in a regtest instead of general-purpose
code.  So cancel my objection.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b