monnier pushed a commit to branch externals/auctex in repository elpa. commit 09f9140353bef4d87eddba3e073f14c6b7c3eba6 Author: Mosè Giordano <giordano.m...@libero.it> Date: Wed May 8 01:15:12 2013 +0200
Document LaTeX-default-document-environment. * doc/auctex.texi (Environments): Document `LaTeX-default-document-environment'. --- ChangeLog | 5 +++++ doc/auctex.texi | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletions(-) diff --git a/ChangeLog b/ChangeLog index 62e96e9..e3cf5c5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-05-08 Mos� Giordano <giordano.m...@libero.it> + + * doc/auctex.texi (Environments): Document + `LaTeX-default-document-environment'. + 2013-05-07 Mos� Giordano <giordano.m...@libero.it> * tex.el (TeX-electric-dollar): New variable. diff --git a/doc/auctex.texi b/doc/auctex.texi index be12d8e..f50b4bd 100644 --- a/doc/auctex.texi +++ b/doc/auctex.texi @@ -728,9 +728,18 @@ inserted or, as the first choice the value of the variable @defopt LaTeX-default-environment Default environment to insert when invoking @samp{LaTeX-environment} -first time. +first time. When the current environment is @samp{document}, it is +overriden by @code{LaTeX-default-document-environment}. @end defopt +@defvar LaTeX-default-document-environment +Default environment when invoking @samp{LaTeX-environment} and the +current environment is @samp{document}. It is intended to be used in +@LaTeX{} class style files. For example, in @file{beamer.el} it is set +to @code{slide}, in @file{letter.el} to @code{letter}, and in +@file{slides.el} to @code{slide}. +@end defvar + If the document is empty, or the cursor is placed at the top of the document, @AUCTeX{} will default to insert a `document' environment.