[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 141/299: Prefer TeX distro GS wrappers.
From: |
Stefan Monnier |
Subject: |
[elpa] 141/299: Prefer TeX distro GS wrappers. |
Date: |
Sun, 02 Nov 2014 03:10:57 +0000 |
monnier pushed a commit to branch externals/auctex
in repository elpa.
commit 0c257b99d169f47bee08de86df426461d37fb582
Author: Tassilo Horn <address@hidden>
Date: Sat Jun 29 10:01:18 2013 +0200
Prefer TeX distro GS wrappers.
* preview.el (preview-gs-command): Prefer the TeX distro
ghostscript wrapper scripts `rungs' and `mgs' over calling `gs'
directly which requires it to be in PATH.
---
preview/ChangeLog | 6 ++++++
preview/preview.el | 12 +++++++++---
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/preview/ChangeLog b/preview/ChangeLog
index 6565b91..8d057fe 100644
--- a/preview/ChangeLog
+++ b/preview/ChangeLog
@@ -1,3 +1,9 @@
+2013-06-29 Tassilo Horn <address@hidden>
+
+ * preview.el (preview-gs-command): Prefer the TeX distro
+ ghostscript wrapper scripts `rungs' and `mgs' over calling `gs'
+ directly which requires it to be in PATH.
+
2013-06-26 Tassilo Horn <address@hidden>
* Makefile.in (use-hint): Don't warn about problems with overly
diff --git a/preview/preview.el b/preview/preview.el
index 82ce926..77ebaab 100644
--- a/preview/preview.el
+++ b/preview/preview.el
@@ -344,9 +344,15 @@ LIST consists of TeX dimensions in sp (1/65536 TeX point)."
(dotimes (i 4 box)
(aset box i (+ (aref box i) (aref border i)))))))
-(defcustom preview-gs-command (if (eq system-type 'windows-nt)
- "GSWIN32C.EXE"
- "gs")
+(defcustom preview-gs-command
+ (or ;; The GS wrapper coming with TeX Live
+ (executable-find "rungs")
+ ;; The GS wrapper coming with MikTeX
+ (executable-find "mgs")
+ ;; Windows ghostscript
+ (executable-find "GSWIN32C.EXE")
+ ;; standard GhostScript
+ (executable-find "gs"))
"*How to call gs for conversion from EPS. See also `preview-gs-options'."
:group 'preview-gs
:type 'string)
- [elpa] 131/299: New hooks TeX-after-document-hook and LaTeX-after-usepackage-hook., (continued)
- [elpa] 131/299: New hooks TeX-after-document-hook and LaTeX-after-usepackage-hook., Stefan Monnier, 2014/11/01
- [elpa] 136/299: Simplify TeX-doc-backend-alist., Stefan Monnier, 2014/11/01
- [elpa] 135/299: Put coding cookie in elisp header line., Stefan Monnier, 2014/11/01
- [elpa] 138/299: Fix compilation problem due to `dbus-ignore-errors' not being defined., Stefan Monnier, 2014/11/01
- [elpa] 134/299: Fix coding once again., Stefan Monnier, 2014/11/01
- [elpa] 139/299: Generate PROBLEMS file., Stefan Monnier, 2014/11/01
- [elpa] 142/299: Update texinfo files for Git., Stefan Monnier, 2014/11/01
- [elpa] 143/299: Fix spelling errors in tex-buf.el., Stefan Monnier, 2014/11/01
- [elpa] 137/299: Better check for DBUS support., Stefan Monnier, 2014/11/01
- [elpa] 140/299: Remove warnings and docs for ancient preview problems., Stefan Monnier, 2014/11/01
- [elpa] 141/299: Prefer TeX distro GS wrappers.,
Stefan Monnier <=
- [elpa] 145/299: Select mgs only if it's functional for non-MikTeX apps., Stefan Monnier, 2014/11/01
- [elpa] 147/299: Shorter mgs check., Stefan Monnier, 2014/11/01
- [elpa] 144/299: Silence some compilation warnings., Stefan Monnier, 2014/11/01
- [elpa] 148/299: Add default tabular-like env for use in tables., Stefan Monnier, 2014/11/01
- [elpa] 150/299: Move TeX-source-correlate-method documentation to a better section., Stefan Monnier, 2014/11/01
- [elpa] 152/299: Fix fontification of some biblatex macros., Stefan Monnier, 2014/11/01
- [elpa] 146/299: Improve mgs check., Stefan Monnier, 2014/11/01
- [elpa] 151/299: New style `tabulary'., Stefan Monnier, 2014/11/01
- [elpa] 153/299: Revert changes made with commit 7531cca to font-latex.el., Stefan Monnier, 2014/11/01
- [elpa] 156/299: Document some changes for next release., Stefan Monnier, 2014/11/01