From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Simon Katz Newsgroups: gmane.emacs.bugs Subject: bug#15126: 24.3; kmacro-end-and-call-macro repeats macro multiple times following isearch-forward Date: Sun, 18 Aug 2013 22:39:41 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c37aba4e92d204e43fa9cc X-Trace: ger.gmane.org 1376865189 10863 80.91.229.3 (18 Aug 2013 22:33:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 18 Aug 2013 22:33:09 +0000 (UTC) To: 15126@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 19 00:33:12 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 1VBBX5-0004Ll-NT for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Aug 2013 00:33:11 +0200 Original-Received: from localhost ([::1]:40198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBBX5-0008Ep-Ba for geb-bug-gnu-emacs@m.gmane.org; Sun, 18 Aug 2013 18:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBBX0-0008Eh-2S for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2013 18:33:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBBWw-0001yX-OA for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2013 18:33:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:44721) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBBWw-0001yT-K4 for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2013 18:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VBBWw-0000jX-2h for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2013 18:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Simon Katz Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Aug 2013 22:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.13768651592777 (code B ref -1); Sun, 18 Aug 2013 22:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 18 Aug 2013 22:32:39 +0000 Original-Received: from localhost ([127.0.0.1]:39037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VBBWY-0000ih-6l for submit@debbugs.gnu.org; Sun, 18 Aug 2013 18:32:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40007) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VBAhd-0007e0-T8 for submit@debbugs.gnu.org; Sun, 18 Aug 2013 17:40:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBAhU-0003yy-Ua for submit@debbugs.gnu.org; Sun, 18 Aug 2013 17:39:56 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51070) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBAhU-0003yt-Ql for submit@debbugs.gnu.org; Sun, 18 Aug 2013 17:39:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41717) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBAhR-0007O8-HS for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2013 17:39:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VBAhL-0003xf-Vn for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2013 17:39:49 -0400 Original-Received: from mail-la0-x242.google.com ([2a00:1450:4010:c03::242]:52333) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VBAhL-0003x9-Kt for bug-gnu-emacs@gnu.org; Sun, 18 Aug 2013 17:39:43 -0400 Original-Received: by mail-la0-f66.google.com with SMTP id er20so1477241lab.9 for ; Sun, 18 Aug 2013 14:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=oAvBTVinwJWEW4s7QJxF7n1PJ6gqLQa+yKI2gqILDUE=; b=OCSRN8vJ3DaKHAN/WTHzFMYbzmDJd40Skmhfb29QmD7YWFyi7Mcf4b2fMlvW5m+p0E zutEF9GbewIQSBDtfyeCnKGeYgeMmBh8/moS2UZMqxpcB+tqqmxS2YaNsRnM68RZFA0Y IFRrnEseJw2mO/TM+Vu+G0HySgRmvlN/qMicNMlBo5JJe2E+PLNiU8NL53Lryq8dYs1a yB9ETHb2N1XgtdvWcwSLjnwPbfnkTeq6ZESKIXIGx9+YgGtDRaqhVknPU8SFsPBTmis4 pTBZjnVlifLFyc4wo28VC5Ru9ZqHiVMot0y2MQUmeIiltHC9/k5p6HFnveecc5QFRM4F 0HSg== X-Received: by 10.112.14.102 with SMTP id o6mr3361396lbc.28.1376861981412; Sun, 18 Aug 2013 14:39:41 -0700 (PDT) Original-Received: by 10.112.219.162 with HTTP; Sun, 18 Aug 2013 14:39:41 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sun, 18 Aug 2013 18:32:36 -0400 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:77487 Archived-At: --001a11c37aba4e92d204e43fa9cc Content-Type: text/plain; charset=ISO-8859-1 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? Here's a precise recipe: /Applications/Emacs-24-3-1.app/Contents/MacOS/Emacs -Q Then at the start of the *scratch* buffer: C-s e r C-x ( x x x x C-s C-s C-x e Emacs makes multiple changes for the C-x e. In GNU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36) of 2013-03-13 on bob.porkrind.org Windowing system distributor `Apple', version 10.3.1138 Configured using: `configure '--host=x86_64-apple-darwin' '--build=i686-apple-darwin' '--with-ns' 'build_alias=i686-apple-darwin' 'host_alias=x86_64-apple-darwin' 'CC=gcc -mmacosx-version-min=10.7 -isystem /Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/usr/include/ -F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks'' Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: s-x M-x r e p o r t Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. kill-region: The mark is not set now, so there is no region Making completion list... Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) --001a11c37aba4e92d204e43fa9cc Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
If I have a buffer with some text that is repeated se= veral times and
do the following:
=A0 - C-s <som= e text> =A0(isearch-forward) =A0 to search for the repeated text
=A0 - C-x ( =A0 (kmacro-start-macro)
=A0 - Enter some new text
=A0 - C-s C-s =A0 to search again<= /div>
=A0 - C-x e =A0(kmacro-end-and-call-macro)
I get differ= ent 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<= /div>
want.

In Emacs 24.3.1, kmacro-end-and-ca= ll-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 t= hat 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?

Here&= #39;s a precise recipe:

=A0 /Applications/Emacs-24= -3-1.app/Contents/MacOS/Emacs -Q

=A0 Then at the start of the *scratch* buffer:

=A0 C-s =A0 e r =A0 C-x ( =A0 x x x x =A0 C-s C-s =A0 C-x = e

=A0 Emacs makes multiple changes for the =A0C-x = e.





In G= NU Emacs 24.3.1 (x86_64-apple-darwin, NS apple-appkit-1038.36)
= =A0of 2013-03-13 on bob.porkrind.org
Windowing system distributor `Apple', version 10.3.1138
= Configured using:
=A0`configure '--host=3Dx86_64-apple-darwin= ' '--build=3Di686-apple-darwin'
=A0'--with-ns'= ; 'build_alias=3Di686-apple-darwin'
=A0'host_alias=3Dx86_64-apple-darwin' 'CC=3Dgcc -mmacosx-v= ersion-min=3D10.7
=A0-isystem
=A0/Users/david/Xcode-10.= 7_4.5.2/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SD= Ks/MacOSX10.7.sdk/usr/include/
=A0-F/Users/david/Xcode-10.7_4.5.2/Xcode.app/Contents/Developer/Platfo= rms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks= ''

Important settings:
=A0 value= of $LANG: en_GB.UTF-8
=A0 locale-coding-system: utf-8-unix
=A0 default enable-mult= ibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
=A0 tooltip-mode: = t
=A0 mouse-wheel-mode: t
=A0 tool-bar-mode: t
=A0 m= enu-bar-mode: t
=A0 file-name-shadow-mode: t
=A0 global= -font-lock-mode: t
=A0 font-lock-mode: t
=A0 blink-curs= or-mode: t
=A0 auto-composition-mode: t
=A0 auto-encryption-mode: t
=A0 auto-compression-mode: t
=A0 line-number-mode: t
=
=A0 transient-mark-mode: t

Recent input:
s-x M-x r e p <tab> o r t <tab> <return>

Recent messages:
For information about GNU Emacs and the= GNU system, type C-h C-a.
kill-region: The mark is not set now, = so there is no region
Making completion list...

Load-path shadows:<= /div>
None found.

Features:
(shadow = sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
mail-prsvr mail-utils help-mode easymenu time-date tooltip ediff-hook
vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image
regexp-opt fringe tabulated-list newcomment lisp-mode register page
menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-l= ock
syntax facemenu font-core frame cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese hebrew greek
romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loadde= fs
button faces cus-face macroexp files text-properties overlay s= ha1 md5
base64 format env code-pages mule custom widget hashtable= -print-readable
backquote make-network-process ns multi-tty emacs)

--001a11c37aba4e92d204e43fa9cc--