Merge branch 'master' into simplify-TeX-parse-error
Merge branch 'master' into simplify-TeX-parse-error
Manage auto insertion of labels.

* latex.el (LaTeX-auto-insert-label): New customizable variable.
(LaTeX-label): Use it.

* doc/auctex.texi (Environments): Document
`LaTeX-auto-insert-label'.

* doc/changes.texi: Mention `LaTeX-auto-insert-label'.  Fix a
couple of bad-boxes in the PDF output of the manual.
Keep error overview window if View command is run.

* tex-buf.el (TeX-command): Keep the frame and the buffer
associate to the error overview if the command to be run is View.
Merge branch 'master' into simplify-TeX-parse-error
Rename LaTeX-auto-insert-label and document its use for sections.

* latex.el (LaTeX-insert-label): Rename from
`LaTeX-auto-insert-label' and mention sections in the doc-string.
(LaTeX-label): Update accordingly.

* doc/auctex.texi (Sectioning): Mention `LaTeX-insert-label'.
(Environments): Update `LaTeX-insert-label' name and document use
for sectioning commands.
(Environments, Completion): Prettify
`TeX-complete-expert-commands' documentation by using a table
environment.

* doc/changes.texi: Rename `LaTeX-auto-insert-label' to
`LaTeX-insert-label' and mention sections too.
Merge branch 'master' into simplify-TeX-parse-error
Change again method to determine whether a label should be inserted.

* latex.el (LaTeX-insert-label): Remove.
(LaTeX-label): Add a new mandatory argument.  Do not use
`LaTeX-insert-label'.  Determine the prefix at the beginning of
the function and insert the label only if the prefix is non nil.
(LaTeX-section-label, LaTeX-env-figure, LaTeX-env-label): Use the
second mandatory argument of `LaTeX-label'.

* style/amsmath.el: Update copyright years.
("amsmath"): Append the environments to `LaTeX-label-alist'
instead of prepeding them.  Use the second mandatory argument of
the `LaTeX-label' function.

* style/longtable.el: Update copyright years.
("longtable"): Move addition of "longtable" environment to
`LaTeX-label-alist' inside the style hook.  Append the environment
to the alist instead of prepending it.  Use the second mandatory
argument of the `LaTeX-label' function.

* doc/auctex.texi (Sectioning, Environments): Remove references to
`LaTeX-insert-label'.
(Environments): Document `LaTeX-label-alist'.

* doc/changes.texi: Remove references to `LaTeX-insert-label'.
Merge branch 'master' into simplify-TeX-parse-error
Adapt mathtools.el to latest amsmath.el changes.

* style/mathtools.el ("mathtools"): Don't use the removed
`LaTeX-amsmath-env-aligned' function.

Signed-off-by: Tassilo Horn <tsdh@gnu.org>
Merge branch 'master' into simplify-TeX-parse-error