unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Keyboard macro with Isearch
Date: Thu, 11 Aug 2005 11:44:39 -0600	[thread overview]
Message-ID: <ddg2qd$kti$1@sea.gmane.org> (raw)
In-Reply-To: <m37jetx5fd.fsf@freewill.adboyd.com>

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

  reply	other threads:[~2005-08-11 17:44 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-10  2:40 Keyboard macro with Isearch Aaron S. Hawley
2005-08-10 13:55 ` J. David Boyd
2005-08-11 17:44   ` Kevin Rodgers [this message]
2005-08-11 19:32     ` J. David Boyd
     [not found] <Pine.A41.4.58.0508221345420.39610@elk.uvm.edu>
2005-08-22 17:55 ` Aaron S. Hawley
2005-10-29 15:45   ` Aaron S. Hawley

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to='ddg2qd$kti$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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).