unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: Isearch halts in commands and macros
Date: Wed, 02 Nov 2005 00:03:38 +0200	[thread overview]
Message-ID: <87wtjsf2kl.fsf@jurta.org> (raw)
In-Reply-To: <Pine.A41.4.58.0510291846360.56158@elk.uvm.edu> (Aaron S. Hawley's message of "Sat, 29 Oct 2005 19:19:03 -0400 (EDT)")

> Only after seeing that a macro with Isearch could work as one would expect
> in GNU Emacs 20 did I determine that the behavior was a reasonable
> expectation to make of Emacs and therefore worthy of sending a bug report.

In Emacs 21 macro termination intentionally causes isearch mode to exit.
You can find in isearch.el the following line that does this:

    (add-hook 'kbd-macro-termination-hook 'isearch-done)

There are other places that check if a keyboard macro is executing,
and don't highlight search strings in this case, etc.

So with the current state, you could write an equivalent Lisp code like:

(defun isearch-current-word ()
  (interactive)
  (isearch-forward nil 1)
  (isearch-yank-word))

(global-set-key [?\C-.] 'isearch-current-word)

-- 
Juri Linkov
http://www.jurta.org/emacs/

      reply	other threads:[~2005-11-01 22:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-28 23:43 Isearch halts in commands and macros Aaron S. Hawley
2005-10-29 20:34 ` Richard M. Stallman
2005-10-29 23:19   ` Aaron S. Hawley
2005-11-01 22:03     ` Juri Linkov [this message]

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=87wtjsf2kl.fsf@jurta.org \
    --to=juri@jurta.org \
    --cc=bug-gnu-emacs@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).