From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: xyblor Newsgroups: gmane.emacs.help Subject: Re: isearch-whole-buffer? Date: Sat, 25 Mar 2006 13:42:34 -0500 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; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1143315637 2875 80.91.229.2 (25 Mar 2006 19:40:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 25 Mar 2006 19:40:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 25 20:40:34 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 1FNEca-0007Tl-Mc for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Mar 2006 20:40:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FNEca-0004G4-39 for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Mar 2006 14:40:24 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.mcgill.ca!news.mcgill.ca.POSTED!not-for-mail Original-NNTP-Posting-Date: Sat, 25 Mar 2006 12:42:25 -0600 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041206 Thunderbird/1.0 Mnenhy/0.7.2.0 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 17 Original-NNTP-Posting-Host: 132.216.227.97 Original-X-Trace: sv3-lxK9dvn8GlKpR1GCEbhBMNIMxDgfy/I2wDshG6s5yB7Yk1HrD8KmTg0H22PJCCfGKiP7/Jn3H0oOfUp!2RQ+/j/2OM018gCqsyitpWNwDsY/V/zlMNCFQ2jKccJ4UUFug4T0WKOUtComLcEUzwnglwSq6J1t!Q04JXQZB Original-X-Complaints-To: abuse@mcgill.ca X-DMCA-Complaints-To: abuse@mcgill.ca X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Original-Xref: shelby.stanford.edu gnu.emacs.help:138378 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:33983 Archived-At: 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.