purcell/whole-line-or-region

A problem with pdf-tools

wojnicki opened this issue · 5 comments

Wrong contents copied.

To reproduce:

  1. pdf-tools are used to display a pdf document.
  2. select a region
  3. copy the region with M-w
  4. yank (C-y) in another buffer: result is "%PDF-1.5" instead of the region selected before.

pdf-tools version: 20200512

Sorry, I don't know how to use pdf-tools to reproduce this: it just looks like a PDF support library, not a viewer.

What's the major mode? Perhaps it makes sense to avoid enabling whole-line-or-region-local-mode there.

Thanks. Is the major mode symbol pdf-view-mode? You can check with M-: major-mode. I can easily add a list of modes in which whole-line-or-region-global-mode should not enable whole-line-or-region-local-mode, and add that mode to the list.