[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."
- [elpa] 228/299: Squash a byte-compiler warning., (continued)
- [elpa] 228/299: Squash a byte-compiler warning., Stefan Monnier, 2014/11/01
- [elpa] 226/299: Improve defaults for filling., Stefan Monnier, 2014/11/01
- [elpa] 230/299: Fix bug causing endless package queries., Stefan Monnier, 2014/11/01
- [elpa] 232/299: Fix some FIXMEs., Stefan Monnier, 2014/11/01
- [elpa] 223/299: Prompt for packages inside LaTeX-env-document., Stefan Monnier, 2014/11/01
- [elpa] 233/299: Prevent an infinite loop in TeX-command-expand., Stefan Monnier, 2014/11/01
- [elpa] 227/299: Fix missing quote., Stefan Monnier, 2014/11/01
- [elpa] 235/299: Enable TeX-PDF-mode by default., Stefan Monnier, 2014/11/01
- [elpa] 236/299: Add new style/exercise.el., Stefan Monnier, 2014/11/01
- [elpa] 231/299: Make TeX-completing-read-multiple return nil on empty input., Stefan Monnier, 2014/11/01
- [elpa] 239/299: Silence assignment to free variable warnings.,
Stefan Monnier <=
- [elpa] 240/299: Fix ChangeLog node for texinfo., Stefan Monnier, 2014/11/01
- [elpa] 242/299: Add another exception to error parsing., Stefan Monnier, 2014/11/01
- [elpa] 241/299: Resolve conflicts, Stefan Monnier, 2014/11/01
- [elpa] 243/299: Fix fontification of optional argument to verbatim environments., Stefan Monnier, 2014/11/01
- [elpa] 238/299: Use LaTeX-biblatex-use-Biber to manually select bibliography processor., Stefan Monnier, 2014/11/01
- [elpa] 246/299: Make style/babel.el file non-executable., Stefan Monnier, 2014/11/01
- [elpa] 234/299: Ask for TeX-master if unknown., Stefan Monnier, 2014/11/01
- [elpa] 244/299: Fix typo in listings.el., Stefan Monnier, 2014/11/01
- [elpa] 237/299: Update biblatex support in style file., Stefan Monnier, 2014/11/01
- [elpa] 250/299: Add TeX-previous-error to Command menu., Stefan Monnier, 2014/11/01