[Top][All Lists]

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

Re: [Bug-AUCTeX] 11.84; texinfo mode provided by AUCTeX is not activated

From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 11.84; texinfo mode provided by AUCTeX is not activated.
Date: Sun, 11 Mar 2007 16:40:49 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux)

* Ikumi Keita (2007-03-05) writes:

> When entering texinfo-mode, the one provided by AUCTeX is not
> used.  Instead the original texinfo-mode bundled with emacs is used.
> 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.


(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.  However, I am not sure if this is the right fix or if
e.g. a simple `(defalias 'texinfo-mode 'TeX-texinfo-mode)' would


reply via email to

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