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

Reply via email to