A problem with pdf-tools
wojnicki opened this issue · 5 comments
wojnicki commented
Wrong contents copied.
To reproduce:
- pdf-tools are used to display a pdf document.
- select a region
- copy the region with M-w
- yank (C-y) in another buffer: result is "%PDF-1.5" instead of the region selected before.
wojnicki commented
pdf-tools version: 20200512
purcell commented
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 commented
pdf-tools is a replacement of DocView for PDF files. It enables viewing,
searching, copying, annotations etc.
The major mode, upon viewing a PDF, is PDFView.
Yes, it makes perfect sense not to enable
whole-line-or-region-local-mode there, whis is a valid workaround.
purcell commented
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 commented
Yes it is pdf-view-mode.
…On 9/17/20 12:41 AM, Steve Purcell wrote:
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.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#14 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADU4ZVK2WWGNF6DQAOV2LD3SGE5LDANCNFSM4RNBX7QQ>.
--
pozdrawiam,
dr hab. inż. Igor Wojnicki, prof. AGH