From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: Re: Isearch halts in commands and macros Date: Wed, 02 Nov 2005 00:03:38 +0200 Organization: JURTA Message-ID: <87wtjsf2kl.fsf@jurta.org> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1130888254 32479 80.91.229.2 (1 Nov 2005 23:37:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 1 Nov 2005 23:37:34 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Nov 02 00:37:25 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EX5fr-00065H-JO for geb-bug-gnu-emacs@m.gmane.org; Wed, 02 Nov 2005 00:36:15 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EX5fr-0002XI-1h for geb-bug-gnu-emacs@m.gmane.org; Tue, 01 Nov 2005 18:36:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EX5fm-0002UN-8n for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2005 18:36:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EX5fk-0002Tr-Ok for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2005 18:36:09 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EX5fk-0002To-MU for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2005 18:36:08 -0500 Original-Received: from [194.126.101.111] (helo=mail.neti.ee) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EX5fk-0003iz-Ob for bug-gnu-emacs@gnu.org; Tue, 01 Nov 2005 18:36:08 -0500 Original-Received: from mail.neti.ee (80-235-38-199-dsl.mus.estpak.ee [80.235.38.199]) by Relayhost1.neti.ee (Postfix) with ESMTP id 7E2261712; Wed, 2 Nov 2005 01:36:19 +0200 (EET) Original-To: "Aaron S. Hawley" In-Reply-To: (Aaron S. Hawley's message of "Sat, 29 Oct 2005 19:19:03 -0400 (EDT)") User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) X-Virus-Scanned: by amavisd-new-2.2.1 (20041222) (Debian) at neti.ee X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:13836 Archived-At: > 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/