[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: |
Ralf Angeli |
Subject: |
Re: [Bug-AUCTeX] Re: 11.84; texinfo mode provided by AUCTeX is not activated. |
Date: |
Sat, 02 Feb 2008 18:40:20 +0100 |
* David Kastrup (2008-02-02) writes:
> Ralf Angeli <address@hidden> writes:
>
>> Full quote for maximum of information since this is a rather old
>> message.
>>
>> * David Kastrup (2007-03-17) writes:
>>
>>> Ralf Angeli <address@hidden> writes:
>>>
>>>> * Ikumi Keita (2007-03-13) writes:
>>>>
>>>>>>>>>> Ralf Angeli 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.
`----
--
Ralf