From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#12876: 24.3.50; DocView problem with cached files Date: Wed, 14 Nov 2012 11:05:53 +0100 Message-ID: <87ip988poe.fsf@thinkpad.tsdh.de> References: <87ip99g3it.fsf@rosalinde.fritz.box> <87k3tpi6wz.fsf@thinkpad.tsdh.de> <87ehjxfbwr.fsf@rosalinde.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352887598 26143 80.91.229.3 (14 Nov 2012 10:06:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2012 10:06:38 +0000 (UTC) Cc: 12876@debbugs.gnu.org To: Stephen Berman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 14 11:06:47 2012 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 1TYZrp-0006OI-Te for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 11:06:46 +0100 Original-Received: from localhost ([::1]:51019 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYZrg-0001Su-0t for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 05:06:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:54276) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYZra-0001NF-Ad for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 05:06:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYZrX-0004oF-88 for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 05:06:30 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYZrX-0004o3-4M for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 05:06:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYZs5-0004Cs-Hk for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 05:07:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Nov 2012 10:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12876 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12876-submit@debbugs.gnu.org id=B12876.135288760016143 (code B ref 12876); Wed, 14 Nov 2012 10:07:01 +0000 Original-Received: (at 12876) by debbugs.gnu.org; 14 Nov 2012 10:06:40 +0000 Original-Received: from localhost ([127.0.0.1]:40762 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYZrk-0004CK-B4 for submit@debbugs.gnu.org; Wed, 14 Nov 2012 05:06:40 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:33926) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYZrh-0004CC-IO for 12876@debbugs.gnu.org; Wed, 14 Nov 2012 05:06:39 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id CA0E5D2237; Wed, 14 Nov 2012 11:06:00 +0100 (CET) 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 X81Gvb1LcSKN; Wed, 14 Nov 2012 11:06:00 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 22EF3D2232; Wed, 14 Nov 2012 11:05:59 +0100 (CET) In-Reply-To: <87ehjxfbwr.fsf@rosalinde.fritz.box> (Stephen Berman's message of "Tue, 13 Nov 2012 22:09:08 +0100") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-Spam-Score: -0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -0.8 (/) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.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:66912 Archived-At: Stephen Berman writes: >> the following patch fixes the issue for me, but I'm not sure if it's >> the right thing to do. Stefan, could you please check? >> >> Basically, the difference between finding a not yet converted doc and >> a doc that's already cached is that in the former case >> `doc-view-goto-page' runs with the selected window displaying the >> doc's buffer. AFAIKS, that's a must for the image-mode winprops >> stuff to work, so in the latter case, the patch defers running >> `doc-view-goto-page' a bit into the future when the window showing >> the doc buffer is hopefully there. > > The patch fixes the problem for me, too; thanks. However, the delay > of 0.1 seconds results in the unconverted file being noticeable before > the image is displayed. Yes, but that's no big deal IMHO. You'll see the raw source for a short time also when the doc isn't cached already. > I tried it with a 0.01 second delay and this makes the image appear > practically instantly to me, i.e., I didn't see the unconverted > source, and the paging still worked. I don't know if this short a > delay is always guaranteed to succeed. It'll also work, but chances increase that the page-setting is deferred another fraction again. I tried to set the value so that it's not inconvenient but at the same time shouldn't need to delay again on slower systems. Bye, Tassilo