Subject: Re: bug#21188: Preview installed from the package manager changes LaTeX-mode-hook

From: Joseph Mingrone <[email-masked]>
Date: Tue, 04 Aug 2015 18:20:57 -0300

I've been exploring more.  Here is a summary of what I've found:

If I customize LaTeX-mode-hook and load a .tex file, the value of
`LaTeX-mode-hook' is wiped and replaced with only preview-mode-setup.

If I comment out the line

(add-hook 'LaTeX-mode-hook #'LaTeX-preview-setup)

in auctex-autoloads.el, the customized value of `LaTeX-mode-hook' is not
wiped.

If I change 

'(LaTeX-mode-hook '(flyspell-mode LaTeX-math-mode turn-on-reftex))

within (custom-set-variables.. in my init file to

'(LaTeX-mode-hook '(flyspell-mode LaTeX-math-mode turn-on-reftex) t)

the customized value is not wiped.