all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: emacs-devel@gnu.org
Subject: Re: 23.0.60; doc-view: occasionally stuck at welcome screen
Date: Wed, 16 Apr 2008 08:25:28 +0200	[thread overview]
Message-ID: <87hce22u5j.fsf@member.fsf.org> (raw)
In-Reply-To: <20080415162635.832C6809A05@mt-computer.local> (Markus Triska's message of "Tue, 15 Apr 2008 18:26:35 +0200 (CEST)")

Markus Triska <markus.triska@gmx.at> writes:

> 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.  I don't know why.  Maybe the with-current-buffer form shadows the
buffer-window association?

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

Bye,
Tassilo




  reply	other threads:[~2008-04-16  6:25 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 [this message]
2008-04-16 14:04   ` Stefan Monnier
2008-04-21  5:36     ` Chong Yidong
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=87hce22u5j.fsf@member.fsf.org \
    --to=tassilo@member.fsf.org \
    --cc=emacs-devel@gnu.org \
    /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.