Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#225 pgfkeys "/errors/unknown choice value" ignores parameters

v1.0 (example)
closed-fixed
nobody
None
5
2013-07-17
2012-11-03
juan antonio
No

the "/errors/unknown choice value" key ignores its supplied arguments, which should be the offending key and value. The current definition reads:

\pgfkeys{/errors/unknown choice value/.code 2 args=\pgfkeys@error{%
Choice '\pgfkeyscurrentname' unknown in key
'\pgfkeyscurrentpath'. I am going to ignore this key}}

But should be changed to:

\pgfkeys{/errors/unknown choice value/.code 2 args=\pgfkeys@error{%
Choice '#2' unknown in key
'#1'. I am going to ignore this key}}

Discussion

  • Till Tantau
    Till Tantau
    2013-07-17

    Hi,

    actually, changing it in the way proposed leads to an endless loop. However, this is due to the parameters passes to the error handler, which were not really correct -- and neither were they for the other error handlers. I fixed them, so that, now, also the above handler can use #1 and #2.

    Fixed in CVS.

     
  • Till Tantau
    Till Tantau
    2013-07-17

    • status: open --> closed-fixed
    • Group: --> v1.0 (example)