auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 1d6f544235966a45a89ad


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. 1d6f544235966a45a89ad7b6a59c6263771485a6
Date: Fri, 04 Apr 2014 21:09:11 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  1d6f544235966a45a89ad7b6a59c6263771485a6 (commit)
      from  25fe7295d21de4231d5e7d5a890b4529d06f1eda (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 1d6f544235966a45a89ad7b6a59c6263771485a6
Author: Mosè Giordano <address@hidden>
Date:   Fri Apr 4 23:06:40 2014 +0200

    Silence assignment to free variable warnings.
    
    * latex.el (LaTeX-add-environments): Move advising of
    `LaTeX-add-environments' after definition of
    `LaTeX-environment-menu' and `LaTeX-environment-modify-menu'
    variables to fix assignment to free variable warnings.

diff --git a/ChangeLog b/ChangeLog
index e840622..8d08c4e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2014-04-04  Mosè Giordano  <address@hidden>
 
+       * latex.el (LaTeX-add-environments): Move advising of
+       `LaTeX-add-environments' after definition of
+       `LaTeX-environment-menu' and `LaTeX-environment-modify-menu'
+       variables to fix assignment to free variable warnings.
+
        * tex-style.el: Update coyright years.
        (LaTeX-biblatex-use-Biber): New variable.  Mark as
        safe-local-variable.
diff --git a/latex.el b/latex.el
index 4b9188a..fe439e5 100644
--- a/latex.el
+++ b/latex.el
@@ -1508,13 +1508,6 @@ The value is actually the tail of the list of options 
given to PACKAGE."
   "Add BIBLIOGRAPHIES to the list of known bibliographies and style files."
   (apply 'TeX-run-style-hooks bibliographies))
 
-(defadvice LaTeX-add-environments (after LaTeX-invalidate-environment-menu 
(&rest environments) activate)
-  "Add ENVIRONMENTS to the list of known environments.
-Additionally invalidate the environment submenus to let them be
-regenerated by the respective menu filter."
-  (setq LaTeX-environment-menu nil)
-  (setq LaTeX-environment-modify-menu nil))
-
 ;;; Biber support
 
 (defvar LaTeX-using-Biber nil
@@ -5252,6 +5245,13 @@ corresponds to the variables 
`LaTeX-environment-menu-name' and
               (mapcar 'LaTeX-environment-modify-menu-entry
                       (LaTeX-environment-list))))))))
 
+(defadvice LaTeX-add-environments (after LaTeX-invalidate-environment-menu 
(&rest environments) activate)
+  "Add ENVIRONMENTS to the list of known environments.
+Additionally invalidate the environment submenus to let them be
+regenerated by the respective menu filter."
+  (setq LaTeX-environment-menu nil)
+  (setq LaTeX-environment-modify-menu nil))
+
 (easy-menu-define LaTeX-mode-command-menu
     LaTeX-mode-map
     "Command menu used in LaTeX mode."

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog |    5 +++++
 latex.el  |   14 +++++++-------
 2 files changed, 12 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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