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: Sat, 04 Oct 2014 10:41:07 +0200 Message-ID: <87bnpsi5wc.fsf@thinkpad-t440p.tsdh.org> References: <20141003.170920.1411034292687428339.devel@pollock-nageoire.net> <8738b56lz2.fsf@thinkpad-t440p.tsdh.org> <20141004.054621.763802124711265078.devel@pollock-nageoire.net> <20141004.055451.1736689884034592182.devel@pollock-nageoire.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1412412104 25279 80.91.229.3 (4 Oct 2014 08:41:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 4 Oct 2014 08:41:44 +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 Sat Oct 04 10:41:38 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 1XaKuH-0002jH-Ol for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2014 10:41:37 +0200 Original-Received: from localhost ([::1]:42990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaKuH-0008SX-B9 for geh-help-gnu-emacs@m.gmane.org; Sat, 04 Oct 2014 04:41:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaKu1-0008SO-G6 for help-gnu-emacs@gnu.org; Sat, 04 Oct 2014 04:41:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XaKtw-0005Ng-BD for help-gnu-emacs@gnu.org; Sat, 04 Oct 2014 04:41:21 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:50902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XaKtw-0005NS-7g for help-gnu-emacs@gnu.org; Sat, 04 Oct 2014 04:41:16 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by gateway2.nyi.internal (Postfix) with ESMTP id 61278207D2 for ; Sat, 4 Oct 2014 04:41:15 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute4.internal (MEProxy); Sat, 04 Oct 2014 04:41:15 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:from:to:cc:subject:references :date:in-reply-to:message-id:mime-version:content-type; s= smtpout; bh=oQotiFp+WOA1PF4Thu2Q08+Q27o=; b=AztG00BzFYc0SghiQ0Xd EuieaWleYVFqX3CuPUs+7JnAZ1Bj7vt/Jklb7NqwVSoMEX93IBLitYY8zt89ve3x jkjcmVUxKhkyriQEUlIYNlYlMOxY+FWSWGBzvVGGqqe0V72VWulj6TVQU5sg8qY4 USIrxK7KX1+cCRbsS2i1Sig= X-Sasl-enc: zjiBM35k8jAMqzSnaqtRoX/pI4AXvUxftSjnsNBXd1JS 1412412074 Original-Received: from thinkpad-t440p.tsdh.org (unknown [2.161.97.124]) by mail.messagingengine.com (Postfix) with ESMTPA id EFE8568015B; Sat, 4 Oct 2014 04:41:13 -0400 (EDT) In-Reply-To: <20141004.055451.1736689884034592182.devel@pollock-nageoire.net> (Pierre Lorenzon's message of "Sat, 04 Oct 2014 05:54:51 +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: Genre and OS details not recognized. X-Received-From: 66.111.4.25 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:100266 Archived-At: 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. Bye, Tassilo