* 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

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

Reply via email to