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

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

[elpa] elpa 9613bdd 36/51: Check TeX engine only once


From: Tassilo Horn
Subject: [elpa] elpa 9613bdd 36/51: Check TeX engine only once
Date: Sun, 22 May 2016 07:22:50 +0000 (UTC)

branch: elpa
commit 9613bddb44b4eb8558c988fae02d2927bd614a90
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Check TeX engine only once
    
    * tex-buf.el (TeX-check-engine): If user does not want to change engine,
      do not ask again.  Suggested by Joost Kremers.
---
 tex-buf.el |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tex-buf.el b/tex-buf.el
index 92d3dea..b55f2d4 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -432,7 +432,7 @@ to be run."
 Do you want to use this engine?" (cdr (assoc engine name-alist)))))
          ;; More than one engine is allowed.
          ((> length 1)
-          (if (y-or-n-p (format "%s are required to build this document.
+          (if (y-or-n-p (format "It appears %s are required to build this 
document.
 Do you want to select one of these engines?"
                                 (mapconcat
                                  (lambda (elt) (cdr (assoc elt name-alist)))
@@ -448,7 +448,12 @@ Do you want to select one of these engines?"
                            (mapcar
                             (lambda (elt) (cdr (assoc elt name-alist)))
                             TeX-check-engine-list))
-                          name-alist))))))
+                          name-alist)))
+            ;; Don't keep asking.  If user doesn't want to change engine,
+            ;; probably has a good reason.  In order to do so, without adding
+            ;; yet another variable we just hack `TeX-check-engine-list' and
+            ;; make it nil.
+            (setq TeX-check-engine-list nil))))
        (TeX-engine-set engine)
        (when (and (fboundp 'add-file-local-variable)
                  (y-or-n-p "Do you want to remember the choice?"))



reply via email to

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