From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Pierre Lorenzon Newsgroups: gmane.emacs.help Subject: Re: DocView: process ps->pdf changed status to killed. Date: Sat, 04 Oct 2014 05:35:43 +0200 (CEST) Message-ID: <20141004.053543.1386308031845430064.devel@pollock-nageoire.net> References: <87mw9eg44e.fsf@thinkpad-t440p.tsdh.org> <20141003.170920.1411034292687428339.devel@pollock-nageoire.net> <8738b56lz2.fsf@thinkpad-t440p.tsdh.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1412394184 30089 80.91.229.3 (4 Oct 2014 03:43:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Oct 2014 03:43:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: tsdh@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 04 05:42:58 2014 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 1XaGFF-0003Eb-FZ for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2014 05:42:57 +0200 Original-Received: from localhost ([::1]:42389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaGFF-00025D-57 for geh-help-gnu-emacs@m.gmane.org; Fri, 03 Oct 2014 23:42:57 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37323) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaGEz-00023o-Lu for help-gnu-emacs@gnu.org; Fri, 03 Oct 2014 23:42:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XaGEt-0004Fy-1o for help-gnu-emacs@gnu.org; Fri, 03 Oct 2014 23:42:41 -0400 Original-Received: from smtp10.smtpout.orange.fr ([80.12.242.132]:34315 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaGEs-0004FK-SV for help-gnu-emacs@gnu.org; Fri, 03 Oct 2014 23:42:34 -0400 Original-Received: from localhost ([92.140.83.106]) by mwinf5d45 with ME id yriZ1o0032HeclG03riZFb; Sat, 04 Oct 2014 05:42:33 +0200 X-ME-Helo: localhost X-ME-Date: Sat, 04 Oct 2014 05:42:33 +0200 X-ME-IP: 92.140.83.106 In-Reply-To: <8738b56lz2.fsf@thinkpad-t440p.tsdh.org> X-Mailer: Mew version 6.5 on Emacs 24.3 / Mule 6.0 (HANACHIRUSATO) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.12.242.132 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:100260 Archived-At: Hi Tassilo From: Tassilo Horn Subject: Re: DocView: process ps->pdf changed status to killed. Date: Fri, 03 Oct 2014 20:34:41 +0200 > Pierre Lorenzon writes: > > Hi Pierre, > >> Command ps2pdf -dSAFER /home/devel/test.ps >> /tmp/docview1001/test.ps-932911a0f86866e1b95b1aaf506a818b/doc.pdf >> executed in a console works perfectly ... > > Ok, I've thought that. So it works on the command line but not from > lisp. Could you please try evaluating this expression and tell us what > it messages? > > (let ((process (start-process "ps2pdf conversion" > "ps2pdf conversion output" > "ps2pdf" > "-dSAFER" > "/home/devel/test.ps" > "/tmp/docview1001/test.ps-932911a0f86866e1b95b1aaf506a818b/doc.pdf"))) > (set-process-sentinel process > #'(lambda (proc event) > (message "Process: %s had the event `%s'" > proc event)))) ;; C-x C-e here Surprisingly it returns process had event finished syaing that process completed. And looking in the suitable directory one can see that the corresponding pdf file has been created. In fact the piece of code above is not very different from the doc-view-start-process function. Hence it's difficult to understand why this one works since the doc-view-start-process seems to fail. > > I guess it'll say something like > > Process: ps2pdf conversion had the event `killed > ' No ! > > which wouldn't give me more of a clue than I have right now, > though. :-( Regards Pierre > > Bye, > Tassilo