From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Clementson Newsgroups: gmane.emacs.help Subject: Re: doc-view.el now allows searching Date: Fri, 31 Aug 2007 09:38:59 -0700 Message-ID: References: <87wsvnfoyp.fsf@baldur.tsdh.de> <87d4xcoxyn.fsf@baldur.tsdh.de> <878x7ylhdk.fsf@baldur.tsdh.de> <87fy26gn55.fsf@baldur.tsdh.de> <874pil8f2m.fsf@baldur.tsdh.de> <87odgsjef5.fsf@baldur.tsdh.de> <87absbg53e.fsf@baldur.tsdh.de> <878x7ujfov.fsf@baldur.tsdh.de> <87odgptrwx.fsf@baldur.tsdh.de> <877indtf1o.fsf_-_@baldur.tsdh.de> <87zm075022.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188578377 4733 80.91.229.12 (31 Aug 2007 16:39:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2007 16:39:37 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Aug 31 18:39:34 2007 Return-path: Envelope-to: geh-help-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 1IR9Ww-0006uH-GL for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 18:39:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IR9Wv-0004SP-WD for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 12:39:34 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IR9Wc-0004R1-N8 for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 12:39:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IR9Wb-0004Oj-NX for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 12:39:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IR9Wb-0004Nu-0t for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 12:39:13 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IR9Wa-0003Yu-JH for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 12:39:12 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IR9WY-0002Me-M2 for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 18:39:10 +0200 Original-Received: from s010600095bf8da6e.vn.shawcable.net ([24.87.84.193]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Aug 2007 18:39:10 +0200 Original-Received: from billclem by s010600095bf8da6e.vn.shawcable.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 31 Aug 2007 18:39:10 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: s010600095bf8da6e.vn.shawcable.net User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) Cancel-Lock: sha1:Inj1010OSF0vpuLygo9vOg0h79w= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:47032 Archived-At: Hi Tassilo, Tassilo Horn writes: > Bill Clementson writes: >> Alternatively, as each matching page is displayed with "C-S-n", >> perhaps you could display at the bottom of the page the matches on >> that page with a certain amount of context - (e.g. - 10 words on >> either side of each match). > > Now I display the line containing the match at the bottom. It's > possible that you have to delete the TXT files from the cache, because > this required a new option to pdftotext, so that the lines in the PDF > match the lines in the TXT file. Great - that looks really nice. I tried some searches on a number of different files and they almost all worked fine. However, when I tried searching Peter Seibel's Practical Common Lisp PDF book (free download from Apress: http://www.apress.com/free/index.html), there were mismatches between the page that was displayed and the matching text. The page number corresponded to the page number that was displayed; however, the search term wasn't on the page. The line containing the match was displayed correctly; however, it was for a page later in the document. This seemed to happen for any searches I did of the PCL pdf file. First, I thought it might have something to do with the size of the pdf file or blank pages not being counted; however, searches of the sicp.pdf book all seemed to produce correct results, so I'm not sure why the search functionality doesn't work properly in some instances. - Bill