bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#12876: 24.3.50; DocView problem with cached files


From: Stefan Monnier
Subject: bug#12876: 24.3.50; DocView problem with cached files
Date: Wed, 14 Nov 2012 22:47:39 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> 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?

[ BTW, using a "diff -b" is very helpful for such patches which
  reindent a lot of code. ]

> 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

Actually, no, the winprops stuff should also work when the buffer is not
displayed anywhere.

But I can't seem to reproduce the OP's problem.
I tried just "emacs -Q ~/tmp/foo.pdf; emacs -Q ~/tmp/foo.pdf" and it
worked fine.

I have the strange impression that the problem was actually not in
doc-view.el or image-mode.el (neither of which was modified between 110689
and 110748).  I instead suspect it was a temporary bug in gv.el.
It's been fixed since, but the fix will only become effective after
recompiling the victim.

IOW, can you recompile image-mode.el and doc-view.el (or do a full
bootstrap) and then tell us whether you still see the problem (and if
so, try to provide a more detailed recipe)?


        Stefan





reply via email to

[Prev in Thread] Current Thread [Next in Thread]