[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX] 11.85: preview adds its setup function to latex-mode-hook

From: David Reitter
Subject: [AUCTeX] 11.85: preview adds its setup function to latex-mode-hook
Date: Sun, 22 Mar 2009 17:01:01 -0400

FYI: a user's problem with 11.85: preview adds its setup function to latex-mode-hook, which is run before preview gets loaded.

Begin forwarded message:

From: David Reitter <address@hidden>
Date: March 22, 2009 4:59:19 PM EDT
To: Emacs on Mac OS X Mailing List <address@hidden>
Subject: Re: [OS X Emacs] enable hard wrap for latex-mode...


On Mar 22, 2009, at 8:57 AM, Bruno Cadonna wrote:
- to customizations.el the following line is added:
'(LaTeX-mode-hook (quote (preview-mode-setup smart-dnd-latex #[nil
"\300\301!\207" [TeX-fold-mode t] 2] LaTeX-install-toolbar turn-on- bib-cite
turn-on-reftex turn-on-auto-fill)))

- In the customization interface under LaTex-mode-hook the following appears:

'(preview-mode-setup smart-dnd-latex
                     #[nil "\300\301!\207"
                           [TeX-fold-mode t]
LaTeX-install-toolbar turn-on-bib-cite turn-on-reftex turn- on-auto-fill)

 State: SAVED and set. (mismatch)

Note the word "mismatch" in parenthesis!

- if I open a .tex file the major mode seems to be "Fundamental" and the minor modes "Wrap Spc", although in the menu bar the "LaTeX" and "Command" entry do

It appears that the "preview" package adds its setup function to this hook when it is loaded, but it isn't loaded until after the hook is executed. That's the design of AUCTeX, which will only work if you load the preview package prior to using LaTeX.

Try adding this:

(autoload 'preview-mode-setup "preview")

to your Preferences.el file.

- David

-- -- Aquamacs: Emacs on Mac OS X -- Could we help you? Return the favor and support the Aquamacs Project!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]