Steps to reproduce. Minimal LaTeX file test.tex:
\documentclass{article}
\begin{document}
\input{test.l2e}
\end{document}
file test.l2e:
\oops
run pdflatex or xelatex on test and hit E at the error prompt.
pdflatex says:
pdflatex:calledit: unexpected if_ptr=5 not in range 1..2,from input_stack[2].namefield=2378
xelatex says:
xelatex:calledit: unexpected if_ptr=6 not in range 1..2,from input_stack[2].namefield=2230090
lualatex calls the editor correctly.
\input test.l2eand you use plain pdftex it opens the editor on e – David Carlisle Apr 27 '21 at 19:23