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: Tue, 07 Oct 2014 10:25:33 +0200 (CEST) Message-ID: <20141007.102533.2212875331518577085.devel@pollock-nageoire.net> References: <20141004.054621.763802124711265078.devel@pollock-nageoire.net> <20141004.055451.1736689884034592182.devel@pollock-nageoire.net> <87bnpsi5wc.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 1412670780 26850 80.91.229.3 (7 Oct 2014 08:33:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 08:33:00 +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 Tue Oct 07 10:32:54 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 1XbQCT-0000qm-4v for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2014 10:32:53 +0200 Original-Received: from localhost ([::1]:57367 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbQCS-0006jI-Pk for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2014 04:32:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50486) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbQCB-0006if-GO for help-gnu-emacs@gnu.org; Tue, 07 Oct 2014 04:32:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbQC6-0006dc-3O for help-gnu-emacs@gnu.org; Tue, 07 Oct 2014 04:32:35 -0400 Original-Received: from smtp09.smtpout.orange.fr ([80.12.242.131]:50063 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbQC5-0006d2-TJ for help-gnu-emacs@gnu.org; Tue, 07 Oct 2014 04:32:30 -0400 Original-Received: from localhost ([92.151.247.46]) by mwinf5d18 with ME id 08YT1p00S10o2nw038YTqe; Tue, 07 Oct 2014 10:32:28 +0200 X-ME-Helo: localhost X-ME-Date: Tue, 07 Oct 2014 10:32:28 +0200 X-ME-IP: 92.151.247.46 In-Reply-To: <87bnpsi5wc.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.131 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:100320 Archived-At: From: Tassilo Horn Subject: Re: DocView: process ps->pdf changed status to killed. Date: Sat, 04 Oct 2014 10:41:07 +0200 > Pierre Lorenzon writes: > > Hi Pierre, > >> Oops sorry ! In fact it does not work better with --no-site-file and >> -q. Simply I forgot removing pdf files that had been manually created >> and doc-view hence did not launch the conversion process. > > Ok, I see. But is it still true that the `start-process' form of my > last mail worked, i.e., the process finished normally without being > killed? That would be strange since that's pretty much the same what > doc-view does except that the latter might use a different > `default-directory'. > > So if it really worked, please try: > > (let* ((default-directory (or (unhandled-file-name-directory > default-directory) > (expand-file-name "~/"))) > (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 > > Now that's really exactly what doc-view does. Not really exactly as I see in the code since I saw a few supplementary things like recording the process in a list etc ... Anyway the code above gives finished since C-c C-c then y still gives killed in buffer test.ps. I will investigate more precisely but I have not much time at the moement. Thanks Pierre > > Bye, > Tassilo