From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#5118: DocView: copy/search text Date: Sun, 06 Dec 2009 01:21:00 +0200 Organization: JURTA Message-ID: <87ein96nmz.fsf@mail.jurta.org> References: <87hbs7bvbw.fsf@mail.jurta.org> <87pr6te9tt.fsf@mail.jurta.org> Reply-To: Juri Linkov , 5118@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1260056871 29087 80.91.229.12 (5 Dec 2009 23:47:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 23:47:51 +0000 (UTC) Cc: 5118@emacsbugs.donarmstrong.com, Tassilo Horn , Kevin Rodgers To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 06 00:47:43 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1NH4Lm-00006L-JI for geb-bug-gnu-emacs@m.gmane.org; Sun, 06 Dec 2009 00:47:42 +0100 Original-Received: from localhost ([127.0.0.1]:38497 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH4Ll-0006Ds-Po for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 18:47:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NH4Lg-0006Ct-BI for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 18:47:36 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NH4Lc-0006CJ-V7 for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 18:47:36 -0500 Original-Received: from [199.232.76.173] (port=34147 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH4Lc-0006CG-PC for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 18:47:32 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35352) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NH4Lc-0003iJ-Cz for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 18:47:32 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5NlPC6018161; Sat, 5 Dec 2009 15:47:30 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB5NUBAW016107; Sat, 5 Dec 2009 15:30:11 -0800 Resent-Date: Sat, 5 Dec 2009 15:30:11 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com 2Resent-Date: Sat, 05 Dec 2009 23:30:11 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 5118 X-Emacs-PR-Package: emacs,doc-view X-Emacs-PR-Keywords: Original-Received: via spool by 5118-submit@emacsbugs.donarmstrong.com id=B5118.126005546815354 (code B ref 5118); Sat, 05 Dec 2009 23:30:11 +0000 Original-Received: (at 5118) by emacsbugs.donarmstrong.com; 5 Dec 2009 23:24:28 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mx2.starman.ee (smtp-out4.starman.ee [85.253.0.6]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5NOQeI015343 for <5118@emacsbugs.donarmstrong.com>; Sat, 5 Dec 2009 15:24:27 -0800 X-Virus-Scanned: by Amavisd-New at mx2.starman.ee Original-Received: from mail.starman.ee (82.131.97.127.cable.starman.ee [82.131.97.127]) by mx2.starman.ee (Postfix) with ESMTP id 20AE03F409B; Sun, 6 Dec 2009 01:24:19 +0200 (EET) In-Reply-To: (Stefan Monnier's message of "Sat, 05 Dec 2009 16:12:42 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (x86_64-pc-linux-gnu) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 05 Dec 2009 18:47:36 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:33294 Archived-At: >>>> 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/