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


From: Mosè Giordano
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. e6bcd3a0c5864fca0b029f316e0add69ce04c8e0
Date: Sat, 15 Mar 2014 12:01:10 +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  e6bcd3a0c5864fca0b029f316e0add69ce04c8e0 (commit)
      from  e18e745a2c1ba27f87be0b85c86449dc04f58c37 (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 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.

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.

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

Summary of changes:
 ChangeLog |    4 ++++
 tex.el    |    4 ++++
 2 files changed, 8 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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