On Tue, Aug 19, 2025 at 6:34 PM Arash Esbati <ar...@gnu.org> wrote:
>
> Hongyi Zhao <hongyi.z...@gmail.com> writes:
>
> > Yes. This issue is triggered by straight itself. Specifically, I
> > observed it from the straight-process buffer during the startup of
> > emcas, which I didn't mention at the beginning.
>
> Ok, so you probably have to tell straight which texi files to compile
> and which to ignore, or something like that?  I don't use straight, so I
> can't tell anything about it but this isn't an AUCTeX issue.

Based on my tries, the following method does the trick:

(use-package auctex
  :straight (:type git
             :host nil
             :repo "https://git.savannah.gnu.org/git/auctex.git";
             ;; Use official AUCTeX build system to compile all files properly
             :pre-build (("make" "-j" "all"))
             ;; Disable straight.el's default info compilation, keep
other build steps
             :build (:not info)
             ;; Fix circular dependency issue in auctex-autoloads.el
             :post-build (("sed" "-i" "/^(defalias 'context-mode
#'ConTeXt-mode)$/s/^/;; /" "auctex-autoloads.el"))
             ;; Include default files plus all documentation files
             :files (:defaults "doc/*")))

> Best, Arash

Regards,
Zhao

Reply via email to