From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: taashlo@cyberdude.com (Tad Ashlock) Newsgroups: gmane.emacs.help Subject: Re: Elisp: Search a File Without Visiting? Date: 17 Jun 2003 17:44:34 -0700 Organization: http://groups.google.com/ Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <5l4r2pde2e.fsf@rum.cs.yale.edu> <5lel1sbm90.fsf@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1055897335 7087 80.91.224.249 (18 Jun 2003 00:48:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2003 00:48:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 02:48:53 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19SR89-0001q6-00 for ; Wed, 18 Jun 2003 02:48:53 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19SR5J-0006GQ-QR for gnu-help-gnu-emacs@m.gmane.org; Tue, 17 Jun 2003 20:45:57 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews1.google.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 22 Original-NNTP-Posting-Host: 204.252.57.25 Original-X-Trace: posting.google.com 1055897075 24896 127.0.0.1 (18 Jun 2003 00:44:35 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: 18 Jun 2003 00:44:35 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:114540 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:11032 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:11032 "Stefan Monnier" 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