Hi,
after some further poking and prodding, it seemed to me that some
significant development was needed. Aside from the issues I mentioned
previously, in ConTeXt Mk IV and LMTX, the error message format is
different than (e.g., pdftex) (and Hans Hagen confirmed that the old error
message format is not coming back to this world).
Because of the different format, various regexps needed changing, and in
other places it seemed more sensible to refactor some code.
I have modified tex.el and context.el, and it now works (more or less) as
expected. I want to do a bit more testing, but I think I am close to done.
When I am done, how do I get my changes accepted?
-> Should I email the new files (or diffs) to someone? If so, who?
-> Should I email the files (or diffs) to this bug report?
Please advise, thanks.
Jim
On Mon, Feb 9, 2026 at 21:12 (-0400), Jim Diamond wrote:
> Hi Ikumi and Arash (and anyone else looking at this),
> after poking around for a bit, I've come to the conclusion that the bulk of
> the problem (if not all of it) is TeX-ConTeXt-sentinel.
> First, there is some peculiar code in there. For example, I see
> (cond ((TeX-TeX-sentinel-check process name))
> which has a CONDITION, but not a BODY. It doesn't make sense to me,
> although maybe there is some side-effect or some other thing that elisp
> wizards recognize, but I don't.
> Second, unlike TeX-TeX-sentinel and TeX-LaTeX-sentinel, it (apparently)
> doesn't attempt to parse the errors.
> Third, the comment for the ConTeXt version of that function doesn't say
> Parse the output buffer to collect errors and warnings if the
> variable `TeX-parse-all-errors' is non-nil.
> Open the error overview if
> `TeX-error-overview-open-after-TeX-run' is non-nil and there are
> errors or warnings to show."
> unlike the other two.
> Fourth, when I change context.el to have
> (setq TeX-sentinel-default-function #'TeX-TeX-sentinel))
> instead of
> (setq TeX-sentinel-default-function #'TeX-ConTeXt-sentinel))
> then C-c ` actually does something (sort of) sensible.
> -> It doesn't parse things correctly, so the *TeX Help* buffer doesn't have
> the complete error message, and
> -> It complains "Could not determine file for error" and replaces the
> window showing the ConTeXt file with a window showing the actual output.
> (Which means you do get to see the error, but your TeX file is no longer
> visible.)
> (The same problem happens if I try TeX-LaTeX-sentinel.)
> I don't see how TeX-ConTeXt-sentinel() ever did anything useful. But it
> has been around a long time, so maybe it worked back in ConTeXt MkII days.
> I would guess (someone familiar with the AUCTeX code base might want to
> comment on this) that a whole new TeX-ConTeXt-sentinel() function is
> needed, and perhaps TeX-find-display-help() needs some help as well.
> Thoughts?
> Jim
_______________________________________________
bug-auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-auctex