[Top][All Lists]

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

Re: Elisp: Search a File Without Visiting?

From: Tad Ashlock
Subject: Re: Elisp: Search a File Without Visiting?
Date: 17 Jun 2003 17:44:34 -0700

"Stefan Monnier" <> wrote in 
message news:<address@hidden>...
> > There's just one minor little nit that is bugging me.  After
> > formatting the "*Thesaurus Search Results*" buffer, I call
> > forward-line to position the cursor on a blank line.  This works fine
> > if the "Results" window is buried or non-existant, but if it is still
> > visible from a previous search, the cursor is always ends up located
> > at the beginning of the buffer after the call to display-buffer.
> Think about what happens when a buffer is shown in two windows:
> clearly, there must be more than one `point' per buffer.
> So you want to select the window that displays the buffer, and
> *then* do forward-line, so that you end up moving the `point' that
> you care about, rather than some other `point' of the same buffer.
>         Stefan

Thanks again Stefan!  That was it.  I'm now satisfied with mthesaur.el
and have posted it to gnu.emacs.sources.  Thanks for all of the help. 
Let me know if you have any ideas for improvements.


reply via email to

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