File: 0005-preview-image-type-Customize-for-Debian.patch

package info (click to toggle)
auctex 13.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,440 kB
  • sloc: lisp: 53,963; makefile: 835; sh: 112; perl: 91
file content (28 lines) | stat: -rw-r--r-- 942 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: "Davide G. M. Salvetti" <salve@debian.org>
Date: Sat, 14 Jan 2012 22:57:31 +0100
Subject: preview-image-type: Customize for Debian

* preview.el (preview-image-type): Look for a dvipng executable and use it
  if available.

Rationale: "dvipng is much faster than the combination of Dvips and
Ghostscript", the AUCTeX README states.

Forwarded: not-needed
---
 preview.el.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/preview.el.in b/preview.el.in
index e26f478..3eee565 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -223,7 +223,7 @@ method, like when PDFTeX was used."
                        (symbol :tag "Emacs image-type")
                        (repeat :inline t :tag "Ghostscript options" string))))
 
-(defcustom preview-image-type 'png
+(defcustom preview-image-type (if (executable-find "dvipng") 'dvipng 'png)
   "Image type to be used in images."
   :group 'preview-gs
   :type (append '(choice)