[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 23.0.60; doc-view: occasionally stuck at welcome screen
From: |
Stefan Monnier |
Subject: |
Re: 23.0.60; doc-view: occasionally stuck at welcome screen |
Date: |
Wed, 16 Apr 2008 10:04:24 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>> When I do M-x doc-view-clear-cache, and then:
>>
>> $ emacs -Q file.pdf
>>
>> doc-view correctly displays the file (for example, with:
>> http://www.logic.at/prolog/testqueens.pdf ). If I quit, and again
>>
>> $ emacs -Q file.pdf
>>
>> then doc-view is stuck at the welcome screen. (When I press "C-c" four
>> times, it displays the document.)
> I can reproduce that. Hitting PageDown on the welcome screen is a
> woraround, too.
>> When I do M-x doc-view-clear-cache, I can again view the document with
>> "emacs -Q file.pdf", but it fails on every later attempt ("emacs
>> -Q..."), until I clear the cache again.
> I've located the source of the problem. In doc-view-display the
> (dolist (win (get-buffer-window-list buffer nil t)) ...)
> doesn't iterate over any windows, e.g. get-buffer-window-list returns nil.
Is it run before `buffer' is shown in a window, maybe?
> I don't know why. Maybe the with-current-buffer form shadows the
> buffer-window association?
No, with-current-buffer (i.e. set-buffer) should never affect the output
of get-buffer-window-list.
> The caller is doc-view-initiate-display and the problem occurs when a
> doc is already converted and thus the cached png files are used. Then
> the call is
> (doc-view-display (current-buffer) 'force)
> Since the current buffer (which shows the welcome screen) in visible,
> get-buffer-window-list should return that window...
Hmmm....
Stefan