Ralf Angeli <[EMAIL PROTECTED]> writes: > * David Kastrup (2008-02-02) writes: >>>>>> >>>>>>> Putting >>>>>> >>>>>>> (when (and (boundp 'TeX-modes) >>>>>>> (memq 'texinfo-mode TeX-modes)) >>>>>>> (TeX-modes-set 'TeX-modes TeX-modes t)) >>>>>> >>>>>>> right after the `(require 'texinfo)' call into tex-info.el fixes the >>>>>>> problem for me. >>>>>> >>>>>> This works for me, too. >> >> What is the actual problem cured by this? > > From Ikumi's original report: > > ,----[ <mid:[EMAIL PROTECTED]> ] > | Analysis: > | 1. At first, tex-site.el declares the following defalias and autoload: > | (defalias 'texinfo-mode 'TeX-texinfo-mode) > | (autoload 'TeX-texinfo-mode "tex-info") > | 2. So typing M-x texinfo-mode leads to loading tex-info.el, which > | contains a form > | (require 'texinfo) > | 3. Then texinfo.el, bundled with emacs, is loaded, resulting in that the > | above defalias for texinfo-mode is overwritten by > | (define-derived-mode texinfo-mode text-mode "Texinfo" > | in texinfo.el. > | 4. Therefore, the overwritten function definition is used for M-x > | texinfo-mode, ignoring the TeX-texinfo-mode defined in tex-info.el. > `----
What happens if one just repeats the defalias after (require 'texinfo)? Some infinite loop or something? I'd like the simplest version to be used. This might be just (TeX-modes-set 'TeX-modes TeX-modes) or so (the t argument definitely looks dangerous, anybody remember why this argument is available in the first place? Probably to supersede autoloads, but it would appear to affect other modes). -- David Kastrup, Kriemhildstr. 15, 44793 Bochum _______________________________________________ bug-auctex mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-auctex
