bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] TeX-insert-macro section with TeX-fold-auto


From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] TeX-insert-macro section with TeX-fold-auto
Date: Thu, 13 May 2010 16:17:22 +0200

* Lluís (2010-05-11) writes:

> When inserting a section with `TeX-insert-macro', if `TeX-fold-auto' is
> activated, the section is immediatly folded, yielding a folded section with an
> empty title, whereas I expected the section to have the "folding overlay", but
> stay open until I got out of it (like when you enter a folded overlay).

Inserting a section with `TeX-insert-macro' is not really supported by
AUCTeX.  If it were, AUCTeX would prompt for the title and insert it
together with the sectioning command.

The canonical way to insert a section with AUCTeX is to use `C-c C-s'
(`LaTeX-section').  And this, indeed, prompts for the title.
Unfortunately it does not make use of `TeX-insert-macro', so the
auto-folding is not triggered.  I haven't looked deeper into this, but
options to improve the situation could be to let `LaTeX-section-section'
and the function which inserts the label run `TeX-insert-macro' or to
add a hook to the respective functions which can be used by tex-fold.el.

-- 
Ralf



reply via email to

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