[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: |
Chong Yidong |
Subject: |
Re: 23.0.60; doc-view: occasionally stuck at welcome screen |
Date: |
Mon, 21 Apr 2008 01:36:47 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
Stefan Monnier <address@hidden> writes:
>> 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 think what's happening is that doc-view-mode is being run during file
autodetection, before the selected window switches to the doc-view
buffer. Thus, (window-buffer (selected-window)) is not equal to
(current-buffer).
Maybe you could fix this by reinstating the variable
doc-view-current-page, which was removed in your 2008-02-21 change.
That would provide a "default" current-page, applicable when the buffer
isn't shown in any windows. Then modify doc-view-display accordingly.