[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-AUCTeX] Re: 11.84; texinfo mode provided by AUCTeX is not activ
From: |
David Kastrup |
Subject: |
Re: [Bug-AUCTeX] Re: 11.84; texinfo mode provided by AUCTeX is not activated. |
Date: |
Sat, 02 Feb 2008 18:58:40 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
Ralf Angeli <address@hidden> 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:address@hidden> ]
> | 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