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: bug#15126: 24.3; kmacro-end-and-call-macro repeats macro multiple times following isearch-forward Date: Tue, 27 Aug 2013 19:06:58 +0300 Organization: JURTA Message-ID: <87mwo3m82l.fsf@mail.jurta.org> References: <87mwo7juj6.fsf@mail.jurta.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1377619764 21425 80.91.229.3 (27 Aug 2013 16:09:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 27 Aug 2013 16:09:24 +0000 (UTC) Cc: 15126-done@debbugs.gnu.org To: Simon Katz Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 27 18:09:25 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VELpY-0007W1-Es for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Aug 2013 18:09:20 +0200 Original-Received: from localhost ([::1]:57389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VELpX-0002sU-VT for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Aug 2013 12:09:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58386) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VELpN-0002ng-Nl for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:09:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VELpH-0007fg-GO for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:09:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VELpH-0007fV-D6 for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:09:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VELpH-0000xs-6S for bug-gnu-emacs@gnu.org; Tue, 27 Aug 2013 12:09:03 -0400 Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Aug 2013 16:09:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 15126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 15126@debbugs.gnu.org, juri@jurta.org, nomiskatz@gmail.com Original-Received: via spool by 15126-done@debbugs.gnu.org id=D15126.13776196893621 (code D ref 15126); Tue, 27 Aug 2013 16:09:02 +0000 Original-Received: (at 15126-done) by debbugs.gnu.org; 27 Aug 2013 16:08:09 +0000 Original-Received: from localhost ([127.0.0.1]:59378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VELoO-0000wK-U9 for submit@debbugs.gnu.org; Tue, 27 Aug 2013 12:08:09 -0400 Original-Received: from ps18281.dreamhost.com ([69.163.218.105]:55097 helo=ps18281.dreamhostps.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VELoN-0000wD-14 for 15126-done@debbugs.gnu.org; Tue, 27 Aug 2013 12:08:07 -0400 Original-Received: from localhost.jurta.org (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id AFCA9258B9E935; Tue, 27 Aug 2013 09:08:05 -0700 (PDT) In-Reply-To: <87mwo7juj6.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 24 Aug 2013 12:45:01 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:77771 Archived-At: >> In Emacs 24.3.1, kmacro-end-and-call-macro calls the macro repeatedly >> making changes to all the repeated text up to the end of the file. > > It's clear that neither `C-x' nor `C-x e' should be stored. > So not storing `C-x e' will not execute the same macro repeatedly. This case is fixed now. Thanks for the bug report. There is another case where instead of `C-x e' typing more verbosely `M-x kmacro-end-and-call-macro RET' will store this sequence in the macro. But it's not a isearch specific problem as it can be reproduced without isearch by the test case: M-x kmacro-start-macro RET x x x x M-x kmacro-end-and-call-macro RET It doesn't stop after the first macro execution because it stores M-x and the command in the macro: Macro: 4*x ;; self-insert-command M-x ;; execute-extended-command kmacro-end-and-call-macro ;; self-insert-command * 25 This is a minor problem since nobody reported it because there are more convenient keys to do the same with `C-x ( x x x x C-x e' (or F3/F4).