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, 21 Oct 2014 21:15:01 +0200 Message-ID: <8738ahtetm.fsf@thinkpad-t440p.tsdh.org> References: <87bnpsi5wc.fsf@thinkpad-t440p.tsdh.org> <20141007.102533.2212875331518577085.devel@pollock-nageoire.net> <87oatouu2y.fsf@thinkpad-t440p.tsdh.org> <20141018.073246.1226955945483316970.devel@pollock-nageoire.net> <87mw8smpse.fsf@thinkpad-t440p.tsdh.org> <87fvehztfs.fsf@thinkpad-t440p.tsdh.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1413918956 18156 80.91.229.3 (21 Oct 2014 19:15:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Oct 2014 19:15:56 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 21 21:15:50 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 1XgeuI-0004Zs-HG for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Oct 2014 21:15:46 +0200 Original-Received: from localhost ([::1]:53124 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XgeuI-000359-39 for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Oct 2014 15:15:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46896) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgetl-000353-Tn for help-gnu-emacs@gnu.org; Tue, 21 Oct 2014 15:15:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xgetg-0008Jk-He for help-gnu-emacs@gnu.org; Tue, 21 Oct 2014 15:15:13 -0400 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:43363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xgetg-0008JS-9t for help-gnu-emacs@gnu.org; Tue, 21 Oct 2014 15:15:08 -0400 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by gateway2.nyi.internal (Postfix) with ESMTP id 77D662096B for ; Tue, 21 Oct 2014 15:15:07 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute4.internal (MEProxy); Tue, 21 Oct 2014 15:15:07 -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=mf2CZ9mY7fCRDf0Uab8CpQzhLPQ=; b=oY/yT0ivA3GB2qWyshjk UUp8PjvLANQF5bxT6vObzwCprk7LTz4LChu6sPgNinxiFn4fe1LWoVS/i9NWK8p6 JEg6+swuUimt4f/nOB/NUANjIav6aJrizNd9fXRxOcjVjb2NIXzQ592oECJxpiBW DzoPP2Ovk8UHYk+U2sN5xTc= X-Sasl-enc: opY3kNF6641I2xmPfD2aSuWeaFFnzeH1gG8So4U2wBdr 1413918906 Original-Received: from thinkpad-t440p.tsdh.org (unknown [2.163.189.168]) by mail.messagingengine.com (Postfix) with ESMTPA id 7BBADC00011; Tue, 21 Oct 2014 15:15:06 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Tue, 21 Oct 2014 11:36:00 -0400") 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:100532 Archived-At: Stefan Monnier writes: >> The text contents of the document are opened in a separate buffer, not >> in the buffer of the original document. By doing the conversion >> synchronously the switching back from doc-view-mode to, say, ps-mode in >> the original buffer is deferred until that conversion has finished (and >> thus all the doc-view buffer local variables aren't needed anymore). > > Ah, then it sounds like the problem might be that the pdf2text process > should not be linked to the main buffer but only to the new "text view" > buffer (so that switching back to ps-mode in the main buffer wouldn't > affect the process) Well, yes, in theory. The ps/pdftotext conversion works like: 1. Convert to text by usual doc-view conversion machinery. 2. (find-file "doc.txt") Step 1 may involve more than just the pdftotext process, i.e., non-PDF files have to be converted to PDF first. We already have the relevant doc-view-*->pdf functions for that, but all of them (or their sentinels) access buffer-local doc-view-* variables. And that's fine except in the case when we want the process (or chain of processes) to continue although we're going to switch back the main buffer from doc-view-mode to whatever mode we've been in before. Bye, Tassilo