[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#12876: 24.3.50; DocView problem with cached files
From: |
Stephen Berman |
Subject: |
bug#12876: 24.3.50; DocView problem with cached files |
Date: |
Tue, 13 Nov 2012 22:09:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) |
On Tue, 13 Nov 2012 21:28:44 +0100 Tassilo Horn <tsdh@gnu.org> wrote:
> Hi Stephen & Stefan,
>
> 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. 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.
Steve Berman