Tassilo Horn <[email protected]> writes:

>>   (load-file "~/Repos/el/auctex/style/amstex.el")
>>
>> using M-:, `TeX-style-hook-list' contains just an empty ("amstext")
>> entry without hook function!  That entry has been there before, too.
>
> Stupid me, of course I wanted to load amstext.el, not amstex.el.  When
> loading that manually, the \text macro gets inserted with braces as it
> should be.  So the problem is only that the style files don't get
> loaded automatically.

Ok, I've debugged that.  The reason is that I run AUCTeX from CVS, but I
run it from the checkout directory instead of installing it with "make
install".  That way, `TeX-data-directory' gets set to

  "/home/horn/Repos/el/auctex/auctex"

by (expand-file-name "auctex" (file-name-directory load-file-name)),
whereas it has to be just

  "/home/horn/Repos/el/auctex"

in the run-from-checkout case.  So when I set `TeX-data-directory' like
so before loading AUCTeX, doing C-c RET text RET inserts \text{} as it
should.

I also verified that styles get loaded correctly with the ELPA package.

So Lionel, if you also run AUCTeX from the checkout directory, set
`TeX-data-directory' to this directory before loading AUCTeX.

Bye,
Tassilo


_______________________________________________
auctex mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/auctex

Reply via email to