Describe the bug
One of the many issues that are seemingly fixed on @aikrahguzar fork, but not here, is that the overlays at position with window property get clobbered by pdf-roll.
Steps to Reproduce the behaviour
Tested on emacs 31.0.50
- Open a pdf
- Enable pdf-view-roll-minor-mode
- Select any text and scroll window with mouse scroll.
- Navigate to another buffer in the same window
- Select any text and see that the pdf image now appears in this unrelated buffer.
Additional context
The issue is that pdf-roll-display-image sets the display property of all overlays in position to the pdf image. What this means is that the highlight overlay at position (which happens to have the window property) also has its display property set to the pdf image. This overlay is window specific (being set in redisplay--update-region-highlight) and navigating to another buffer displays the same overlay with the pdf image.
I can see that the code is changed in the child-frame-preview fork to also condition on a cateogry being pdf-roll or similar (this is standard practice to avoid modifying unintended overlays).
Until this fix is merged, the pdf-roll remains unusable and very distruptive.
Describe the bug
One of the many issues that are seemingly fixed on @aikrahguzar fork, but not here, is that the overlays at position with
windowproperty get clobbered by pdf-roll.Steps to Reproduce the behaviour
Tested on emacs 31.0.50
Additional context
The issue is that
pdf-roll-display-imagesets the display property of all overlays in position to the pdf image. What this means is that the highlight overlay at position (which happens to have the window property) also has its display property set to the pdf image. This overlay is window specific (being set inredisplay--update-region-highlight) and navigating to another buffer displays the same overlay with the pdf image.I can see that the code is changed in the
child-frame-previewfork to also condition on a cateogry beingpdf-rollor similar (this is standard practice to avoid modifying unintended overlays).Until this fix is merged, the pdf-roll remains unusable and very distruptive.