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 13:29:57 -0700 Message-ID: References: <87wsvnfoyp.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> <87lkbrd2bm.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 1188592289 18076 80.91.229.12 (31 Aug 2007 20:31:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 31 Aug 2007 20:31:29 +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 22:31:25 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 1IRD9B-0005kT-RN for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 22:31:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRD9B-0003jA-6K for geh-help-gnu-emacs@m.gmane.org; Fri, 31 Aug 2007 16:31:17 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IRD8D-0002l9-Sz for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 16:30:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IRD8D-0002jx-1F for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 16:30:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IRD8C-0002jP-J7 for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 16:30:16 -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 1IRD8C-0000fK-2F for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 16:30:16 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IRD87-0007zf-9I for help-gnu-emacs@gnu.org; Fri, 31 Aug 2007 22:30:11 +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 22:30:11 +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 22:30:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 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:ATge37rK5pHLnBxu0ZGGG22/k/4= 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:47041 Archived-At: Hi Tassilo, Tassilo Horn writes: > Bill Clementson writes: >>> 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. > > Yippie! > > And it's even getting better: the search matches are now displayed in > the help-echo, too. Hey, that's really cool. But, I have to move the mouse in order to get the help-echo to display. Is there anyway to get the help-echo to display without the mouse (either automatically once you've done "C-S-n" or with a key)? >> 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. > > I have that PDF and it works for me. Could you please delete the > doc.txt in the cache and try again? > > If it still doesn't work, please post your search regexp. Ok, I deleted the doc.txt file for PCL and did a "C-u doc-view" to re-generate the PDF; however, search still doesn't work properly with PCL. I just did a simple search for "mapcar". When I press "C-S-n", the first page it positions to is physical page 51 (page 25 in the book). However, "mapcar" isn't on that page. The first match is actually on physical page 57 (page 31 in the book) and that corresponds to the matching text that is displayed by doc-view for physical page 51 ("specify the values to change. The main new bit is the use of a function MAPCARthat maps over"). Presumably, if you search for "mapcar", you are positioned to physical page 57? - Bill