From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#52385: 29.0.50; Doc-View can't view separate pages in separate windows Date: Thu, 16 Dec 2021 19:04:12 +0200 Organization: LINKOV.NET Message-ID: <86ee6c5upv.fsf@mail.linkov.net> References: <86wnkbnfnp.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5095"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 52385@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 16 18:36:34 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mxugD-0001CM-BV for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Dec 2021 18:36:33 +0100 Original-Received: from localhost ([::1]:33040 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxugC-0007PN-7a for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 16 Dec 2021 12:36:32 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:48550) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxufj-0007Mg-Df for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2021 12:36:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:53276) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxufj-00027G-4e for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2021 12:36:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mxufj-00061W-2L for bug-gnu-emacs@gnu.org; Thu, 16 Dec 2021 12:36:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 16 Dec 2021 17:36:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52385 X-GNU-PR-Package: emacs Original-Received: via spool by 52385-submit@debbugs.gnu.org id=B52385.163967613723106 (code B ref 52385); Thu, 16 Dec 2021 17:36:03 +0000 Original-Received: (at 52385) by debbugs.gnu.org; 16 Dec 2021 17:35:37 +0000 Original-Received: from localhost ([127.0.0.1]:36587 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxufI-00060c-Rz for submit@debbugs.gnu.org; Thu, 16 Dec 2021 12:35:37 -0500 Original-Received: from relay8-d.mail.gandi.net ([217.70.183.201]:47305) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mxufD-0005zi-C5 for 52385@debbugs.gnu.org; Thu, 16 Dec 2021 12:35:31 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay8-d.mail.gandi.net (Postfix) with ESMTPSA id F1AE61BF20C; Thu, 16 Dec 2021 17:35:23 +0000 (UTC) In-Reply-To: <86wnkbnfnp.fsf@mail.linkov.net> (Juri Linkov's message of "Sat, 11 Dec 2021 20:46:18 +0200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222507 Archived-At: >> % emacs -Q some/multi-page.pdf >> C-x 2 >> n n >> >> You'll see that the `n` changes the page in both windows. >> This was not the case in Emacs<29 where this could be used to view >> different pages of the same PDF in the exact same way we can view >> different "pages" of a text buffer when displayed in several windows. > > It seems window-configuration-change-hook is not called > after splitting the window with C-x 2, and thus > image-mode-reapply-winprops is not called from this hook. Actually, window-configuration-change-hook is called correctly. But the regression is in overlay window priorities: when two overlays with 'window' properties are added over the same region, then in 27.2 the overlay where the overlay window matches the selected window is preferred over the overlay with another window. But in 28.0.90 the first overlay always wins. Here is the shortest test case: (let ((o1 (make-overlay (point-min) (point-max) nil t)) (o2 (make-overlay (point-min) (point-max) nil t))) (overlay-put o1 'window (selected-window)) (overlay-put o1 'display '(image :type xpm :file "left-arrow.xpm")) (select-window (split-window)) (overlay-put o2 'window (selected-window)) (overlay-put o2 'display '(image :type xpm :file "right-arrow.xpm"))) In 27.2 it displays different images in different windows. But in 28.0.90 only one images is displayed in both windows.