Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A problem with pdf-tools #14

Closed
wojnicki opened this issue Sep 15, 2020 · 5 comments
Closed

A problem with pdf-tools #14

wojnicki opened this issue Sep 15, 2020 · 5 comments

Comments

@wojnicki
Copy link

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.
@wojnicki
Copy link
Author

wojnicki commented Sep 15, 2020

pdf-tools version: 20200512

@purcell
Copy link
Owner

purcell commented Sep 15, 2020

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.

@wojnicki
Copy link
Author

wojnicki commented Sep 16, 2020 via email

@purcell
Copy link
Owner

purcell commented Sep 16, 2020

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.

@wojnicki
Copy link
Author

wojnicki commented Sep 17, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants