Kevin Rodgers <[EMAIL PROTECTED]> 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 _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs