Menu

#429 \pgfkeyscurrentkey is not updated on assigning a new value to a .code subkey

v1.0 (example)
closed-fixed
nobody
None
5
2019-12-01
2017-07-17
Evan Aad
No

If the handler config is set to only existing, trying to assign a new value to a .code subkey leaves the \pgfkeyscurrentkey macro empty.

Minimal example:

\documentclass{article}
\usepackage{pgfkeys}
\begin{document}
    \pgfkeys{/handler config=only existing}
    \pgfkeys{/handlers/.unknown/.code='\pgfkeyscurrentkey'}
    \pgfkeys{/root/subdir/.code=hello}
\end{document}

Output:

''

Expected output:

'/root/subdir/.code'

Discussion

  • Stefan Pinnow

    Stefan Pinnow - 2019-12-01
    • status: open --> closed-fixed
     
  • Stefan Pinnow

    Stefan Pinnow - 2019-12-01