GNU bug report logs - #12876
24.3.50; DocView problem with cached files

Previous Next

Package: emacs;

Reported by: Stephen Berman <stephen.berman <at> gmx.net>

Date: Tue, 13 Nov 2012 11:14:02 UTC

Severity: normal

Tags: moreinfo

Found in versions 24.2.50, 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tassilo Horn <tsdh <at> gnu.org>
To: Stephen Berman <stephen.berman <at> gmx.net>
Cc: 12876 <at> debbugs.gnu.org
Subject: bug#12876: 24.3.50; DocView problem with cached files
Date: Wed, 14 Nov 2012 11:05:53 +0100
Stephen Berman <stephen.berman <at> gmx.net> 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




This bug report was last modified 4 years and 312 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.