From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.bugs Subject: bug#12876: 24.3.50; DocView problem with cached files Date: Thu, 15 Nov 2012 08:31:38 +0100 Message-ID: <87r4nv490l.fsf@thinkpad.tsdh.de> References: <87ip99g3it.fsf@rosalinde.fritz.box> <87k3tpi6wz.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352964754 20413 80.91.229.3 (15 Nov 2012 07:32:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2012 07:32:34 +0000 (UTC) Cc: Stephen Berman , 12876@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 15 08:32:44 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TYtwG-0006dP-J2 for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Nov 2012 08:32:40 +0100 Original-Received: from localhost ([::1]:59974 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYtw6-0008UZ-LD for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Nov 2012 02:32:30 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:44657) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYtw2-0008UF-6b for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 02:32:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYtvz-0008LK-2q for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 02:32:26 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33465) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYtvz-0008LG-01 for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 02:32:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYtwc-0004o2-2G for bug-gnu-emacs@gnu.org; Thu, 15 Nov 2012 02:33:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Tassilo Horn Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Nov 2012 07:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12876 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12876-submit@debbugs.gnu.org id=B12876.135296474718435 (code B ref 12876); Thu, 15 Nov 2012 07:33:02 +0000 Original-Received: (at 12876) by debbugs.gnu.org; 15 Nov 2012 07:32:27 +0000 Original-Received: from localhost ([127.0.0.1]:43716 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYtw1-0004nH-Ri for submit@debbugs.gnu.org; Thu, 15 Nov 2012 02:32:27 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:45204) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYtvx-0004n7-Iv for 12876@debbugs.gnu.org; Thu, 15 Nov 2012 02:32:23 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id D99ADD23FC; Thu, 15 Nov 2012 08:31:40 +0100 (CET) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OstPMwDhNkMy; Thu, 15 Nov 2012 08:31:40 +0100 (CET) X-CHKRCPT: Envelopesender noch tsdh@gnu.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id 3432AD23FB; Thu, 15 Nov 2012 08:31:40 +0100 (CET) In-Reply-To: (Stefan Monnier's message of "Wed, 14 Nov 2012 22:47:39 -0500") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.3.50 (gnu/linux) X-Spam-Score: -0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-Spam-Score: -3.5 (---) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:66949 Archived-At: Stefan Monnier writes: >> the following patch fixes the issue for me, but I'm not sure if it's the >> right thing to do. Stefan, could you please check? > > [ BTW, using a "diff -b" is very helpful for such patches which > reindent a lot of code. ] Right, I'll do the next time. >> Basically, the difference between finding a not yet converted doc and >> a doc that's already cached is that in the former case >> `doc-view-goto-page' runs with the selected window displaying the >> doc's buffer. AFAIKS, that's a must for the image-mode winprops >> stuff to work, so in the latter case, the patch defers running > > Actually, no, the winprops stuff should also work when the buffer is > not displayed anywhere. > > But I can't seem to reproduce the OP's problem. > I tried just "emacs -Q ~/tmp/foo.pdf; emacs -Q ~/tmp/foo.pdf" and it > worked fine. Not here running "eliz@gnu.org-20121114172255-6mbtm95gmreikpt1", that is revno 110896. I have the same symptoms as Stephen, that is, "P/17" in mode-line and `doc-view-next-page' and friends error. There are some newer commits since then, but none in lisp/emacs-lisp/gv.el. > I have the strange impression that the problem was actually not in > doc-view.el or image-mode.el (neither of which was modified between > 110689 and 110748). I instead suspect it was a temporary bug in > gv.el. It's been fixed since, but the fix will only become effective > after recompiling the victim. I run Gentoo GNU/Linux, so everytime I reinstall the emacs-vcs package, it'll do a complete vanialla install bootstrapping and recompiling everything. I'll update to revno 110904 to see if it works and report back. Bye, Tassilo