GNU bug report logs -
#21188
Preview installed from the package manager changes LaTeX-mode-hook
Previous Next
Reported by: Joseph Mingrone <jrm <at> ftfl.ca>
Date: Tue, 4 Aug 2015 18:26:02 UTC
Severity: normal
Done: Tassilo Horn <tsdh <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #8 received at 21188 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Joseph Mingrone <jrm <at> ftfl.ca> writes:
> Tassilo Horn <tsdh <at> gnu.org> writes:
>> César Asensio <asensio.cesar <at> gmail.com> writes:
>> Hi César,
>>> I'm a longtime AUCTeX user, and I've never felt the need of using
>>> Preview in my daily LaTeX editing. Prior to the inclusion of AUCTeX
>>> in the Emacs package manager there was the possibility of loading
>>> AucTeX and Preview separately, but now they are both loaded
>>> automatically. This in itself would be harmless if not for Preview
>>> changing the variable `LaTeX-mode-hook' *after* the init file
>>> settings.
>> I don't see why that's a problem. Could you please elaborate a bit?
> I know this is an old post, but the problem, in my view, still exists.
> AUTeX provides for customization for LaTeX-mode-hook, but inside the
> function LaTeX-preview-setup in preview.el, it overwrites the value with
> (remove-hook 'LaTeX-mode-hook #'LaTeX-preview-setup) (add-hook
> 'LaTeX-mode-hook #'preview-mode-setup).
Sorry, I misread the code snippet above; it doesn't seem to be the cause of
LaTeX-mode-hook being overwritten.
[signature.asc (application/pgp-signature, inline)]
This bug report was last modified 9 years and 284 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.