help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Keyboard macro with Isearch


From: J. David Boyd
Subject: Re: Keyboard macro with Isearch
Date: Thu, 11 Aug 2005 15:32:02 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

Kevin Rodgers <ihs_4664@yahoo.com> writes:

> J. David Boyd wrote:
>  > I've got this in my .emacs.  It does a research regexp Isearch to look
>  > for a '{' as the only character on a line.  I also have a
>  > corresponding one using regexp Isearch to move forward looking for a
>  > '}' on a line. (I use these in C programming).
>  >
>  > These don't stick after call Isearch.  Maybe this would be a step in
>  > the right direction for you.
>  >
>  > (fset 'start-of-function [?\C-u ?\C-R ?^ ?{ ?$ ?\C-m])
>  > (global-set-key (kbd "C-{") 'start-of-function)
>
> I don't know what you mean by "stick after call Isearch".  But these
> avoid the problem reported by the OP by explicitly terminating isearch,
> with C-m.

That's what I meant by 'stick'... Sorry for the sloppy nomenclature...

>
> And to find the beginning or end of a function definition, Emacs already
> has C-M-a and C-M-e.
>

Ha!  I've been using emacs for 8 years now, and I didn't know that.  Thanks
for the info!  (I do like my mapping better, so maybe I'll reset my defaults)

Dave in Largo, FL





reply via email to

[Prev in Thread] Current Thread [Next in Thread]