From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.ciao.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#34138: 27.0.50; Delayed display of PDF file images Date: Mon, 21 Jan 2019 21:47:21 +0200 Message-ID: <83bm49aj3q.fsf@gnu.org> References: <871s58e4gh.fsf@gmx.net> <5C443CB1.3050208@gmx.at> <87h8e3h90z.fsf@gmx.net> <5C4483B7.1060604@gmx.at> <87d0orgz0a.fsf@gmx.net> <837eezbazk.fsf@gnu.org> <878szfgwdu.fsf@gmx.net> <8336pnb9cq.fsf@gnu.org> <874la3gujy.fsf@gmx.net> <831s57b7ev.fsf@gnu.org> <87zhrvfdzu.fsf@gmx.net> <83zhrv9qe5.fsf@gnu.org> <87sgxnf48d.fsf@gmx.net> <83pnsq9f47.fsf@gnu.org> <871s56dm5q.fsf@gmx.net> <83lg3e9dd6.fsf@gnu.org> <87womxdgdq.fsf@gmx.net> <83fttlam3b.fsf@gnu.org> <87sgxlrfgg.fsf@hochschule-trier.de> Injection-Info: ciao.gmane.org; posting-host="ciao.gmane.org:195.159.176.228"; logging-data="80692"; mail-complaints-to="usenet@ciao.gmane.org" Cc: stephen.berman@gmx.net, 34138@debbugs.gnu.org, tsdh@gnu.org To: Andreas Politz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 21 20:49:53 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1glfZw-000KvO-LU for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 20:49:52 +0100 Original-Received: from localhost ([127.0.0.1]:58971 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glfZv-0005Ww-Km for geb-bug-gnu-emacs@m.gmane.org; Mon, 21 Jan 2019 14:49:51 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glfYE-0004aB-2F for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 14:48:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1glfYC-0000IF-5g for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 14:48:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41226) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1glfYA-0000HC-J9 for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 14:48:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1glfYA-00006O-8A for bug-gnu-emacs@gnu.org; Mon, 21 Jan 2019 14:48:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 21 Jan 2019 19:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34138 X-GNU-PR-Package: emacs Original-Received: via spool by 34138-submit@debbugs.gnu.org id=B34138.1548100064355 (code B ref 34138); Mon, 21 Jan 2019 19:48:02 +0000 Original-Received: (at 34138) by debbugs.gnu.org; 21 Jan 2019 19:47:44 +0000 Original-Received: from localhost ([127.0.0.1]:40507 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glfXs-00005f-0u for submit@debbugs.gnu.org; Mon, 21 Jan 2019 14:47:44 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:39423) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1glfXq-00005S-KO for 34138@debbugs.gnu.org; Mon, 21 Jan 2019 14:47:43 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1glfXk-0008WN-TR; Mon, 21 Jan 2019 14:47:36 -0500 Original-Received: from [176.228.60.248] (port=2623 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1glfXj-0006Nu-SN; Mon, 21 Jan 2019 14:47:36 -0500 In-reply-to: <87sgxlrfgg.fsf@hochschule-trier.de> (message from Andreas Politz on Mon, 21 Jan 2019 20:14:07 +0100) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.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" Xref: news.gmane.org gmane.emacs.bugs:154656 Archived-At: > From: Andreas Politz > Cc: Stephen Berman , rudalics@gmx.at, 34138@debbugs.gnu.org, tsdh@gnu.org > Date: Mon, 21 Jan 2019 20:14:07 +0100 > > image-mode uses window-configuration-change-hook to check whether a new > window for the buffer it was activated for was created. In this case it > runs the hook image-mode-new-window-functions. This is the hook > pdf-tools attaches itself to in order to create an overlay with a window > property and the image of the current page. > > Usually, i.e. in Emacs 26.1, this is sufficient for the image to be > visible immediately (or at least immediately after the function has > returned and Emacs is idle). Conversely, in the current master branch, > the image is not visible until, as it seems, the next redraw cycle. > > Note, that I don't see a delay. Rather nothing seems to happen until I > trigger a redisplay, for example via M-x. So it's indeed a redisplay problem. Can you build both Emacs 26 and Emacs 27 with --enable-checking, then disable blink-cursor-mode and global-eldoc-mode, then invoke "M-x trace-redisplay", and show the trace displayed on stderr in both versions when you visit a PDF file? Please invoke trace-redisplay _before_ you visit the PDF file. I'm especially interested in what happens in Emacs 27 after you visit the PDF file, but _before_ you type "M-x" that causes the image to be displayed. IOW, what trace do you see after visiting the PDF file during that time that "nothing seems to happen", as compared to what happens in Emacs 26. Thanks.