# Invocation() of a macro created via \let references original macro #849

Closed
opened this Issue Jul 9, 2017 · 1 comment

Projects
None yet
3 participants
Contributor

### tkw1536 commented Jul 9, 2017

 Assume we are defining a macro then copy it via a \let into a second macro with something like \def\dummymacro{} \let\othermacro\dummymacro If we now want to now have tokens representing the invocation of this macro, we should then be able to use Invocation('\othermacro');  which we would expect to return a single T_CS('\othermacro'). When running this code however, we get T_CS('\dummymacro') instead. This comes from a more complicated scenario I encountered while updating keyval bindings, but I have gotten it down to this very basic example. This caused an infinite loop, making debugging very hard.
Owner

### brucemiller commented Jul 15, 2017

 This should be fixed now; thanks for the report!