From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#5118: DocView: copy/search text Date: Sat, 05 Dec 2009 16:12:42 -0500 Message-ID: References: <87hbs7bvbw.fsf@mail.jurta.org> <87pr6te9tt.fsf@mail.jurta.org> Reply-To: Stefan Monnier , 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 1260048534 7872 80.91.229.12 (5 Dec 2009 21:28:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Dec 2009 21:28:54 +0000 (UTC) Cc: 5118@emacsbugs.donarmstrong.com, Tassilo Horn , Kevin Rodgers To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Dec 05 22:28:46 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 1NH2BI-0000li-Tt for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 22:28:45 +0100 Original-Received: from localhost ([127.0.0.1]:38729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH2BI-0006l7-JH for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 Dec 2009 16:28:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NH2AI-00063m-DK for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 16:27:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NH2AB-0005xt-SS for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 16:27:40 -0500 Original-Received: from [199.232.76.173] (port=52194 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NH2AB-0005xf-FC for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 16:27:35 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:37777) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NH2AA-00038f-LZ for bug-gnu-emacs@gnu.org; Sat, 05 Dec 2009 16:27:35 -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 nB5LRPYG001791; Sat, 5 Dec 2009 13:27:32 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nB5LKDBa000957; Sat, 5 Dec 2009 13:20:13 -0800 Resent-Date: Sat, 5 Dec 2009 13:20:13 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com 2Resent-Date: Sat, 05 Dec 2009 21:20:13 +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.126004756932700 (code B ref 5118); Sat, 05 Dec 2009 21:20:13 +0000 Original-Received: (at 5118) by emacsbugs.donarmstrong.com; 5 Dec 2009 21:12:49 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from ironport2-out.pppoe.ca (ironport2-out.teksavvy.com [206.248.154.181]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nB5LCmDQ032692 for <5118@emacsbugs.donarmstrong.com>; Sat, 5 Dec 2009 13:12:49 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4EAOdbGktFpZ7i/2dsb2JhbACBS9MDhDMEih4 X-IronPort-AV: E=Sophos;i="4.47,347,1257138000"; d="scan'208";a="50759242" Original-Received: from 69-165-158-226.dsl.teksavvy.com (HELO pastel.home) ([69.165.158.226]) by ironport2-out.pppoe.ca with ESMTP; 05 Dec 2009 16:12:42 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 45DCF80B1; Sat, 5 Dec 2009 16:12:42 -0500 (EST) In-Reply-To: <87pr6te9tt.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 05 Dec 2009 21:47:50 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Sat, 05 Dec 2009 16:27:40 -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:33281 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. Stefan