* kmacro-end-and-call-macro repeats macro multiple times following isearch-forward
@ 2013-08-18 8:08 nomiskatz
2013-08-18 9:13 ` nomiskatz
2013-08-18 9:16 ` nomiskatz
0 siblings, 2 replies; 9+ messages in thread
From: nomiskatz @ 2013-08-18 8:08 UTC (permalink / raw)
To: help-gnu-emacs
I've just upgraded from Emacs 24.2.1 to Emacs 24.3.1.
Full version details:
"GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2012-08-27 on bob.porkrind.org"
and
"GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2013-03-13 on bob.porkrind.org"
If I have a buffer with some text that is repeated several times and do the following...
- C-s (isearch-forward) to search for the repeated text
- C-x ( (kmacro-start-macro)
- Enter some new text
- C-x e (kmacro-end-and-call-macro)
... I get different behaviour in my old and new versions of Emacs.
In Emacs 24.2.1 and all previous versions I've used, kmacro-end-and-call-macro calls the macro once more, and I can go through the file making changes one at a time, and I can stop when I want.
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.
Interestingly, if I define a similar keyboard macro that uses next-error rather than isearch-forward I get my changes one at a time.
Is this some bizarre new behaviour for isearch-forward? Can I get the old behaviour back?
_
Simon
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kmacro-end-and-call-macro repeats macro multiple times following isearch-forward
2013-08-18 8:08 kmacro-end-and-call-macro repeats macro multiple times following isearch-forward nomiskatz
@ 2013-08-18 9:13 ` nomiskatz
2013-08-18 9:21 ` nomiskatz
` (2 more replies)
2013-08-18 9:16 ` nomiskatz
1 sibling, 3 replies; 9+ messages in thread
From: nomiskatz @ 2013-08-18 9:13 UTC (permalink / raw)
To: help-gnu-emacs
Grrrr! And apologies.
I missed out a step -- calling isearch-forward from within the keyboard macro. It should be:
- C-s (isearch-forward) to search for the repeated text
- C-x ( (kmacro-start-macro)
- Enter some new text
- C-s C-s to search again
- C-x e (kmacro-end-and-call-macro)
On Sunday, 18 August 2013 09:08:17 UTC+1, nomi...@gmail.com wrote:
> I've just upgraded from Emacs 24.2.1 to Emacs 24.3.1.
>
>
>
> Full version details:
>
> "GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
>
> of 2012-08-27 on bob.porkrind.org"
>
> and
>
> "GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
>
> of 2013-03-13 on bob.porkrind.org"
>
>
>
> If I have a buffer with some text that is repeated several times and do the following...
>
> - C-s (isearch-forward) to search for the repeated text
>
> - C-x ( (kmacro-start-macro)
>
> - Enter some new text
>
> - C-x e (kmacro-end-and-call-macro)
>
> ... I get different behaviour in my old and new versions of Emacs.
>
>
>
> In Emacs 24.2.1 and all previous versions I've used, kmacro-end-and-call-macro calls the macro once more, and I can go through the file making changes one at a time, and I can stop when I want.
>
>
>
> 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.
>
>
>
> Interestingly, if I define a similar keyboard macro that uses next-error rather than isearch-forward I get my changes one at a time.
>
>
>
> Is this some bizarre new behaviour for isearch-forward? Can I get the old behaviour back?
>
>
>
> _
>
> Simon
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kmacro-end-and-call-macro repeats macro multiple times following isearch-forward
2013-08-18 9:13 ` nomiskatz
@ 2013-08-18 9:21 ` nomiskatz
2013-08-18 9:25 ` nomiskatz
2013-08-18 18:14 ` Drew Adams
[not found] ` <mailman.266.1376849688.10748.help-gnu-emacs@gnu.org>
2 siblings, 1 reply; 9+ messages in thread
From: nomiskatz @ 2013-08-18 9:21 UTC (permalink / raw)
To: help-gnu-emacs
(Deleting original message and posting this corrected version... (again -- formatting problems).)
I've just upgraded from Emacs 24.2.1 to Emacs 24.3.1.
Full version details:
"GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2012-08-27 on bob.porkrind.org"
and
"GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2013-03-13 on bob.porkrind.org"
If I have a buffer with some text that is repeated several times and do the following:
- C-s (isearch-forward) to search for the repeated text
- C-x ( (kmacro-start-macro)
- Enter some new text
- C-s C-s to search again
- C-x e (kmacro-end-and-call-macro)
I get different behaviour in my old and new versions of Emacs.
In Emacs 24.2.1 and all previous versions I've used, kmacro-end-and-call-macro calls the macro once more, and I can go through the file making changes one at a time, and I can stop when I want.
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.
Interestingly, if I define a similar keyboard macro that uses next-error rather than isearch-forward I get my changes one at a time.
Is this some bizarre new behaviour for isearch-forward? Can I get the old behaviour back?
_
Simon
^ permalink raw reply [flat|nested] 9+ messages in thread
* RE: kmacro-end-and-call-macro repeats macro multiple times following isearch-forward
2013-08-18 9:13 ` nomiskatz
2013-08-18 9:21 ` nomiskatz
@ 2013-08-18 18:14 ` Drew Adams
[not found] ` <mailman.266.1376849688.10748.help-gnu-emacs@gnu.org>
2 siblings, 0 replies; 9+ messages in thread
From: Drew Adams @ 2013-08-18 18:14 UTC (permalink / raw)
To: nomiskatz, help-gnu-emacs
I'm not sure I follow you, but If I try to follow your recipe in
Emacs 24.3 (from `emacs -Q') then I see this: Each time I use `f4'
(`kmacro-end-and-call-macro') the cursor is moved to (just after)
the next search hit. That is what I would expect, and it is also
what I see in Emacs 24.1 (from `emacs -Q').
I did this in `*scratch*':
C-s e r C-x ( C-s C-s C-x ) f4 f4 f4...
Unless I misunderstand you, if you see something different for that
recipe, then be sure something in your init file is not interfering.
If you can reproduce the problem you see from `emacs -Q' then consider
filing an Emacs bug: `M-x report-emacs-bug'.
^ permalink raw reply [flat|nested] 9+ messages in thread
[parent not found: <mailman.266.1376849688.10748.help-gnu-emacs@gnu.org>]
* Re: kmacro-end-and-call-macro repeats macro multiple times following isearch-forward
[not found] ` <mailman.266.1376849688.10748.help-gnu-emacs@gnu.org>
@ 2013-08-18 21:15 ` nomiskatz
2013-08-19 8:56 ` Peter Dyballa
2013-08-20 10:58 ` nomiskatz
0 siblings, 2 replies; 9+ messages in thread
From: nomiskatz @ 2013-08-18 21:15 UTC (permalink / raw)
To: help-gnu-emacs
On Sunday, 18 August 2013 19:14:22 UTC+1, Drew Adams wrote:
> I'm not sure I follow you, but If I try to follow your recipe in
>
> Emacs 24.3 (from `emacs -Q') then I see this: Each time I use `f4'
>
> (`kmacro-end-and-call-macro') the cursor is moved to (just after)
>
> the next search hit. That is what I would expect, and it is also
>
> what I see in Emacs 24.1 (from `emacs -Q').
>
>
>
> I did this in `*scratch*':
>
>
>
> C-s e r C-x ( C-s C-s C-x ) f4 f4 f4...
>
>
>
> Unless I misunderstand you, if you see something different for that
>
> recipe, then be sure something in your init file is not interfering.
>
>
>
> If you can reproduce the problem you see from `emacs -Q' then consider
>
> filing an Emacs bug: `M-x report-emacs-bug'.
Thanks for trying it.
I did this (I'm on OS X):
/Applications/Emacs-24-3-1.app/Contents/MacOS/Emacs -Q
Then in the *scratch* buffer:
C-s e r C-x ( x x x x C-s C-s C-x e
Emacs made multiple changes for the C-x e.
I'll file a bug report.
Thanks again.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: kmacro-end-and-call-macro repeats macro multiple times following isearch-forward
2013-08-18 8:08 kmacro-end-and-call-macro repeats macro multiple times following isearch-forward nomiskatz
2013-08-18 9:13 ` nomiskatz
@ 2013-08-18 9:16 ` nomiskatz
1 sibling, 0 replies; 9+ messages in thread
From: nomiskatz @ 2013-08-18 9:16 UTC (permalink / raw)
To: help-gnu-emacs
(Deleting original message and posting this corrected version...)
I've just upgraded from Emacs 24.2.1 to Emacs 24.3.1.
Full version details:
"GNU Emacs 24.2.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2012-08-27 on bob.porkrind.org"
and
"GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
of 2013-03-13 on bob.porkrind.org"
If I have a buffer with some text that is repeated several times and do the following...
- C-s (isearch-forward) to search for the repeated text
- C-x ( (kmacro-start-macro)
- Enter some new text
- C-s C-s to search again
- C-x e (kmacro-end-and-call-macro)
... I get different behaviour in my old and new versions of Emacs.
In Emacs 24.2.1 and all previous versions I've used, kmacro-end-and-call-macro calls the macro once more, and I can go through the file making changes one at a time, and I can stop when I want.
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.
Interestingly, if I define a similar keyboard macro that uses next-error rather than isearch-forward I get my changes one at a time.
Is this some bizarre new behaviour for isearch-forward? Can I get the old behaviour back?
_
Simon
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-08-20 10:58 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-18 8:08 kmacro-end-and-call-macro repeats macro multiple times following isearch-forward nomiskatz
2013-08-18 9:13 ` nomiskatz
2013-08-18 9:21 ` nomiskatz
2013-08-18 9:25 ` nomiskatz
2013-08-18 18:14 ` Drew Adams
[not found] ` <mailman.266.1376849688.10748.help-gnu-emacs@gnu.org>
2013-08-18 21:15 ` nomiskatz
2013-08-19 8:56 ` Peter Dyballa
2013-08-20 10:58 ` nomiskatz
2013-08-18 9:16 ` nomiskatz
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.