From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#12876: 24.3.50; DocView problem with cached files Date: Wed, 14 Nov 2012 22:47:39 -0500 Message-ID: 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 1352951314 28142 80.91.229.3 (15 Nov 2012 03:48:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 15 Nov 2012 03:48:34 +0000 (UTC) Cc: Stephen Berman , 12876@debbugs.gnu.org To: Tassilo Horn Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 15 04:48: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 1TYqRV-0000wW-0X for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Nov 2012 04:48:41 +0100 Original-Received: from localhost ([::1]:33065 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYqRL-00027R-56 for geb-bug-gnu-emacs@m.gmane.org; Wed, 14 Nov 2012 22:48:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYqRH-00026e-CM for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 22:48:30 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TYqRE-0001n7-AS for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 22:48:27 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:33096) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TYqRE-0001n3-77 for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 22:48:24 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TYqRq-0007ul-Lq for bug-gnu-emacs@gnu.org; Wed, 14 Nov 2012 22:49:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Nov 2012 03:49: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.135295130230372 (code B ref 12876); Thu, 15 Nov 2012 03:49:02 +0000 Original-Received: (at 12876) by debbugs.gnu.org; 15 Nov 2012 03:48:22 +0000 Original-Received: from localhost ([127.0.0.1]:43346 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYqRC-0007tp-0A for submit@debbugs.gnu.org; Wed, 14 Nov 2012 22:48:22 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:15714) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TYqR9-0007th-Cd for 12876@debbugs.gnu.org; Wed, 14 Nov 2012 22:48:19 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ai0FAG6Zu09sr+ZY/2dsb2JhbABEsEiDSYEIghUBAQQBViMFCwsOJhIUGA0kiBwFugmQRAOIQppxgViDB4E4Gg X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="207652125" Original-Received: from 108-175-230-88.dsl.teksavvy.com (HELO pastel.home) ([108.175.230.88]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 14 Nov 2012 22:47:40 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id C9E22594C8; Wed, 14 Nov 2012 22:47:39 -0500 (EST) In-Reply-To: <87k3tpi6wz.fsf@thinkpad.tsdh.de> (Tassilo Horn's message of "Tue, 13 Nov 2012 21:28:44 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) 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: 0.8 (/) 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:66945 Archived-At: > 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. ] > 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. 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. IOW, can you recompile image-mode.el and doc-view.el (or do a full bootstrap) and then tell us whether you still see the problem (and if so, try to provide a more detailed recipe)? Stefan