[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 233/299: Prevent an infinite loop in TeX-command-expand.
From: |
Stefan Monnier |
Subject: |
[elpa] 233/299: Prevent an infinite loop in TeX-command-expand. |
Date: |
Sun, 02 Nov 2014 03:11:40 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit e6bcd3a0c5864fca0b029f316e0add69ce04c8e0
Author: Mosè Giordano <address@hidden>
Date: Sat Mar 15 12:59:26 2014 +0100
Prevent an infinite loop in TeX-command-expand.
* tex.el (TeX-view-command-raw): Throw an error when `spec' is
nil, otherwise when the function returns nil `TeX-command-expand'
enters an infinite loop.
---
ChangeLog | 4 ++++
tex.el | 4 ++++
2 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ab2c75c..f0ca214 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2014-03-15 Mos� Giordano <address@hidden>
+ * tex.el (TeX-view-command-raw): Throw an error when `spec' is
+ nil, otherwise when the function returns nil `TeX-command-expand'
+ enters an infinite loop.
+
* style/paralist.el: Update copyright years.
("paralist"): Use `LaTeX-provided-package-options-member' to
conditionally define environments.
diff --git a/tex.el b/tex.el
index 23e99a0..796b1d8 100644
--- a/tex.el
+++ b/tex.el
@@ -1304,6 +1304,10 @@ predicates are true, nil otherwise."
(prin1-to-string spec))
((stringp spec)
spec)
+ ((null spec)
+ (error
+ (format "Unknown %S viewer. \
+Check the `TeX-view-program-selection' variable." viewer)))
(t
;; Build the unexpanded command line. Pieces with predicates are
;; only added if the predicate is evaluated positively.
- [elpa] 220/299: Convert TeX-auto-add-type to a macro., (continued)
- [elpa] 220/299: Convert TeX-auto-add-type to a macro., Stefan Monnier, 2014/11/01
- [elpa] 222/299: New variable to pass options to the TeX processor., Stefan Monnier, 2014/11/01
- [elpa] 224/299: Fix selection of default environment in LaTeX-environment., Stefan Monnier, 2014/11/01
- [elpa] 225/299: Fix minor documentation bug., Stefan Monnier, 2014/11/01
- [elpa] 229/299: Advice instead of fset + redefine., Stefan Monnier, 2014/11/01
- [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 <=
- [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, 2014/11/01
- [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