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. And to find the beginning or end of a function definition, Emacs already has C-M-a and C-M-e. -- Kevin Rodgers _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs