From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: isearch-whole-buffer? Date: Sat, 25 Mar 2006 20:56:07 GMT Organization: EarthLink Inc. -- http://www.EarthLink.net Message-ID: References: <-N-dnckRSdxBlrnZnZ2dnUVZ_vudnZ2d@mcgill.ca> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1143322856 23729 80.91.229.2 (25 Mar 2006 21:40:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Mar 2006 21:40:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 25 22:40:54 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FNGUw-0003KV-Ga for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Mar 2006 22:40:38 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FNGUv-00065Q-Pc for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Mar 2006 16:40:37 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread3.news.atl.earthlink.net.POSTED!0847253b!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Original-NNTP-Posting-Host: 4.159.17.202 Original-X-Complaints-To: abuse@earthlink.net Original-X-Trace: newsread3.news.atl.earthlink.net 1143320167 4.159.17.202 (Sat, 25 Mar 2006 12:56:07 PST) Original-NNTP-Posting-Date: Sat, 25 Mar 2006 12:56:07 PST Original-Xref: shelby.stanford.edu gnu.emacs.help:138379 Original-To: help-gnu-emacs@gnu.org 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:33984 Archived-At: "xyblor" wrote in message news:eoidnQEUW5yMErjZnZ2dnUVZ_v6dnZ2d@mcgill.ca... > Kevin Rodgers wrote: > > Kevin Rodgers wrote: > > > >> xyblor wrote: > >> > >>> Is there a way to search the whole buffer while I type, like Firefox's > >>> "find" command? > > > > (defadvice isearch-forward (before beginning-of-buffer activate) > > "Move point to the beginning of the buffer; leave mark at previous > > position." > > (beginning-of-buffer)) > > Thanks for the suggestion; I didn't know about this whole "advice" > concept. As you pointed out, this solution messes with the point in > such a way that C-g does not get you back to where you were before the > search, and I don't think I can live with that. I'm having trouble imagining why C-s xxxxxxxxxx... and then C-s again to force wrapping to the beginning of the buffer doesn't work for you. Even if the search string (xxxxxx...) is very long, you don't have to backspace to the beginning to return to the mark. You can just C-x C-x. No? Ed