Hi David,

Partial reason, at least on my side, was figured out.

>>>>> Ikumi Keita <[email protected]> writes:
> The value of `AUCTeX-version' is "13.0.5.2021-03-25".

Damn, doom doesn't use ELPA release version but check out the git
repository directly at a particular commit. This date of the repository
has problem in preview.el.in and cause error if preview is enabled. That
problem was fixed after that date so ELPA release 13.0.6 is free of it.
The reason that I didn't get proper local value was probably the error
during the initial process of opening LaTeX file.

>> For my part, I will try to figure out how do a "recipe" in Doom to
>> switch the Auctex version to 13.0.6, just to test this.

> In my opinion, that isn't prospective. AUCTeX 13.0.5 and 13.0.6 have
> only tiny difference which has little to do with this issue.

Sorry, I was wrong. If you can upgrade to ELPA release 13.0.6, one of
the problems would be resolved.

>>>>> David Denton <[email protected]> writes:
> Again, I was getting this problem long before I installed Doom.

I guess similar error interrupts the initial process of opening LaTeX
file. Please try (setq debug-on-error t) and open your LaTeX file. If my
guess is correct, emacs lisp debugger is invoked and a split window
shows backtraces like this:
----------------------------------------------------------------------
Debugger entered--Lisp error: (error "ad-enable-advice: ‘replace-highlight’ is 
not advis...")
  signal(error ("ad-enable-advice: ‘replace-highlight’ is not advis..."))
  error("ad-enable-advice: `%s' is not advised" replace-highlight)
  ad-enable-advice(replace-highlight before preview)
  #f(compiled-function (symbol value) #<bytecode 
0x201df3961>)(preview-query-replace-reveal t)
  custom-initialize-reset(preview-query-replace-reveal (funcall 
#'#f(compiled-function () #<bytecode 0x201df3945>)))
----------------------------------------------------------------------
Please copy & paste that contents and send it to us.

Regards,
Ikumi Keita

Reply via email to