From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bill Clementson <billclem@gmail.com> Newsgroups: gmane.emacs.help Subject: Re: doc-view.el now allows searching Date: Fri, 31 Aug 2007 09:38:59 -0700 Message-ID: <m0ejhjfyl8.fsf@gmail.com> References: <87wsvnfoyp.fsf@baldur.tsdh.de> <87d4xcoxyn.fsf@baldur.tsdh.de> <m0ejhr46ol.fsf@gmail.com> <878x7ylhdk.fsf@baldur.tsdh.de> <m0y7fyjhwv.fsf@gmail.com> <87fy26gn55.fsf@baldur.tsdh.de> <m0tzqmjev6.fsf@gmail.com> <m04pilk28l.fsf@gmail.com> <874pil8f2m.fsf@baldur.tsdh.de> <mailman.5410.1188230840.32220.help-gnu-emacs@gnu.org> <87odgsjef5.fsf@baldur.tsdh.de> <slrnfd7sum.ucr.joostkremers@j.kremers4.news.arnhem.chello.nl> <87absbg53e.fsf@baldur.tsdh.de> <slrnfdb7du.1ud.joostkremers@j.kremers4.news.arnhem.chello.nl> <878x7ujfov.fsf@baldur.tsdh.de> <slrnfdbq42.1ud.joostkremers@j.kremers4.news.arnhem.chello.nl> <87odgptrwx.fsf@baldur.tsdh.de> <slrnfdd3so.3ds.joostkremers@j.kremers4.news.arnhem.chello.nl> <877indtf1o.fsf_-_@baldur.tsdh.de> <mailman.72.1188494731.18990.help-gnu-emacs@gnu.org> <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: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org> 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 <geh-help-gnu-emacs@m.gmane.org>) 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 <help-gnu-emacs@gnu.org>; 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 <help-gnu-emacs@gnu.org>; 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 <help-gnu-emacs.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/help-gnu-emacs> List-Post: <mailto:help-gnu-emacs@gnu.org> List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=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: <http://permalink.gmane.org/gmane.emacs.help/47032> Hi Tassilo, Tassilo Horn <tassilo@member.fsf.org> writes: > Bill Clementson <billclem@gmail.com> 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