From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Berman Newsgroups: gmane.emacs.bugs Subject: bug#12876: 24.3.50; DocView problem with cached files Date: Wed, 14 Nov 2012 11:25:50 +0100 Message-ID: <87fw4ciiq9.fsf@rosalinde.fritz.box> References: <87ip99g3it.fsf@rosalinde.fritz.box> <87k3tpi6wz.fsf@thinkpad.tsdh.de> <87ehjxfbwr.fsf@rosalinde.fritz.box> <87ip988poe.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352888798 5126 80.91.229.3 (14 Nov 2012 10:26:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2012 10:26:38 +0000 (UTC) Cc: 12876@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 14 11:26:49 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 1TYaBC-00044a-KF for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 11:26:46 +0100 Original-Received: from localhost ([::1]:57992 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYaB2-00072b-AS for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 05:26:36 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:33878) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYaAx-00071a-39 for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 05:26:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYaAu-0002Vo-0s for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 05:26:31 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58776) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYaAt-0002Vj-U6 for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 05:26:27 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYaBS-0004eN-CJ for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 05:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Berman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Nov 2012 10:27:02 +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.135288879017812 (code B ref 12876); Wed, 14 Nov 2012 10:27:02 +0000 Original-Received: (at 12876) by debbugs.gnu.org; 14 Nov 2012 10:26:30 +0000 Original-Received: from localhost ([127.0.0.1]:40781 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYaAw-0004dF-I3 for submit@debbugs.gnu.org; Wed, 14 Nov 2012 05:26:30 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:52074) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TYaAt-0004d7-Uh for 12876@debbugs.gnu.org; Wed, 14 Nov 2012 05:26:29 -0500 Original-Received: (qmail invoked by alias); 14 Nov 2012 10:25:52 -0000 Original-Received: from i59F5607D.versanet.de (EHLO rosalinde.fritz.box) [89.245.96.125] by mail.gmx.net (mp040) with SMTP; 14 Nov 2012 11:25:52 +0100 X-Authenticated: #20778731 X-Provags-ID: V01U2FsdGVkX18ApboFT8kANamLjCwBwkz07R+miNfi0XaGcitTlV pLxkgWyeeIVtwW In-Reply-To: <87ip988poe.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Wed, 14 Nov 2012 11:05:53 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-Y-GMX-Trusted: 0 X-Spam-Score: 0.6 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -0.7 (/) 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:66913 Archived-At: On Wed, 14 Nov 2012 11:05:53 +0100 Tassilo Horn wrote: > 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. How about making it customizable? Steve Berman