From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: AUCTeX PDF2DSC error on preview Date: Thu, 05 Feb 2015 08:17:16 +0100 Message-ID: <87oap8n7yb.fsf@gnu.org> References: <163a02f2-67b3-48ab-8c72-9f246c68043e@googlegroups.com> <3bdb9343-3ecd-40ce-b5de-d8d93f708352@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423120660 13427 80.91.229.3 (5 Feb 2015 07:17:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 5 Feb 2015 07:17:40 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: benwr@vt.edu Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 05 08:17:36 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YJGgw-0004zI-Mp for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Feb 2015 08:17:34 +0100 Original-Received: from localhost ([::1]:40423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJGgv-00089y-Qx for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Feb 2015 02:17:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40240) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJGgk-00089t-Hd for help-gnu-emacs@gnu.org; Thu, 05 Feb 2015 02:17:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJGgf-0006SY-Cr for help-gnu-emacs@gnu.org; Thu, 05 Feb 2015 02:17:22 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:42287) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJGgf-0006Rs-7H for help-gnu-emacs@gnu.org; Thu, 05 Feb 2015 02:17:17 -0500 Original-Received: from thinkpad-t440p (dhcp101.uni-koblenz.de [141.26.71.101]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id CD8971A847B; Thu, 5 Feb 2015 08:17:16 +0100 (CET) Mail-Followup-To: benwr@vt.edu, help-gnu-emacs@gnu.org In-Reply-To: <3bdb9343-3ecd-40ce-b5de-d8d93f708352@googlegroups.com> (benwr@vt.edu's message of "Wed, 4 Feb 2015 14:26:51 -0800 (PST)") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 141.26.64.15 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102488 Archived-At: 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