[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: doc-view.el now allows searching

From: Bill Clementson
Subject: Re: doc-view.el now allows searching
Date: Fri, 31 Aug 2007 13:29:57 -0700
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin)

Hi Tassilo,

Tassilo Horn <address@hidden> writes:

> Bill Clementson <address@hidden> 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:
>>, 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]