From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexis Newsgroups: gmane.emacs.bugs Subject: bug#17059: bug 17059 still present Date: Thu, 23 Oct 2014 18:27:29 +1100 Message-ID: <87oat3z1i7.fsf@gmail.com> References: <5315.1413844526@ccs.covici.com> <87vbnczhfe.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414049492 28778 80.91.229.3 (23 Oct 2014 07:31:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 23 Oct 2014 07:31:32 +0000 (UTC) To: 17059@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 23 09:31:25 2014 Return-path: Envelope-to: geb-bug-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 1XhCrj-0007sl-R7 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Oct 2014 09:31:24 +0200 Original-Received: from localhost ([::1]:35691 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhCrh-0005Ku-2u for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Oct 2014 03:31:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhCrW-0005KE-Hu for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2014 03:31:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XhCrP-00016O-2W for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2014 03:31:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40198) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XhCrO-00016K-Vw for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2014 03:31:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XhCrN-00025s-TL for bug-gnu-emacs@gnu.org; Thu, 23 Oct 2014 03:31:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Oct 2014 07:31:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17059 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 17059-submit@debbugs.gnu.org id=B17059.14140494568032 (code B ref 17059); Thu, 23 Oct 2014 07:31:01 +0000 Original-Received: (at 17059) by debbugs.gnu.org; 23 Oct 2014 07:30:56 +0000 Original-Received: from localhost ([127.0.0.1]:60529 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhCrH-00025R-Bt for submit@debbugs.gnu.org; Thu, 23 Oct 2014 03:30:55 -0400 Original-Received: from mail-pd0-f169.google.com ([209.85.192.169]:37707) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XhCrF-00025B-7I for 17059@debbugs.gnu.org; Thu, 23 Oct 2014 03:30:53 -0400 Original-Received: by mail-pd0-f169.google.com with SMTP id w10so870248pde.0 for <17059@debbugs.gnu.org>; Thu, 23 Oct 2014 00:30:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:to:subject:date:in-reply-to:message-id:mime-version :content-type; bh=qcJX/wpmdfeMjh3OHLyrx0umofOYBeX+gqYzLOUUopY=; b=qJ69s00WZNs7jY3Ktl7/uKDv1yEJrlBvSZU98zl/4Mah7i9y+kAGDIXAqLCeHJ+1cn GfKwtAnfdHany6W5FpnT8jDFm380itG24vxH70HHg67qt5nwKlBhqSEtiAYmbrd1y7Xc N5gFUFhZnX1/v3ovK9+qXqFgHUAVuQIVDGzyc8Vy/afjbv3tHv5kvQ16f5iBAn/IndRu i0GSeD2RfsBvUvkt2ZO8WDsSWOUNks0dT2nbVE9KE3CwaG1wPn8TnTsvN3CurtFyu7tT kikjbR7GOkUQjfp4AiBsKPtGCAfYCf5ZZMYYA6PJJ3BOrgPvugwfjRgliXqxvybbFFAQ FTJw== X-Received: by 10.68.242.164 with SMTP id wr4mr1942500pbc.148.1414049446751; Thu, 23 Oct 2014 00:30:46 -0700 (PDT) Original-Received: from localhost (ppp118-209-119-125.lns20.mel4.internode.on.net. [118.209.119.125]) by mx.google.com with ESMTPSA id x13sm873990pdk.22.2014.10.23.00.30.44 for <17059@debbugs.gnu.org> (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 23 Oct 2014 00:30:45 -0700 (PDT) In-reply-to: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:94972 Stefan Monnier writes: >> i then instrumented `doc-view-initiate-display` instead, and stepped >> through it line-by-line .... and when it reached `(doc-view-open-text)` >> and called it, the text was extracted and displayed in a buffer. > > The step-by-step gave the process time to finish before it gets killed. > >> i'm now no longer able to reproduce the issue with -nw -Q. > > The process is not needed any more because we reuse the output from > earlier Emacs sessions (stashed in /tmp somewhere). Ah, okay. Thanks for explaining! So: calling `sit-for` in `doc-view-start-process` solves the problem for me: (defun doc-view-start-process (name program args callback) ;; Make sure the process is started in an existing directory, (rather than ;; some file-name-handler-managed dir, for example). (let* ((default-directory (or (unhandled-file-name-directory default-directory) (expand-file-name "~/"))) (proc (apply 'start-process name doc-view-conversion-buffer program args))) (push proc doc-view--current-converter-processes) (setq mode-line-process (list (format ":%s" proc))) (set-process-sentinel proc 'doc-view-sentinel) (sit-for 1) (process-put proc 'buffer (current-buffer)) (process-put proc 'callback callback))) Is this a reasonable solution? Alexis.