all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Aaron S. Hawley" <Aaron.Hawley@uvm.edu>
Subject: Re: Keyboard macro with Isearch
Date: Sat, 29 Oct 2005 11:45:25 -0400 (EDT)	[thread overview]
Message-ID: <Pine.A41.4.58.0510281950440.59292@gnu.uvm.edu> (raw)
In-Reply-To: <Pine.A41.4.58.0508221346400.39610@elk.uvm.edu>

This problem is now a much shorter bug report:

<http://lists.gnu.org/archive/html/bug-gnu-emacs/2005-10/msg00534.html>

/a

I wrote on Mon, 22 Aug 2005,

> After the confusion from my original post, I am still looking for a
> solution to the "keyboard macros with Isearch" problem.
>
> Kevin Boyd's response though not helpful for my problem does show exactly
> what the problem is with Isearch.  If one wanted an Emacs macro using
> Isearch to terminate a search, then one could explicityly add `RET' (or
> for Kevin `C-m')  to terminate the search.  But even without `RET', a
> macro using search terminates the search when the macro ends, rather than
> keeping the search interactive.
>
> I wrote on 9 August 2005:
>
> > Isearch doesn't play nice with keyboard macros.
> >
> > One of the simplest macros that could use Isearch would to be a simple
> > call of isearch-forward using C-s.  The macro could be created with:
> >
> >   C-x ( C-s C-x ) C-x C-k b C-.
> >
> > or evaluating:
> >
> >   (global-set-key [?\C-.] "\C-s")
> >
> > Unfortunately, calling such a macro causes Isearch to halt taking
> > input rather than stay "interactive" and take input from the user for
> > the search string and continue highlighting any matches.
> >
> > The above is admittedly not a useful example, but I'm interested how
> > to store specific interactive searches with Isearch as macros, like
> > `C-s C-w' or anything more complicated, and then bounding them to
> > shorter key sequences like `C-.' or <f5>.  Using the `C-s C-w'
> > example:
> >
> >   C-x ( C-s C-w C-x ) C-x C-k b C-.
> >
> > or evaluating:
> >
> >   (global-set-key [?\C-.] "\C-s\C-w")
> >
> > The search works by going to the end of the current word, but halts
> > and gives the message, "Mark saved where search started".
> >
> > It's not clear to me how create customizations for calling Isearch,
> > unless you use not only Emacs Lisp but make hacks useing Isearch's
> > internals.
> >
> > This code in the function isearch-done in file isearch.el looks like
> > at least one suspect for bias against macros:
> >
> >               (or executing-kbd-macro (> (minibuffer-depth) 0)
> >                   (message "Mark saved where search started"))))))
> >
> > /a

  reply	other threads:[~2005-10-29 15:45 UTC|newest]

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

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=Pine.A41.4.58.0510281950440.59292@gnu.uvm.edu \
    --to=aaron.hawley@uvm.edu \
    /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.