monnier pushed a commit to branch externals/auctex
in repository elpa.
commit fa1daf8cf4c624dc17f584d821f774527579cc97
Author: Tassilo Horn <[email protected]>
Date: Tue Mar 11 15:54:03 2014 +0100
Fix bug causing endless package queries.
* latex.el (LaTeX-arg-usepackage-read-packages-with-options): Fix
bug that caused AUCTeX to query for packages infinitely.
---
ChangeLog | 3 +++
latex.el | 2 +-
2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 60569e5..145ab10 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2014-03-11 Tassilo Horn <[email protected]>
+ * latex.el (LaTeX-arg-usepackage-read-packages-with-options): Fix
+ bug that caused AUCTeX to query for packages infinitely.
+
* context.el (ConTeXt-add-environments): Advice instead of
renaming and redefining generated function.
diff --git a/latex.el b/latex.el
index 2da1b24..69e8760 100644
--- a/latex.el
+++ b/latex.el
@@ -1900,7 +1900,7 @@ of the options, nil otherwise."
(mapc 'TeX-run-style-hooks packages)
;; Prompt for options only if at least one package has been supplied,
return
;; nil otherwise.
- (unless (equal packages '(""))
+ (when packages
(setq var (if (= 1 (length packages))
(intern (format "LaTeX-%s-package-options" (car packages)))
;; Something like `\usepackage[options]{pkg1,pkg2,pkg3,...}'
is