all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: isearch-whole-buffer?
Date: Fri, 24 Mar 2006 09:58:09 -0700	[thread overview]
Message-ID: <e018gc$p35$1@sea.gmane.org> (raw)
In-Reply-To: <e015kg$cuh$1@sea.gmane.org>

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

  reply	other threads:[~2006-03-24 16:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-24 15:10 isearch-whole-buffer? xyblor
2006-03-24 16:09 ` isearch-whole-buffer? Kevin Rodgers
2006-03-24 16:58   ` Kevin Rodgers [this message]
     [not found]   ` <mailman.19.1143219602.14013.help-gnu-emacs@gnu.org>
2006-03-25 18:42     ` isearch-whole-buffer? xyblor
2006-03-25 20:56       ` isearch-whole-buffer? B. T. Raven
2006-03-25 22:48         ` isearch-whole-buffer? xyblor
2006-03-25 23:34           ` isearch-whole-buffer? Vin Shelton
2006-03-26  2:07           ` isearch-whole-buffer? Miles Bader
2006-03-26 10:42           ` isearch-whole-buffer? Peter Dyballa
2006-03-26  1:02 ` isearch-whole-buffer? Johan Bockgård

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='e018gc$p35$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.