unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: Simon Katz <nomiskatz@gmail.com>
Cc: 15126-done@debbugs.gnu.org
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	[thread overview]
Message-ID: <87mwo3m82l.fsf@mail.jurta.org> (raw)
In-Reply-To: <87mwo7juj6.fsf@mail.jurta.org> (Juri Linkov's message of "Sat, 24 Aug 2013 12:45:01 +0300")

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





  reply	other threads:[~2013-08-27 16:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-18 21:39 bug#15126: 24.3; kmacro-end-and-call-macro repeats macro multiple times following isearch-forward Simon Katz
2013-08-19  2:26 ` Drew Adams
2013-08-19  8:04 ` Simon Katz
2013-08-19 23:50 ` Juri Linkov
2013-08-24  9:45 ` Juri Linkov
2013-08-27 16:06   ` Juri Linkov [this message]
2013-09-01 13:10     ` Simon Katz

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=87mwo3m82l.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=15126-done@debbugs.gnu.org \
    --cc=nomiskatz@gmail.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.
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).