[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AUCTeX PDF2DSC error on preview
From: |
Tassilo Horn |
Subject: |
Re: AUCTeX PDF2DSC error on preview |
Date: |
Thu, 05 Feb 2015 08:17:16 +0100 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) |
benwr@vt.edu writes:
Hi Ben,
>> If you have time to, you could edebug `preview-pdf2dsc-sentinel' to
>> see where exactly the error comes from.
>
> Thanks for the reply! When I turn on debug-on-signal, I get this:
>
>> Debugger entered--Lisp error: (wrong-type-argument arrayp nil)
>> replace-regexp-in-string("[^-0-9a-zA-Z_./\n]" "\\\\\\&" nil)
>> shell-quote-argument(nil)
>> mapconcat(shell-quote-argument (nil
>> "-dOutputFile=(_region_.prv/tmp1671KOM/pr1-%d.png)" "-q" "-dDELAYSAFER"
>> "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted" "-dTextAlphaBits=4"
>> "-dGraphicsAlphaBits=4" "-sDEVICE=png16m" "-r110.418x110.613") " ")
>> preview-gs-restart()
Ah, great, now I see where the error happens. The reason seems to be
that `preview-gs-command' is nil. If you didn't set that explicitly,
then it seems there is neither "rungs", "mgs", "GSWIN32C.exe", nor "gs"
on your PATH.
Don't you have GhostScript installed? That's required by preview.
Bye,
Tassilo