emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] 239/299: Silence assignment to free variable warnings.


From: Stefan Monnier
Subject: [elpa] 239/299: Silence assignment to free variable warnings.
Date: Sun, 02 Nov 2014 03:11:42 +0000

monnier pushed a commit to branch externals/auctex
in repository elpa.

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.
---
 ChangeLog |    5 +++++
 latex.el  |   14 +++++++-------
 2 files changed, 12 insertions(+), 7 deletions(-)

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."



reply via email to

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