[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex b072f9c 77/78: Make sure there is a working TeX
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex b072f9c 77/78: Make sure there is a working TeX distribution before running *tex. |
Date: |
Mon, 19 Oct 2015 09:11:20 +0000 |
branch: externals/auctex
commit b072f9ca25ff9cc2d6d3a40ab7699eb7ed42f9f6
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>
Make sure there is a working TeX distribution before running *tex.
* tex-buf.el (TeX-command): Check that AUCTeX can find a working
TeX distribution before running some *TeX commands.
---
ChangeLog | 5 +++++
tex-buf.el | 12 ++++++++++++
2 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 20bd1dc..3b4b629 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-10-19 Mos� Giordano <address@hidden>
+
+ * tex-buf.el (TeX-command): Check that AUCTeX can find a working
+ TeX distribution before running some *TeX commands.
+
2015-10-18 Mos� Giordano <address@hidden>
* tex.el (fboundp): Define a `TeX-completing-read-multiple'
diff --git a/tex-buf.el b/tex-buf.el
index 324be7a..ec3653c 100644
--- a/tex-buf.el
+++ b/tex-buf.el
@@ -479,6 +479,18 @@ been set."
(if (get-buffer TeX-error-overview-buffer-name)
(kill-buffer TeX-error-overview-buffer-name)))
+ ;; Before running some commands, check that AUCTeX is able to find "tex"
+ ;; program.
+ (and (member name '("TeX" "LaTeX" "AmSTeX" "ConTeXt" "ConTeXt Full"))
+ (not (executable-find TeX-command))
+ (error (format "ERROR: AUCTeX cannot find a working TeX distribution.
+Make sure you have one and that TeX binaries are in PATH environment
variable%s"
+ (if (eq system-type 'darwin)
+ ".
+If you are using OS X El Capitan or later
+remember to add /Library/TeX/texbin/ to your PATH"
+ ""))))
+
;; Now start the process
(setq file (funcall file))
(TeX-process-set-variable file 'TeX-command-next TeX-command-Show)
- [elpa] externals/auctex 4a12225 72/78: Use `LaTeX-add-counters' on "LTchunksize"., (continued)
- [elpa] externals/auctex 4a12225 72/78: Use `LaTeX-add-counters' on "LTchunksize"., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 1f116b8 74/78: Fill $...$ like \(...\) (bug#21645), Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 93d50ea 75/78: Do not disable PDF when using pstricks with XeTeX., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex f9a7928 59/78: Add new style newfloat.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 5ee567c 60/78: Append entries to LaTeX-label-alist in newfloat.el., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 96639fb 61/78: Fix previous commit., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 25a9c18 76/78: Define TeX-completing-read-multiple for Emacs 24.4 and later., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 1ec0278 65/78: Different approach to support ConTeXt Mark IV., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 6f77ad9 73/78: Split TeX-expand-list into a builtin and a custom list., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 7332f76 70/78: Add user-defined values to "style" key., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex b072f9c 77/78: Make sure there is a working TeX distribution before running *tex.,
Tassilo Horn <=
- [elpa] externals/auctex 7df138d 71/78: Remove unused `prompt' from arguments list., Tassilo Horn, 2015/10/19
- [elpa] externals/auctex 2f22938 78/78: Merge branch 'master' into elpa, Tassilo Horn, 2015/10/19