[Top][All Lists]

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

[AUCTeX-diffs] [elpa] externals/auctex a5c2dd9 61/62: Document lexical b

From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex a5c2dd9 61/62: Document lexical binding changes.
Date: Sun, 20 Dec 2020 10:40:07 -0500 (EST)

branch: externals/auctex
commit a5c2dd9977ad9aefc36e4958f68ed648ec5dea1a
Author: Tassilo Horn <>
Commit: Tassilo Horn <>

    Document lexical binding changes.
    * doc/changes.texi: Document lexical binding changes.
 doc/changes.texi | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/doc/changes.texi b/doc/changes.texi
index 41f0b1e..be0d1cd 100644
--- a/doc/changes.texi
+++ b/doc/changes.texi
@@ -12,6 +12,44 @@
 @itemize @bullet
+@AUCTeX{} now uses lexical binding which has been introduced in Emacs
+24.  This change should have no user-visible effect and require no
+manual adaptions except in the following cases.
+@itemize @bullet
+Entries added to the customization variable @code{TeX-expand-list} also
+had access to variables @code{command} and @code{pos}.  Those are now
+properly declared and named @code{TeX-expand-command} and
+Entries added to the customization variable @code{TeX-expand-list} had
+access to a variable @code{file} which was bound to
+@code{TeX-active-master}, i.e., it evaluated to either the master or
+region file.  This usage must be replaced with either
+@code{TeX-active-master} or @code{TeX-active-master-with-quotes}.
+Viewer entries in @code{TeX-view-program-list} also had access to a
+variable @code{file} which was bound to the name of the master or region
+file without extension.  Instead, the function @code{TeX-active-master}
+has to be used now.
+Macro argument parsing functions could set a variable @code{exit-mark}
+to the buffer position where point should be left after all arguments
+have been read.  This variable is now named @code{TeX-exit-mark}.
+The functions in @code{LaTeX-section-hook} had access or modified the
+previously undeclared variables @code{title}, @code{name}, @code{level},
+@code{done-mark}, and @code{toc}.  These variables are now properly
+declared and have the @code{LaTeX-} prefix, e.g.,
+@end itemize
 The constant @code{LaTeX-dialect} has been renamed to @code{TeX-dialect}
 and moved from @file{latex.el} to @file{tex.el}.  @code{LaTeX-dialect}
 now is an obsolete alias.

reply via email to

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