Hi Jim,

>>>>> Jim <[email protected]> writes:
>> Well, such document is what I called "exceptional case". 😅

> I agree.  But if I pushed a patch and it was accepted, and that patch broke
> functionality which even 3 AUCTeX users use, there might be a (very small)
> uproar.  ;-)

In my opinion, standalone package is out of scope of AUCTeX "master
file" notion. So I recommend you to stop worrying over standalone
package. Let's concentrate on fixing region compilation to work with
ConTeXt sub files.
(When standalone package is used, a "sub file" can be both a master
file of itself and a sub file of another. AUCTeX doesn't expect such
situation and can't handle it in perfectly consistent way. I think users
of standalone package who use AUCTeX should be aware of that limitation
and actually are.)

> Yes, I see that.  Of course, in this case, there is no need to look in the
> sub-file at all, since it has no preamble.  So I hypothesize that the code
> in tex.el which looks through the sub-file for a preamble is there
> explicitly for those 3 people that have exceptional usage.

I don't think so. standalone package is relatively new[1] and
`TeX-region-create' is much older. The behavior of `TeX-region-create'
you are talking about must be just for simplicity.

[1] https://www.ctan.org/pkg/standalone It seems that standalone was
born in 2010.

> Yes, but for those 3 exceptional people, is it doing The Right Thing?

As I said above, I think we don't have to worry about that. In my
opinion, we just can't define The Right Thing for the sub file under
standalone package.

> Q: When I do C-c C-b in a sub-file, and there is an error, C-c ` takes me
>    to _region_.tex, rather than keeping me in my current file.
>    Is this expected, or is this only happening in the ConTeXt case?

Not only for ConTeXt, but also for plain TeX and Texinfo. We need a
working parser for error message, but AUCTeX has only one for LaTeX.

Ikumi Keita
#StandWithUkraine #StopWarInUkraine
#Gaza #StopGenocide #CeasefireNOW
#IProtestAgainstTrumpAndNetanyahu'sAttackOnIran,WhichViolatesInternationalLaw

Reply via email to