* 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.

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

-- 
Ralf


_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to