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, 18 Oct 2014 07:32:46 +0200 (CEST) Message-ID: <20141018.073246.1226955945483316970.devel@pollock-nageoire.net> References: <87bnpsi5wc.fsf@thinkpad-t440p.tsdh.org> <20141007.102533.2212875331518577085.devel@pollock-nageoire.net> <87oatouu2y.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 1413610824 23174 80.91.229.3 (18 Oct 2014 05:40:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Oct 2014 05:40:24 +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 18 07:40:18 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 1XfMkT-0001fh-Ki for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Oct 2014 07:40:17 +0200 Original-Received: from localhost ([::1]:35752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfMkT-0000Fw-3z for geh-help-gnu-emacs@m.gmane.org; Sat, 18 Oct 2014 01:40:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfMkE-0000CS-Nm for help-gnu-emacs@gnu.org; Sat, 18 Oct 2014 01:40:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XfMk9-0006JT-Nx for help-gnu-emacs@gnu.org; Sat, 18 Oct 2014 01:40:02 -0400 Original-Received: from smtp08.smtpout.orange.fr ([80.12.242.130]:38713 helo=smtp.smtpout.orange.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XfMk9-0006JL-FD for help-gnu-emacs@gnu.org; Sat, 18 Oct 2014 01:39:57 -0400 Original-Received: from localhost ([86.212.75.254]) by mwinf5d31 with ME id 4Vfu1p00A5VBmDi03VfuaG; Sat, 18 Oct 2014 07:39:55 +0200 X-ME-Helo: localhost X-ME-Date: Sat, 18 Oct 2014 07:39:55 +0200 X-ME-IP: 86.212.75.254 In-Reply-To: <87oatouu2y.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.130 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:100492 Archived-At: Hi Tassilo From: Tassilo Horn Subject: Re: DocView: process ps->pdf changed status to killed. Date: Tue, 07 Oct 2014 11:07:01 +0200 > Pierre Lorenzon writes: > > Hi Pierre, > >>> 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 >> ... > > Yes, true. > >> 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. > > Ok. Then let's check if doc-view itself kills the txt conversion > process. To do that, please do `M-x trace-function RET > doc-view-kill-proc RET' and try opening your document and convert it to > text. Here is what I get in the trace buffer : ====================================================================== 1 -> doc-view-kill-proc: 1 <- doc-view-kill-proc: nil ====================================================================== 1 -> doc-view-kill-proc: 1 <- doc-view-kill-proc: nil But I cannot interpret that ! Pierre > > Bye, > Tassilo