← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [docbook-apps] quite processing output - hiding "computing chunks..."

From
Stefan Kost <>
Date
2011-04-27T10:01:58+00:00
ID
Thread
Re: [docbook-apps] quite processing output - hiding "computing chunks..."
On 14.04.2011 20:02, Bob Stayton wrote:
> The patch makes sense.  But on further investigation, I find that
> DocBook XSL has two top-level params that do the same thing: turn off
> the chunk filename messages.  We have:
>
> $chunk.quietly  (added in 2002 and documented)
> $chunker.output.quiet (added in 2005 and not documented)
>
> They are used inconsistently, so I believe the second one was added
> without knowledge of the first.  I'm going to remove
> $chunker.output.quiet and use $chunk.quietly exclusively in the next
> release.  Since $chunker.output.quiet was not documented, removing it
> should not have a great impact, no?

Sorry for late reply. And yes, please make it consistent. The worst case
scenario is that some one see massages unexpectedly, no big deal imho.
And I just found out about $chunker.output.quiet by reading the code :)
>
> Bob Stayton
> Sagehill Enterprises
> 
>
>
> ----- Original Message ----- From: "Stefan Kost"
> <>
> To: <>
> Sent: Thursday, April 14, 2011 12:46 AM
> Subject: [docbook-apps] quite processing output - hiding "computing
> chunks ..."
>
>
>> hi,
>>
>> I am working on a rather cosmetic feature request for gtk-doc:
>> https://bugzilla.gnome.org/show_bug.cgi?id=590927
>>
>> In order to have a silent build output if desired I am already passing
>> these variable to the xsltprocessor.
>> chunk.quietly $quiet
>> chunker.output.quiet $quiet
>> Still I get one line: "Computing chunks..." comming from
>>
>> Would it make sense to apply something like the patch below?
>>
>> Stefan
>>
>> --- chunk-common.xsl.orig    2011-04-14 10:42:19.497446000 +0300
>> +++ chunk-common.xsl    2011-04-14 10:45:08.741446000 +0300
>> @@ -30,14 +30,18 @@
>>   <xsl:if test="$chunk.fast != 0">
>>     <xsl:choose>
>>       <xsl:when test="$exsl.node.set.available != 0">
>> -        <xsl:message>Computing chunks...</xsl:message>
>> +        <xsl:if test="$chunker.output.quiet = 0">
>> +          <xsl:message>Computing chunks...</xsl:message>
>> +        </xsl:if>
>>         <xsl:apply-templates select="/*" mode="find.chunks"/>
>>       </xsl:when>
>>       <xsl:otherwise>
>> -        <xsl:message>
>> -          <xsl:text>Fast chunking requires exsl:node-set(). </xsl:text>
>> -          <xsl:text>Using "slow" chunking.</xsl:text>
>> -        </xsl:message>
>> +        <xsl:if test="$chunker.output.quiet = 0">
>> +          <xsl:message>
>> +            <xsl:text>Fast chunking requires exsl:node-set().
>> </xsl:text>
>> +            <xsl:text>Using "slow" chunking.</xsl:text>
>> +          </xsl:message>
>> +        </xsl:if>
>>       </xsl:otherwise>
>>     </xsl:choose>
>>   </xsl:if>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: 
>> For additional commands, e-mail: 
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
← Prev in month ← Prev in thread
Next in thread → Next in month →