[tex-k] texmfmp.c: calledit and the token list
Hironori KITAGAWA
h_kitagawa2001 at yahoo.co.jp
Tue Apr 27 04:59:31 CEST 2021
Hello all,
Typesetting the file
% tex calledit.tex
\def\B{\begingroup\def\A{\undefined}\A\endgroup}\B
and responding "e" to an error causes
> tex:calledit: unexpected if_ptr=5 not in range 1..1,from input_stack[2].namefield=323
When calledit is called, inputstack[2].statefield is 0 (token_list).
According to [307] of tex.web, "statefield is zero" means "getting input
from a token list".
So I think that the inputstack[n] should be skipped in the first for-loop
when its statefield is zero, as in the attached patch.
Regards
Hironori KITAGAWA
<h_kitagawa2001 at yahoo.co.jp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: texmfmp_210427_calledit.diff
Type: application/octet-stream
Size: 733 bytes
Desc: not available
URL: <https://tug.org/pipermail/tex-k/attachments/20210427/2d23e39b/attachment.obj>
More information about the tex-k
mailing list.