From: taashlo@cyberdude.com (Tad Ashlock)
Subject: Re: Elisp: Search a File Without Visiting?
Date: 17 Jun 2003 17:44:34 -0700 [thread overview]
Message-ID: <c8f570aa.0306171644.17803a8d@posting.google.com> (raw)
In-Reply-To: 5lel1sbm90.fsf@rum.cs.yale.edu
"Stefan Monnier" <monnier+gnu.emacs.help/news/@flint.cs.yale.edu> wrote in message news:<5lel1sbm90.fsf@rum.cs.yale.edu>...
> > 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.
Tad
next prev parent reply other threads:[~2003-06-18 0:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-16 18:33 Elisp: Search a File Without Visiting? taashlo
2003-06-16 19:13 ` Sam Halliday
2003-06-16 19:48 ` taashlo
2003-06-16 19:13 ` Kai Großjohann
2003-06-16 19:47 ` taashlo
2003-06-16 19:20 ` Stefan Monnier
2003-06-17 17:04 ` taashlo
2003-06-17 18:19 ` Stefan Monnier
2003-06-18 0:44 ` Tad Ashlock [this message]
2003-06-17 15:02 ` Eric Hanchrow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c8f570aa.0306171644.17803a8d@posting.google.com \
--to=taashlo@cyberdude.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).