[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5118: DocView: copy/search text
From: |
Stefan Monnier |
Subject: |
bug#5118: DocView: copy/search text |
Date: |
Sat, 05 Dec 2009 16:12:42 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) |
>>> Please add two features that would be easy to implement:
>>> 1. Copying the text of the current page to the kill ring.
>> I don't know anything about DocView, but shouldn't that be possible
>> in any major mode via C-x C-p (mark-page) then M-w (kill-ring-save)?
> `C-x C-p' and `M-w' will copy binary data, whereas `pdftotext' converts
> it to plain text in a hidden buffer that can be displayed with `C-c C-t'
> where you can do `C-x C-p' and `M-w'. But the problem is that it's
> difficult to find the current page in the text representation to be able
> to copy it.
doc-view-search-internal seems to just count ^Ls, so assuming
doc-view-search-internal works (which it appears to do), it shouldn't be
that hard.
Stefan