From: Chong Yidong <cyd@stupidchicken.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: 23.0.60; doc-view: occasionally stuck at welcome screen
Date: Mon, 21 Apr 2008 01:36:47 -0400 [thread overview]
Message-ID: <87zlrnbwgg.fsf@stupidchicken.com> (raw)
In-Reply-To: <jwvej95gaph.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed, 16 Apr 2008 10:04:24 -0400")
Stefan Monnier <monnier@iro.umontreal.ca> 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.
next prev parent reply other threads:[~2008-04-21 5:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-15 16:26 23.0.60; doc-view: occasionally stuck at welcome screen Markus Triska
2008-04-16 6:25 ` Tassilo Horn
2008-04-16 14:04 ` Stefan Monnier
2008-04-21 5:36 ` Chong Yidong [this message]
2008-04-29 0:00 ` Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zlrnbwgg.fsf@stupidchicken.com \
--to=cyd@stupidchicken.com \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.