|
From: | Kevin Rodgers |
Subject: | Re: isearch-whole-buffer? |
Date: | Fri, 24 Mar 2006 09:58:09 -0700 |
User-agent: | Mozilla Thunderbird 0.9 (X11/20041105) |
Kevin Rodgers wrote:
xyblor wrote:Is there a way to search the whole buffer while I type, like Firefox's "find" command? As it is now, C-s only searches the text after the point, and C-r searches the text before the point. I think it would be more convenient for me if C-s searched the whole text, without forcing me to press C-s again to overwrap the search. Does anyone know of a function that would accomplish this? Or maybe there's a variable I can change to get the desired behavior? I'm using XEmacs 21.4.13 on Win32.(defadvice isearch-forward (before beginning-of-buffer activate) "Move point to the beginning of the buffer." (goto-char (point-min)))
Actually the following might be a little better. Generally you don't want to clobber the mark, but this would allow you to return to the current point after the search with `C-u C-SPC C-u C-SPC'. (defadvice isearch-forward (before beginning-of-buffer activate)"Move point to the beginning of the buffer; leave mark at previous position."
(beginning-of-buffer)) -- Kevin Rodgers
[Prev in Thread] | Current Thread | [Next in Thread] |