From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; doc-view: occasionally stuck at welcome screen Date: Wed, 16 Apr 2008 08:25:28 +0200 Message-ID: <87hce22u5j.fsf@member.fsf.org> References: <20080415162635.832C6809A05@mt-computer.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208327726 13780 80.91.229.12 (16 Apr 2008 06:35:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 06:35:26 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 16 08:35:46 2008 connect(): Connection refused Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Jm164-00033h-0Q for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 08:26:20 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jm15P-0004ky-AG for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 02:25:39 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jm15J-0004j8-9w for emacs-devel@gnu.org; Wed, 16 Apr 2008 02:25:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jm15H-0004i7-Os for emacs-devel@gnu.org; Wed, 16 Apr 2008 02:25:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jm15H-0004hk-Hk for emacs-devel@gnu.org; Wed, 16 Apr 2008 02:25:31 -0400 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jm15H-000401-AL for emacs-devel@gnu.org; Wed, 16 Apr 2008 02:25:31 -0400 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id E60CAECCD4 for ; Wed, 16 Apr 2008 02:25:30 -0400 (EDT) Original-Received: from heartbeat2.messagingengine.com ([10.202.2.161]) by compute1.internal (MEProxy); Wed, 16 Apr 2008 02:25:30 -0400 X-Sasl-enc: 0Y50GL7IUVtcj+lyURp6z0mQztUmmFEiCXs2ljjcE+yg 1208327130 Original-Received: from localhost (dslb-092-072-000-074.pools.arcor-ip.net [92.72.0.74]) by mail.messagingengine.com (Postfix) with ESMTPA id 353B41C72E for ; Wed, 16 Apr 2008 02:25:29 -0400 (EDT) Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: <20080415162635.832C6809A05@mt-computer.local> (Markus Triska's message of "Tue, 15 Apr 2008 18:26:35 +0200 (CEST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:95336 Archived-At: Markus Triska 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