Add narrowing commands.

* latex.el (LaTeX-narrow-to-environment): New function, disabled
by default.
(LaTeX-common-initialization): Add key binding for
`LaTeX-narrow-to-environment'.

* tex.el (VirTeX-common-initialization): Add key binding for
`TeX-narrow-to-group'.
(TeX-narrow-to-group): New function, disabled by default.

* doc/auctex.texi (Narrowing): Document narrowing commands.

* doc/changes.texi: Mention narrowing commands.
Fix in biblatex style file.

* style/biblatex.el ("biblatex"): Quote `TeX-arg-key-val'
arguments with `quote' special form istead of apostrophe.
Really fix bug in biblatex style file.

* style/biblatex.el ("biblatex"): Do not quote at all
`TeX-arg-key-val' arguments.
Run style files of the bibliography files when inserting bibliography macros.

* latex.el (TeX-arg-bibliography): Run style files associated to
the bibliography database files.

* style/biblatex.el (LaTeX-arg-addbibresource): Run style file
associated to the bibliography database file.
Document missing folding variables.

* doc/auctex.texi (Folding): Document `TeX-fold-auto' and
`TeX-fold-unfold-around-mark'.
Distinguish common and advanced macros/envs.

* tex.el (TeX-add-advanced-macros/envs): New defcustom.
(TeX-add-advanced-macros/envs-p): New function.

* doc/auctex.texi: Document addition of common vs. advanced macros
and environments both for users and style file authors.

* doc/changes.texi: Give a hint to the above.
Revert "Distinguish common and advanced macros/envs."

This reverts commit f8a3a8bdd4aae28d302b5c04fa602584a7406f4c.
void-function error fix.

* latex.el (LaTeX-common-initialization): Fix void-function
LaTeX-symbol-list error.
Distinguish normal and expert macros/envs.

* tex.el (TeX-complete-expert-commands): New defcustom.
(TeX-complete-make-expert-command-functions): New macro.
(TeX-insert-macro): Restrict completion depending on
`TeX-complete-expert-commands'.
(VirTeX-common-initialization): Ditto.

* latex.el (LaTeX-environment, LaTeX-common-initialization):

* tex-info.el (TeX-texinfo-mode): Restrict completion depending on
`TeX-complete-expert-commands'.

* doc/auctex.texi: Document normal vs. expert commands for users
and style file authors.

* doc/changes.texi: Mention normal vs. expert commands.
Better signature of expert declaration functions.

* tex.el (TeX-complete-make-expert-command-functions): Change
signature of declare-expert functions.

* doc/auctex.texi: Document it.
* bib-cite.el (bib-highlight-mouse): Change regexp to cope with
multiple optional arguments of a macro.
Fix C-x ` (next-error) for compile commands.

* tex-buf.el (TeX-next-error, TeX-previous-error): Call
`next-error' also if last TeX command was a compile command (e.g.,
Check, ChkTeX).
(TeX-run-compile): Save compilation buffer in
`TeX-command-buffer'.
Declare expert macros and envs in biblatex style file.

* style/biblatex.el ("biblatex"): Declare expert macros and
environments.
Fix bindings of narrowing functions.

* latex.el (LaTeX-common-initialization):

* tex.el (VirTeX-common-initialization): Move
`LaTeX-narrow-to-environment' and `TeX-narrow-to-group' bindings
to the AUCTeX maps because `narrow-map' is not defined in GNU
Emacs < 22.2 and XEmacs.  Reported by Giacomo Boffi.
Fix of the fix, my fault.
Disable electric-pair-mode.

* tex.el (VirTeX-common-initialization): Disable
`electric-pair-mode' (a global minor mode) in auctex buffers
because it interferes with auctex's pairing feature.
Disable electric-pair-mode conditionally.

* latex.el (LaTeX-common-initialization): Move disabling of
`electric-pair-mode' from `VirTeX-common-initialization'.  Disable
it only if `LaTeX-electric-left-right-brace' is non-nil.

* tex.el (VirTeX-common-initialization): See above.
Skip comment or file in parens in output.

* tex-buf.el (TeX-parse-error): Skip comment (or file) between
parentheses.

Signed-off-by: Tassilo Horn <tsdh@gnu.org>
Revert "Skip comment or file in parens in output."

This reverts commit 363b751003c4b425b4b6c511740c95366481207c.
Handle package messages with parenthesized text.

* tex-buf.el (TeX-parse-error): Don't confuse ) in package
messages with EOF.