all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 5118@emacsbugs.donarmstrong.com,
	Tassilo Horn <tassilo@member.fsf.org>,
	Kevin Rodgers <kevin.d.rodgers@gmail.com>
Subject: bug#5118: DocView: copy/search text
Date: Sun, 06 Dec 2009 01:21:00 +0200	[thread overview]
Message-ID: <87ein96nmz.fsf@mail.jurta.org> (raw)
In-Reply-To: <jwvpr6tm8jw.fsf-monnier+emacsbugreports@gnu.org> (Stefan Monnier's message of "Sat, 05 Dec 2009 16:12:42 -0500")

>>>> 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.

I meant it's difficult for the user to find the current page (that is
displayed in the image buffer) to find the corresponding page in the
text buffer (with the output from `pdftotext').

I don't mind having a command that would switch from the image buffer
to the text buffer and narrow it to the current page.  So it would be easy
to copy any text from the textual representation of the current page.

-- 
Juri Linkov
http://www.jurta.org/emacs/





      reply	other threads:[~2009-12-05 23:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-04  0:03 bug#5118: DocView: copy/search text Juri Linkov
2009-12-05  8:59 ` Kevin Rodgers
2009-12-05 19:47   ` Juri Linkov
2009-12-05 21:12     ` Stefan Monnier
2009-12-05 23:21       ` Juri Linkov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ein96nmz.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=5118@emacsbugs.donarmstrong.com \
    --cc=kevin.d.rodgers@gmail.com \
    --cc=monnier@iro.umontreal.ca \
    --cc=tassilo@member.fsf.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.