* Leo (2008-11-29) writes:
> On 2005-11-26 22:05 +0000, Ralf Angeli wrote:
>> (add-hook 'LaTeX-mode-hook
>> (lambda ()
>> (when (member "beamer" TeX-active-styles)
>> (TeX-add-style-hook "beamer" (lambda () (TeX-PDF-mode 1))))))
>>
>> In order to make this more userfriendly we could let `TeX-load-style'
>> run a hook (with the style name as argument).
>
> Any idea why this stops working with latest CVS?
Not really. It looks like a change in Emacs led to this because it
still sort of works in Emacs 22. I say "sort of" because of the
problems Reiner mentioned in this thread.
I changed the code in AUCTeX now in a way which ensures that the style
information is available when the mode hooks are run. So if you use
(add-hook 'LaTeX-mode-hook
(lambda ()
(when (member "beamer" TeX-active-styles)
(TeX-PDF-mode 1))))
instead of the code quoted above it should work. However, even though
everything seemed to work when testing, the change I made may have side
effects and cause other problems, so please be on the lookout for bugs
related to the style system, like missing macro completion or
fontification.
--
Ralf
_______________________________________________
auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/auctex