From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; doc-view: occasionally stuck at welcome screen Date: Wed, 16 Apr 2008 10:04:24 -0400 Message-ID: References: <20080415162635.832C6809A05@mt-computer.local> <87hce22u5j.fsf@member.fsf.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1208354733 9166 80.91.229.12 (16 Apr 2008 14:05:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 16 Apr 2008 14:05:33 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 16 16:05:51 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 1Jm8G7-00010k-S0 for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 16:05:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jm8FS-0005xi-Ko for ged-emacs-devel@m.gmane.org; Wed, 16 Apr 2008 10:04:30 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jm8FP-0005xP-Dn for emacs-devel@gnu.org; Wed, 16 Apr 2008 10:04:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jm8FN-0005wf-W8 for emacs-devel@gnu.org; Wed, 16 Apr 2008 10:04:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jm8FN-0005wc-T9 for emacs-devel@gnu.org; Wed, 16 Apr 2008 10:04:25 -0400 Original-Received: from ironport2-out.pppoe.ca ([206.248.154.182] helo=ironport2-out.teksavvy.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Jm8FN-0006yC-Hh for emacs-devel@gnu.org; Wed, 16 Apr 2008 10:04:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Aq8EALejBUhMCqsI/2dsb2JhbACBYK0v X-IronPort-AV: E=Sophos;i="4.25,664,1199682000"; d="scan'208";a="18650051" Original-Received: from smtp.pppoe.ca (HELO smtp.teksavvy.com) ([65.39.196.238]) by ironport2-out.teksavvy.com with ESMTP; 16 Apr 2008 10:04:25 -0400 Original-Received: from pastel.home ([76.10.171.8]) by smtp.teksavvy.com (Internet Mail Server v1.0) with ESMTP id WSU02425; Wed, 16 Apr 2008 10:04:25 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id BE1528DD0; Wed, 16 Apr 2008 10:04:24 -0400 (EDT) In-Reply-To: <87hce22u5j.fsf@member.fsf.org> (Tassilo Horn's message of "Wed, 16 Apr 2008 08:25:28 +0200") 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:95347 Archived-At: >> 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