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: DocView: process ps->pdf changed status to killed. Date: Tue, 07 Oct 2014 11:07:01 +0200 Message-ID: <87oatouu2y.fsf@thinkpad-t440p.tsdh.org> References: <20141004.054621.763802124711265078.devel@pollock-nageoire.net> <20141004.055451.1736689884034592182.devel@pollock-nageoire.net> <87bnpsi5wc.fsf@thinkpad-t440p.tsdh.org> <20141007.102533.2212875331518577085.devel@pollock-nageoire.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412672855 21585 80.91.229.3 (7 Oct 2014 09:07:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 7 Oct 2014 09:07:35 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Pierre Lorenzon Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 07 11:07:28 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 1XbQjw-0008VB-6j for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2014 11:07:28 +0200 Original-Received: from localhost ([::1]:57438 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbQjt-0005xZ-Lc for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Oct 2014 05:07:25 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbQjd-0005xP-Ce for help-gnu-emacs@gnu.org; Tue, 07 Oct 2014 05:07:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbQjX-0003N8-R5 for help-gnu-emacs@gnu.org; Tue, 07 Oct 2014 05:07:09 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:47344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbQjX-0003My-Kz for help-gnu-emacs@gnu.org; Tue, 07 Oct 2014 05:07:03 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 6D2913D601B; Tue, 7 Oct 2014 11:07:02 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bB5NfEddZLNz; Tue, 7 Oct 2014 11:07:02 +0200 (CEST) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad-t440p.tsdh.org (dhcp226.uni-koblenz.de [141.26.71.226]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 11D763D6011; Tue, 7 Oct 2014 11:07:02 +0200 (CEST) In-Reply-To: <20141007.102533.2212875331518577085.devel@pollock-nageoire.net> (Pierre Lorenzon's message of "Tue, 07 Oct 2014 10:25:33 +0200 (CEST)") 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:100321 Archived-At: 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. Bye, Tassilo