GNU bug report logs - #52385
29.0.50; Doc-View can't view separate pages in separate windows

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Thu, 9 Dec 2021 04:22:01 UTC

Severity: normal

Found in version 29.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Juri Linkov <juri <at> linkov.net>, Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: monnier <at> iro.umontreal.ca, 52385 <at> debbugs.gnu.org
Subject: bug#52385: 29.0.50; Doc-View can't view separate pages in separate windows
Date: Sat, 18 Dec 2021 11:11:34 +0200
> From: Juri Linkov <juri <at> linkov.net>
> Date: Thu, 16 Dec 2021 19:04:12 +0200
> Cc: 52385 <at> debbugs.gnu.org
> 
> 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")))

Thanks for the recipe.

> In 27.2 it displays different images in different windows.  But
> in 28.0.90 only one images is displayed in both windows.

In fact, the problem existed only in Emacs 29, on the master branch.
Emacs 28 behaves correctly.

Lars, this happened due to one of the changes you made as part of
installing the support for the 'min-width' space display spec: a small
code fragment was moved inside handle_display_prop, in a way that
disabled the selection of overlays specific to windows, when those
overlays have the 'display' property.

I moved that code fragment back to where it belongs, and tested that
min-width still seems to work, both on the mode line and in the
xdisp-tests.el.  If you know about any other situation where that move
of the code was necessary, please show the recipe or tell the details.

Otherwise, this bug should be fixed now on the master branch.




This bug report was last modified 3 years and 156 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.