Alexander Prähauser via Discussion list for AUCTeX developers 
<auctex-devel@gnu.org> writes:

> the style-file floatrow.el puts the function LaTeX-floatrow-auto-cleanup into
> the hook TeX-auto-cleanup-hook. This function calls LaTeX-floatrow-env-init,
> which re-sets the command to insert a figure-environment to
> LaTeX-floatrow-env-figure. This is extremely confusing because
> TeX-auto-cleanup-hook is run after any style-hooks are run and after
> TeX-update-style-hook is run.

We decided long time ago to put things like this in AUCTeX style files
which add entries to the parser:

  (add-hook 'TeX-auto-prepare-hook #'LaTeX-floatrow-auto-prepare t)
  (add-hook 'TeX-auto-cleanup-hook #'LaTeX-floatrow-auto-cleanup t)
  (add-hook 'TeX-update-style-hook #'TeX-auto-parse t)

> I have my own figure-insertion-function and it took me forever to find
> out why it wasn't called anymore when I did figure insertion using
> LaTeX-environment even though I added it using the
> TeX-update-style-hook to avoid style files overriding it. Isn't it
> enough to override the default once? Can you please change how this is
> done so people with their own functions aren't confused and frustrated
> when suddenly their functions aren't called anymore (like me)?

Can you show us some code how you add your stuff to AUCTeX?  Maybe we
can find a solution for you.  Until now, there were no complaints about
how AUCTeX styles do their job.

Best, Arash

  • Please reva... Alexander Prähauser via Discussion list for AUCTeX developers
    • Re: Pl... Arash Esbati

Reply via email to