Skip to content

PDF movement controls inoperative after windmove-swap-states-* #349

@Cerebus

Description

@Cerebus

Describe the bug
Using windmove to swap a PDFView buffer into a different window in the frame causes

Steps to Reproduce the behaviour
Steps to reproduce the behaviour:

  1. Split the frame vertically.
  2. Open a PDF in the left buffer.
  3. windmove-swap-states-right
  4. Page forward and back
  5. windmove-swap-states-left
  6. Page forward and back.

What is the expected behaviour?
The buffer should behave normally after any windmove-swap.

Desktop
Please complete the following information:

  • OS: macOS Tahoe
  • Emacs Version: 30.2 (d12frosted)
  • Poppler Version: 26.0.2

Your pdf-tools install
Please complete the following information:

  • pdf-tools Version:
     Status: Installed in ‘pdf-tools-20260102.1101/’ (unsigned). Delete
    Version: 20260102.1101
     Commit: e4b7f1f37cf59ddf025d609ffcdabe732a6e99ba
    Summary: Support library for PDF documents.
   Requires: emacs-26.3, tablist-1.0, let-alist-1.0.4
    Website: https://github.com/vedang/pdf-tools/
   Keywords: files multimedia 
     Author: Andreas Politz <mail@andreas-politz.de>
Other versions: 20260102.1101 (melpa), 1.3.0 (nongnu).
  • pdf-tools customization / configuration that you use
(use-package pdf-tools
  :ensure t
  :defer t
  :init
  (add-to-list 'auto-mode-alist '("\\.[Pp][Dd][Ff]\\'" . pdf-view-mode))
  :config
  (pdf-loader-install))

Additional context

  • Sometimes movement still works after a single swap operation, but not after a second.
  • Moving a PDFView buffer back to a window where movement previously worked will "fix" the problem, so this is possibly something about window parameters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions