From unknown Sun Jun 22 04:01:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13452: 24.1; Macro Playback Fails When Buffer Scrolls Resent-From: Raymond Zeitler Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Jan 2013 18:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 13452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 13452@debbugs.gnu.org Cc: "r.zeitler@ieee.org" X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Received: via spool by submit@debbugs.gnu.org id=B.135827508621414 (code B ref -1); Tue, 15 Jan 2013 18:39:02 +0000 Received: (at submit) by debbugs.gnu.org; 15 Jan 2013 18:38:06 +0000 Received: from localhost ([127.0.0.1]:33744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBOf-0005ZK-Dj for submit@debbugs.gnu.org; Tue, 15 Jan 2013 13:38:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44413) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvB9T-0005BJ-3D for submit@debbugs.gnu.org; Tue, 15 Jan 2013 13:22:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvB8v-0001GK-Gs for submit@debbugs.gnu.org; Tue, 15 Jan 2013 13:21:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-99.4 required=5.0 tests=BAYES_00,HTML_MESSAGE, RECEIVED_FROM_WINDOWS_HOST, USER_IN_WHITELIST autolearn=no version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvB8v-0001GF-Ca for submit@debbugs.gnu.org; Tue, 15 Jan 2013 13:21:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvB8t-000230-Q0 for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 13:21:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvB8r-0001FW-Nh for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 13:21:47 -0500 Received: from 63-144-137-67.dia.static.qwest.net ([63.144.137.67]:60586 helo=Exchange2010.PHONON.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvB8r-0001FQ-Fn for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 13:21:45 -0500 Received: from EXCHANGE2010.PHONON.com ([::1]) by Exchange2010.PHONON.com ([::1]) with mapi id 14.01.0438.000; Tue, 15 Jan 2013 13:01:14 -0500 From: Raymond Zeitler Thread-Topic: 24.1; Macro Playback Fails When Buffer Scrolls Thread-Index: Ac3zSks5hQXmRIXnSwmxM2BGk7jvuA== Date: Tue, 15 Jan 2013 18:01:13 +0000 Message-ID: <3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930F@Exchange2010.PHONON.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.100.124] Content-Type: multipart/alternative; boundary="_000_3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930FExchange2010PHO_" MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-Mailman-Approved-At: Tue, 15 Jan 2013 13:38:03 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) --_000_3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930FExchange2010PHO_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable From: rzeitler@phonon.com To: bug-gnu-emacs@gnu.org Subject: 24.1; Macro Playback Fails When Buffer Scrolls --text follows this line-- This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': *************** Create a file with many more lines than the buffer can display at once. In my test, the buffer has about 500 identical lines like this: 123456789 0123456789 01234567890 Then place Point at line 1 column 1. I recorded the keyboard macro that you see in Recent Input, which merely moves point just past the first 9, then deletes it and puts an "x" in its place for the first three lines. Then it puts a "y" for the next three. Point is then moved to the start of the next line before the macro is finished recording. Play back the macro a few dozen times. As Point keeps moving down, the buffer will need to scroll. When it does scroll, Point will not return to the start of the next line. This happens also in version 23.4.1 on Win 7 and on 23.2.1 on Windows XP. I guess the workaround would be to conclude the macro with C-u 0 l. I'm amazed that I've been using Emacs (with macros) for 12.5 years and never noticed this before! *************** If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file c:/emacs-24.1/etc/DEBUG. In GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) of 2012-06-10 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Fundamental 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: C-x ( x x x y y y C-x ) C-x e e e e e M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Defining kbd macro... Keyboard macro defined (Type e to repeat macro) [5 times] 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 regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu view edmacro kmacro time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe 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 files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) Raymond Zeitler - Senior Design Engineer Phonon Corp 90 Wolcott Road, Simsbury CT 06070 TEL 860-651-0211 x7741 FAX 860-651-8618 rzeitler@phonon.com http://www.phonon.com --_000_3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930FExchange2010PHO_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

From: rzeitler@phonon.com

To: bug-gnu-emacs@gnu.org

Subject: 24.1; Macro Playback Fails When Buffer Scro= lls

--text follows this line--

This bug report will be sent to the Bug-GNU-Emacs ma= iling list

and the GNU bug tracker at debbugs.gnu.org.  Pl= ease check that

the From: line contains a valid email address. = After a delay of up

to one day, you should receive an acknowledgement at= that address.

 

Please write in English if possible, as the Emacs ma= intainers

usually do not have translators for other languages.=

 

Please describe exactly what actions triggered the b= ug, and

the precise symptoms of the bug.  If you can, g= ive a recipe

starting from `emacs -Q':

 

***************

Create a file with many more lines than the buffer c= an display at once.

In my test, the buffer has about 500 identical lines= like this:

 

123456789 0123456789 01234567890

 

Then place Point at line 1 column 1.

 

I recorded the keyboard macro that you see in Recent= Input, which merely

moves point just past the first 9, then deletes it a= nd puts an "x" in

its place for the first three lines.  Then it p= uts a "y" for the next

three.  Point is then moved to the start of the= next line before the

macro is finished recording.

 

Play back the macro a few dozen times.

 

As Point keeps moving down, the buffer will need to = scroll.  When it

does scroll, Point will not return to the start of t= he next line.

 

This happens also in version 23.4.1 on Win 7 and on = 23.2.1 on Windows XP.

 

I guess the workaround would be to conclude the macr= o with C-u 0 l.

 

I'm amazed that I've been using Emacs (with macros) = for 12.5 years and

never noticed this before!

 

***************

 

If Emacs crashed, and you have the Emacs process in = the gdb debugger,

please include the output from the following gdb com= mands:

    `bt full' and `xbacktrace'.<= /o:p>

For information about debugging Emacs, please read t= he file

c:/emacs-24.1/etc/DEBUG.

 

 

In GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601)

of 2012-06-10 on MARVIN

Windowing system distributor `Microsoft Corp.', vers= ion 6.1.7601

Configured using:

`configure --with-gcc (4.6) --cflags

-ID:/devel/emacs/libs/libXpm-3.5.8/include

-ID:/devel/emacs/libs/libXpm-3.5.8/src

-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include

-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include<= /o:p>

-ID:/devel/emacs/libs/giflib-4.1.4-1/include

-ID:/devel/emacs/libs/jpeg-6b-4/include

-ID:/devel/emacs/libs/tiff-3.8.2-1/include

-ID:/devel/emacs/libs/gnutls-3.0.9/include'

 

Important settings:

  value of $LC_ALL: nil

  value of $LC_COLLATE: nil

  value of $LC_CTYPE: nil

  value of $LC_MESSAGES: nil

  value of $LC_MONETARY: nil

  value of $LC_NUMERIC: nil

  value of $LC_TIME: nil

  value of $LANG: ENU

  value of $XMODIFIERS: nil

  locale-coding-system: cp1252

  default enable-multibyte-characters: t

 

Major mode: Fundamental

 

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:

C-x ( <C-right> <backspace> x <down&g= t; <backspace> x

<down> <backspace> x <kp-home> <= ;down> <C-right> <backspace>

y <down> <backspace> y <down> <= backspace> y <kp-home>

<down> C-x ) C-x e e e e e M-x r e p o <tab= > r t -

e m <tab> <return>

 

Recent messages:

For information about GNU Emacs and the GNU system, = type C-h C-a.

Defining kbd macro...

Keyboard macro defined

(Type e to repeat macro) [5 times]

Making completion list...

 

Load-path shadows:

None found.

 

Features:

(shadow sort gnus-util mail-extr emacsbug message fo= rmat-spec rfc822 mml

mml-sec mm-decode mm-bodies mm-encode mail-parse rfc= 2231 mailabbrev

gmm-utils mailheader sendmail regexp-opt rfc2047 rfc= 2045 ietf-drums

mm-util mail-prsvr mail-utils help-mode easymenu vie= w edmacro kmacro

time-date tooltip ediff-hook vc-hooks lisp-float-typ= e mwheel dos-w32

disp-table ls-lisp w32-win w32-vars tool-bar dnd fon= tset image fringe

lisp-mode register page menu-bar rfn-eshadow timer s= elect scroll-bar

mouse jit-lock font-lock syntax facemenu font-core f= rame cham georgian

utf-8-lang misc-lang vietnamese tibetan thai tai-vie= t lao korean

japanese hebrew greek romanian slovak czech european= ethiopic indian

cyrillic chinese case-table epa-hook jka-cmpr-hook h= elp simple abbrev

minibuffer loaddefs button faces cus-face files text= -properties overlay

sha1 md5 base64 format env code-pages mule custom wi= dget

hashtable-print-readable backquote make-network-proc= ess multi-tty emacs)

 

Raymond Zeitler - Senior Design Engineer<= /p>

Phonon Corp 90 Wolcott Road, Simsbury CT 06070<= /o:p>

TEL 860-651-0211 x7741

FAX 860-651-8618

rzeitler@phonon.com

http://www.phonon.com

 

--_000_3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930FExchange2010PHO_-- From unknown Sun Jun 22 04:01:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13452: 24.1; Macro Playback Fails When Buffer Scrolls Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Jan 2013 19:16:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Raymond Zeitler Cc: r.zeitler@ieee.org, 13452@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 13452-submit@debbugs.gnu.org id=B13452.135827734524848 (code B ref 13452); Tue, 15 Jan 2013 19:16:02 +0000 Received: (at 13452) by debbugs.gnu.org; 15 Jan 2013 19:15:45 +0000 Received: from localhost ([127.0.0.1]:33784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBz6-0006Sh-ND for submit@debbugs.gnu.org; Tue, 15 Jan 2013 14:15:45 -0500 Received: from mtaout20.012.net.il ([80.179.55.166]:36396) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBz3-0006SY-U2 for 13452@debbugs.gnu.org; Tue, 15 Jan 2013 14:15:43 -0500 Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MGO00400L8WNI00@a-mtaout20.012.net.il> for 13452@debbugs.gnu.org; Tue, 15 Jan 2013 21:15:04 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MGO004K3LH47GD0@a-mtaout20.012.net.il>; Tue, 15 Jan 2013 21:15:04 +0200 (IST) Date: Tue, 15 Jan 2013 21:15:38 +0200 From: Eli Zaretskii In-reply-to: <3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930F@Exchange2010.PHONON.com> X-012-Sender: halo1@inter.net.il Message-id: <83obgq8dgl.fsf@gnu.org> References: <3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930F@Exchange2010.PHONON.com> X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Raymond Zeitler > Date: Tue, 15 Jan 2013 18:01:13 +0000 > Cc: "r.zeitler@ieee.org" > > Create a file with many more lines than the buffer can display at once. > In my test, the buffer has about 500 identical lines like this: > > 123456789 0123456789 01234567890 > > Then place Point at line 1 column 1. > > I recorded the keyboard macro that you see in Recent Input, which merely > moves point just past the first 9, then deletes it and puts an "x" in > its place for the first three lines. Then it puts a "y" for the next > three. Point is then moved to the start of the next line before the > macro is finished recording. > > Play back the macro a few dozen times. > > As Point keeps moving down, the buffer will need to scroll. When it > does scroll, Point will not return to the start of the next line. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.5000] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 1.5 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: > From: Raymond Zeitler > Date: Tue, 15 Jan 2013 18:01:13 +0000 > Cc: "r.zeitler@ieee.org" > > Create a file with many more lines than the buffer can display at once. > In my test, the buffer has about 500 identical lines like this: > > 123456789 0123456789 01234567890 > > Then place Point at line 1 column 1. > > I recorded the keyboard macro that you see in Recent Input, which merely > moves point just past the first 9, then deletes it and puts an "x" in > its place for the first three lines. Then it puts a "y" for the next > three. Point is then moved to the start of the next line before the > macro is finished recording. > > Play back the macro a few dozen times. > > As Point keeps moving down, the buffer will need to scroll. When it > does scroll, Point will not return to the start of the next line. [...] Content analysis details: (1.5 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [80.179.55.166 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.8 BAYES_50 BODY: Bayes spam probability is 40 to 60% [score: 0.4998] > From: Raymond Zeitler > Date: Tue, 15 Jan 2013 18:01:13 +0000 > Cc: "r.zeitler@ieee.org" > > Create a file with many more lines than the buffer can display at once. > In my test, the buffer has about 500 identical lines like this: > > 123456789 0123456789 01234567890 > > Then place Point at line 1 column 1. > > I recorded the keyboard macro that you see in Recent Input, which merely > moves point just past the first 9, then deletes it and puts an "x" in > its place for the first three lines. Then it puts a "y" for the next > three. Point is then moved to the start of the next line before the > macro is finished recording. > > Play back the macro a few dozen times. > > As Point keeps moving down, the buffer will need to scroll. When it > does scroll, Point will not return to the start of the next line. Set line-move-visual to nil, and Bob's your uncle. > I'm amazed that I've been using Emacs (with macros) for 12.5 years and > never noticed this before! line-move-visual didn't exist before Emacs 23. So most of those 12.5 years, the bug didn't exist, because the only behavior available was the one you see when you set line-move-visual to a nil value. From unknown Sun Jun 22 04:01:09 2025 X-Loop: help-debbugs@gnu.org Subject: bug#13452: 24.1; Macro Playback Fails When Buffer Scrolls Resent-From: Raymond Zeitler Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 15 Jan 2013 20:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 13452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: "r.zeitler@ieee.org" , "13452@debbugs.gnu.org" <13452@debbugs.gnu.org> Received: via spool by 13452-submit@debbugs.gnu.org id=B13452.13582833461485 (code B ref 13452); Tue, 15 Jan 2013 20:56:02 +0000 Received: (at 13452) by debbugs.gnu.org; 15 Jan 2013 20:55:46 +0000 Received: from localhost ([127.0.0.1]:33864 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvDXt-0000Nt-MC for submit@debbugs.gnu.org; Tue, 15 Jan 2013 15:55:46 -0500 Received: from 63-144-137-67.dia.static.qwest.net ([63.144.137.67]:7845 helo=Exchange2010.PHONON.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvDXq-0000Nl-Ol for 13452@debbugs.gnu.org; Tue, 15 Jan 2013 15:55:44 -0500 Received: from EXCHANGE2010.PHONON.com ([::1]) by Exchange2010.PHONON.com ([::1]) with mapi id 14.01.0438.000; Tue, 15 Jan 2013 15:55:03 -0500 From: Raymond Zeitler Thread-Topic: bug#13452: 24.1; Macro Playback Fails When Buffer Scrolls Thread-Index: Ac3zSks5hQXmRIXnSwmxM2BGk7jvuAANFE8AAAcVGuA= Date: Tue, 15 Jan 2013 20:55:02 +0000 Message-ID: <3D3BECA95B858C4D9F42F2A6CDFC04DD37BE93D9@Exchange2010.PHONON.com> References: <3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930F@Exchange2010.PHONON.com> <83obgq8dgl.fsf@gnu.org> In-Reply-To: <83obgq8dgl.fsf@gnu.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.100.124] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Spam-Score: 0.8 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: 0.8 (/) Dear Eli: Thank you so much for your helpful and quick reply, and also for your invol= vement in the mailing lists, which has helped me many times before. Sorry about sending a bug report, especially using MS Outlook. Peace. - Ray -----Original Message----- From: Eli Zaretskii [mailto:eliz@gnu.org]=20 Sent: Tuesday, January 15, 2013 2:16 PM To: Raymond Zeitler Cc: 13452@debbugs.gnu.org; r.zeitler@ieee.org Subject: Re: bug#13452: 24.1; Macro Playback Fails When Buffer Scrolls > From: Raymond Zeitler > Date: Tue, 15 Jan 2013 18:01:13 +0000 > Cc: "r.zeitler@ieee.org" >=20 > Create a file with many more lines than the buffer can display at once. > In my test, the buffer has about 500 identical lines like this: >=20 > 123456789 0123456789 01234567890 >=20 > Then place Point at line 1 column 1. >=20 > I recorded the keyboard macro that you see in Recent Input, which merely > moves point just past the first 9, then deletes it and puts an "x" in > its place for the first three lines. Then it puts a "y" for the next > three. Point is then moved to the start of the next line before the > macro is finished recording. >=20 > Play back the macro a few dozen times. >=20 > As Point keeps moving down, the buffer will need to scroll. When it > does scroll, Point will not return to the start of the next line. Set line-move-visual to nil, and Bob's your uncle. > I'm amazed that I've been using Emacs (with macros) for 12.5 years and > never noticed this before! line-move-visual didn't exist before Emacs 23. So most of those 12.5 years, the bug didn't exist, because the only behavior available was the one you see when you set line-move-visual to a nil value. From debbugs-submit-bounces@debbugs.gnu.org Mon May 16 13:26:55 2016 Received: (at control) by debbugs.gnu.org; 16 May 2016 17:26:55 +0000 Received: from localhost ([127.0.0.1]:54106 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2MIB-0005UG-0k for submit@debbugs.gnu.org; Mon, 16 May 2016 13:26:55 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49485) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2MI9-0005U4-N3 for control@debbugs.gnu.org; Mon, 16 May 2016 13:26:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2MI0-00049p-JK for control@debbugs.gnu.org; Mon, 16 May 2016 13:26:48 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2MI0-00049G-G6 for control@debbugs.gnu.org; Mon, 16 May 2016 13:26:44 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2430 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b2MHx-0004Br-5T for control@debbugs.gnu.org; Mon, 16 May 2016 13:26:43 -0400 Date: Mon, 16 May 2016 20:26:33 +0300 Message-Id: <83y47952ye.fsf@gnu.org> From: Eli Zaretskii To: control@debbugs.gnu.org In-reply-to: <20160516163032.Horde.dzyiidpM-qxZXkDDoOkApwx@fermat.dima.unige.it> (abbott@dima.unige.it) Subject: Re: bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro References: <20160516163032.Horde.dzyiidpM-qxZXkDDoOkApwx@fermat.dima.unige.it> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) merge 13452 23551 thanks From debbugs-submit-bounces@debbugs.gnu.org Mon May 16 14:55:20 2016 Received: (at control) by debbugs.gnu.org; 16 May 2016 18:55:20 +0000 Received: from localhost ([127.0.0.1]:54345 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2Nfk-0006EY-Dq for submit@debbugs.gnu.org; Mon, 16 May 2016 14:55:20 -0400 Received: from eggs.gnu.org ([208.118.235.92]:46226) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2Nfj-0006E6-FM for control@debbugs.gnu.org; Mon, 16 May 2016 14:55:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2NfV-0004pI-FN for control@debbugs.gnu.org; Mon, 16 May 2016 14:55:14 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:36162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NfV-0004p4-Cl for control@debbugs.gnu.org; Mon, 16 May 2016 14:55:05 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2508 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b2NfO-0005HR-Rh for control@debbugs.gnu.org; Mon, 16 May 2016 14:55:03 -0400 Date: Mon, 16 May 2016 21:54:51 +0300 Message-Id: <83mvnp4yv8.fsf@gnu.org> From: Eli Zaretskii To: control@debbugs.gnu.org In-reply-to: (message from Markus Triska on Sun, 15 May 2016 14:10:59 +0200) Subject: Re: bug#23555: 24.5; Keyboard macros unexpectedly depend on frame size References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) merge 13452 23555 thanks From unknown Sun Jun 22 04:01:09 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Raymond Zeitler Subject: bug#13452: closed (Re: bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro) Message-ID: References: <83shx2xkdu.fsf@gnu.org> <3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930F@Exchange2010.PHONON.com> X-Gnu-PR-Message: they-closed 13452 X-Gnu-PR-Package: emacs Reply-To: 13452@debbugs.gnu.org Date: Sat, 28 May 2016 15:39:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1464449942-22928-1" This is a multi-part message in MIME format... ------------=_1464449942-22928-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13452: 24.1; Macro Playback Fails When Buffer Scrolls which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 13452@debbugs.gnu.org. --=20 13452: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13452 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1464449942-22928-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13452-done) by debbugs.gnu.org; 28 May 2016 15:38:53 +0000 Received: from localhost ([127.0.0.1]:44957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6gKD-0005xT-D4 for submit@debbugs.gnu.org; Sat, 28 May 2016 11:38:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6gKB-0005xG-QW for 13452-done@debbugs.gnu.org; Sat, 28 May 2016 11:38:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6gK3-0003bC-E2 for 13452-done@debbugs.gnu.org; Sat, 28 May 2016 11:38:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6gK3-0003b6-Av; Sat, 28 May 2016 11:38:43 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2303 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b6gK2-0004TS-4H; Sat, 28 May 2016 11:38:42 -0400 Date: Sat, 28 May 2016 18:38:53 +0300 Message-Id: <83shx2xkdu.fsf@gnu.org> From: Eli Zaretskii To: abbott@dima.unige.it, Markus Triska , Raymond Zeitler In-reply-to: <83wpmt52ru.fsf@gnu.org> (message from Eli Zaretskii on Mon, 16 May 2016 20:30:29 +0300) Subject: Re: bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro References: <20160516163032.Horde.dzyiidpM-qxZXkDDoOkApwx@fermat.dima.unige.it> <83wpmt52ru.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 13452-done Cc: 13452-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > Date: Mon, 16 May 2016 20:30:29 +0300 > From: Eli Zaretskii > Cc: 23551@debbugs.gnu.org > > > Date: Mon, 16 May 2016 16:30:32 +0000 > > From: abbott@dima.unige.it > > Cc: Abbott John > > > > Open the attached file in Emacs, and move point to the first position. > > Define a keyboard macro: (I want to put each line inside double-quotes) > > " ;; self-insert-command > > C-e ;; move-end-of-line > > " ;; self-insert-command > > C-a ;; message-beginning-of-line > > ;; next-line > > > > Now ask Emacs to repeat this macro 49 times. > > The result is wrong: at around line 35, the first double-quote > > is no longer at the start of the line; then on successive lines > > the position of the first inserted double-quote walks to the right. > > Thanks. > > This is a duplicate of the (old, but unsolved) bug #13452. The > problem is not in beginning-of-line, it's in next-line: when the > window needs to scroll as result of next-line, point ends up in > columns 1, 2, 3, ... (i.e. gains one column per line moved down), > instead of sticking to column zero. > > To work around, set line-move-visual to nil before running the macro > (or as part of the macro), then the problem goes away. > > I'll try to debug this one of these days. Should be fixed now, please test the latest Emacs master branch. ------------=_1464449942-22928-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Jan 2013 18:38:06 +0000 Received: from localhost ([127.0.0.1]:33744 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvBOf-0005ZK-Dj for submit@debbugs.gnu.org; Tue, 15 Jan 2013 13:38:06 -0500 Received: from eggs.gnu.org ([208.118.235.92]:44413) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TvB9T-0005BJ-3D for submit@debbugs.gnu.org; Tue, 15 Jan 2013 13:22:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvB8v-0001GK-Gs for submit@debbugs.gnu.org; Tue, 15 Jan 2013 13:21:52 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-99.4 required=5.0 tests=BAYES_00,HTML_MESSAGE, RECEIVED_FROM_WINDOWS_HOST, USER_IN_WHITELIST autolearn=no version=3.3.2 Received: from lists.gnu.org ([208.118.235.17]:33563) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvB8v-0001GF-Ca for submit@debbugs.gnu.org; Tue, 15 Jan 2013 13:21:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:55752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvB8t-000230-Q0 for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 13:21:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvB8r-0001FW-Nh for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 13:21:47 -0500 Received: from 63-144-137-67.dia.static.qwest.net ([63.144.137.67]:60586 helo=Exchange2010.PHONON.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvB8r-0001FQ-Fn for bug-gnu-emacs@gnu.org; Tue, 15 Jan 2013 13:21:45 -0500 Received: from EXCHANGE2010.PHONON.com ([::1]) by Exchange2010.PHONON.com ([::1]) with mapi id 14.01.0438.000; Tue, 15 Jan 2013 13:01:14 -0500 From: Raymond Zeitler To: "bug-gnu-emacs@gnu.org" Subject: 24.1; Macro Playback Fails When Buffer Scrolls Thread-Topic: 24.1; Macro Playback Fails When Buffer Scrolls Thread-Index: Ac3zSks5hQXmRIXnSwmxM2BGk7jvuA== Date: Tue, 15 Jan 2013 18:01:13 +0000 Message-ID: <3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930F@Exchange2010.PHONON.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [192.168.100.124] Content-Type: multipart/alternative; boundary="_000_3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930FExchange2010PHO_" MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Windows 7 or 8 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 208.118.235.17 X-Spam-Score: -6.2 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 15 Jan 2013 13:38:03 -0500 Cc: "r.zeitler@ieee.org" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.2 (------) --_000_3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930FExchange2010PHO_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable From: rzeitler@phonon.com To: bug-gnu-emacs@gnu.org Subject: 24.1; Macro Playback Fails When Buffer Scrolls --text follows this line-- This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': *************** Create a file with many more lines than the buffer can display at once. In my test, the buffer has about 500 identical lines like this: 123456789 0123456789 01234567890 Then place Point at line 1 column 1. I recorded the keyboard macro that you see in Recent Input, which merely moves point just past the first 9, then deletes it and puts an "x" in its place for the first three lines. Then it puts a "y" for the next three. Point is then moved to the start of the next line before the macro is finished recording. Play back the macro a few dozen times. As Point keeps moving down, the buffer will need to scroll. When it does scroll, Point will not return to the start of the next line. This happens also in version 23.4.1 on Win 7 and on 23.2.1 on Windows XP. I guess the workaround would be to conclude the macro with C-u 0 l. I'm amazed that I've been using Emacs (with macros) for 12.5 years and never noticed this before! *************** If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file c:/emacs-24.1/etc/DEBUG. In GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601) of 2012-06-10 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.6) --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Fundamental 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: C-x ( x x x y y y C-x ) C-x e e e e e M-x r e p o r t - e m Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Defining kbd macro... Keyboard macro defined (Type e to repeat macro) [5 times] 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 regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils help-mode easymenu view edmacro kmacro time-date tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe 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 files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) Raymond Zeitler - Senior Design Engineer Phonon Corp 90 Wolcott Road, Simsbury CT 06070 TEL 860-651-0211 x7741 FAX 860-651-8618 rzeitler@phonon.com http://www.phonon.com --_000_3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930FExchange2010PHO_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

From: rzeitler@phonon.com

To: bug-gnu-emacs@gnu.org

Subject: 24.1; Macro Playback Fails When Buffer Scro= lls

--text follows this line--

This bug report will be sent to the Bug-GNU-Emacs ma= iling list

and the GNU bug tracker at debbugs.gnu.org.  Pl= ease check that

the From: line contains a valid email address. = After a delay of up

to one day, you should receive an acknowledgement at= that address.

 

Please write in English if possible, as the Emacs ma= intainers

usually do not have translators for other languages.=

 

Please describe exactly what actions triggered the b= ug, and

the precise symptoms of the bug.  If you can, g= ive a recipe

starting from `emacs -Q':

 

***************

Create a file with many more lines than the buffer c= an display at once.

In my test, the buffer has about 500 identical lines= like this:

 

123456789 0123456789 01234567890

 

Then place Point at line 1 column 1.

 

I recorded the keyboard macro that you see in Recent= Input, which merely

moves point just past the first 9, then deletes it a= nd puts an "x" in

its place for the first three lines.  Then it p= uts a "y" for the next

three.  Point is then moved to the start of the= next line before the

macro is finished recording.

 

Play back the macro a few dozen times.

 

As Point keeps moving down, the buffer will need to = scroll.  When it

does scroll, Point will not return to the start of t= he next line.

 

This happens also in version 23.4.1 on Win 7 and on = 23.2.1 on Windows XP.

 

I guess the workaround would be to conclude the macr= o with C-u 0 l.

 

I'm amazed that I've been using Emacs (with macros) = for 12.5 years and

never noticed this before!

 

***************

 

If Emacs crashed, and you have the Emacs process in = the gdb debugger,

please include the output from the following gdb com= mands:

    `bt full' and `xbacktrace'.<= /o:p>

For information about debugging Emacs, please read t= he file

c:/emacs-24.1/etc/DEBUG.

 

 

In GNU Emacs 24.1.1 (i386-mingw-nt6.1.7601)

of 2012-06-10 on MARVIN

Windowing system distributor `Microsoft Corp.', vers= ion 6.1.7601

Configured using:

`configure --with-gcc (4.6) --cflags

-ID:/devel/emacs/libs/libXpm-3.5.8/include

-ID:/devel/emacs/libs/libXpm-3.5.8/src

-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include

-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include<= /o:p>

-ID:/devel/emacs/libs/giflib-4.1.4-1/include

-ID:/devel/emacs/libs/jpeg-6b-4/include

-ID:/devel/emacs/libs/tiff-3.8.2-1/include

-ID:/devel/emacs/libs/gnutls-3.0.9/include'

 

Important settings:

  value of $LC_ALL: nil

  value of $LC_COLLATE: nil

  value of $LC_CTYPE: nil

  value of $LC_MESSAGES: nil

  value of $LC_MONETARY: nil

  value of $LC_NUMERIC: nil

  value of $LC_TIME: nil

  value of $LANG: ENU

  value of $XMODIFIERS: nil

  locale-coding-system: cp1252

  default enable-multibyte-characters: t

 

Major mode: Fundamental

 

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:

C-x ( <C-right> <backspace> x <down&g= t; <backspace> x

<down> <backspace> x <kp-home> <= ;down> <C-right> <backspace>

y <down> <backspace> y <down> <= backspace> y <kp-home>

<down> C-x ) C-x e e e e e M-x r e p o <tab= > r t -

e m <tab> <return>

 

Recent messages:

For information about GNU Emacs and the GNU system, = type C-h C-a.

Defining kbd macro...

Keyboard macro defined

(Type e to repeat macro) [5 times]

Making completion list...

 

Load-path shadows:

None found.

 

Features:

(shadow sort gnus-util mail-extr emacsbug message fo= rmat-spec rfc822 mml

mml-sec mm-decode mm-bodies mm-encode mail-parse rfc= 2231 mailabbrev

gmm-utils mailheader sendmail regexp-opt rfc2047 rfc= 2045 ietf-drums

mm-util mail-prsvr mail-utils help-mode easymenu vie= w edmacro kmacro

time-date tooltip ediff-hook vc-hooks lisp-float-typ= e mwheel dos-w32

disp-table ls-lisp w32-win w32-vars tool-bar dnd fon= tset image fringe

lisp-mode register page menu-bar rfn-eshadow timer s= elect scroll-bar

mouse jit-lock font-lock syntax facemenu font-core f= rame cham georgian

utf-8-lang misc-lang vietnamese tibetan thai tai-vie= t lao korean

japanese hebrew greek romanian slovak czech european= ethiopic indian

cyrillic chinese case-table epa-hook jka-cmpr-hook h= elp simple abbrev

minibuffer loaddefs button faces cus-face files text= -properties overlay

sha1 md5 base64 format env code-pages mule custom wi= dget

hashtable-print-readable backquote make-network-proc= ess multi-tty emacs)

 

Raymond Zeitler - Senior Design Engineer<= /p>

Phonon Corp 90 Wolcott Road, Simsbury CT 06070<= /o:p>

TEL 860-651-0211 x7741

FAX 860-651-8618

rzeitler@phonon.com

http://www.phonon.com

 

--_000_3D3BECA95B858C4D9F42F2A6CDFC04DD37BE930FExchange2010PHO_-- ------------=_1464449942-22928-1-- From unknown Sun Jun 22 04:01:09 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: abbott@dima.unige.it Subject: bug#23551: closed (Re: bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro) Message-ID: References: <83shx2xkdu.fsf@gnu.org> <20160516163032.Horde.dzyiidpM-qxZXkDDoOkApwx@fermat.dima.unige.it> X-Gnu-PR-Message: they-closed 23551 X-Gnu-PR-Package: emacs Reply-To: 23551@debbugs.gnu.org Date: Sat, 28 May 2016 15:39:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1464449942-22928-3" This is a multi-part message in MIME format... ------------=_1464449942-22928-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13452: 24.5; beginning-of-line wrong in repeated kbd macro which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 23551@debbugs.gnu.org. --=20 13452: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13452 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1464449942-22928-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13452-done) by debbugs.gnu.org; 28 May 2016 15:38:53 +0000 Received: from localhost ([127.0.0.1]:44957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6gKD-0005xT-D4 for submit@debbugs.gnu.org; Sat, 28 May 2016 11:38:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6gKB-0005xG-QW for 13452-done@debbugs.gnu.org; Sat, 28 May 2016 11:38:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6gK3-0003bC-E2 for 13452-done@debbugs.gnu.org; Sat, 28 May 2016 11:38:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6gK3-0003b6-Av; Sat, 28 May 2016 11:38:43 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2303 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b6gK2-0004TS-4H; Sat, 28 May 2016 11:38:42 -0400 Date: Sat, 28 May 2016 18:38:53 +0300 Message-Id: <83shx2xkdu.fsf@gnu.org> From: Eli Zaretskii To: abbott@dima.unige.it, Markus Triska , Raymond Zeitler In-reply-to: <83wpmt52ru.fsf@gnu.org> (message from Eli Zaretskii on Mon, 16 May 2016 20:30:29 +0300) Subject: Re: bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro References: <20160516163032.Horde.dzyiidpM-qxZXkDDoOkApwx@fermat.dima.unige.it> <83wpmt52ru.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 13452-done Cc: 13452-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > Date: Mon, 16 May 2016 20:30:29 +0300 > From: Eli Zaretskii > Cc: 23551@debbugs.gnu.org > > > Date: Mon, 16 May 2016 16:30:32 +0000 > > From: abbott@dima.unige.it > > Cc: Abbott John > > > > Open the attached file in Emacs, and move point to the first position. > > Define a keyboard macro: (I want to put each line inside double-quotes) > > " ;; self-insert-command > > C-e ;; move-end-of-line > > " ;; self-insert-command > > C-a ;; message-beginning-of-line > > ;; next-line > > > > Now ask Emacs to repeat this macro 49 times. > > The result is wrong: at around line 35, the first double-quote > > is no longer at the start of the line; then on successive lines > > the position of the first inserted double-quote walks to the right. > > Thanks. > > This is a duplicate of the (old, but unsolved) bug #13452. The > problem is not in beginning-of-line, it's in next-line: when the > window needs to scroll as result of next-line, point ends up in > columns 1, 2, 3, ... (i.e. gains one column per line moved down), > instead of sticking to column zero. > > To work around, set line-move-visual to nil before running the macro > (or as part of the macro), then the problem goes away. > > I'll try to debug this one of these days. Should be fixed now, please test the latest Emacs master branch. ------------=_1464449942-22928-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 May 2016 16:32:59 +0000 Received: from localhost ([127.0.0.1]:54028 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2LRz-0002UI-4K for submit@debbugs.gnu.org; Mon, 16 May 2016 12:32:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:51240) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2LQ4-0002QT-6L for submit@debbugs.gnu.org; Mon, 16 May 2016 12:31:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2LPu-0002uc-Ie for submit@debbugs.gnu.org; Mon, 16 May 2016 12:30:54 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:49810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2LPu-0002uK-BO for submit@debbugs.gnu.org; Mon, 16 May 2016 12:30:50 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2LPo-0006sf-2K for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 12:30:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2LPi-0002rn-RF for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 12:30:42 -0400 Received: from pitagora.dima.unige.it ([130.251.60.4]:51870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2LPi-0002rP-Ek for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 12:30:38 -0400 Received: from localhost (localhost [127.0.0.1]) by pitagora.dima.unige.it (Postfix) with ESMTP id 10E317FCD4; Mon, 16 May 2016 16:30:34 +0000 (UTC) X-Virus-Scanned: amavisd-new at dima.unige.it Received: from pitagora.dima.unige.it ([127.0.0.1]) by localhost (pitagora.dima.unige.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fj8g8IHznMTf; Mon, 16 May 2016 18:30:32 +0200 (CEST) Received: from fermat.dima.unige.it (fermat.dima.unige.it [130.251.60.6]) by pitagora.dima.unige.it (Postfix) with ESMTPS id 520B67FCCA; Mon, 16 May 2016 18:30:32 +0200 (CEST) Received: from dyn-21-91.mdm.its.uni-kassel.de (dyn-21-91.mdm.its.uni-kassel.de [141.51.21.91]) by fermat.dima.unige.it (Horde Framework) with HTTP; Mon, 16 May 2016 16:30:32 +0000 Date: Mon, 16 May 2016 16:30:32 +0000 Message-ID: <20160516163032.Horde.dzyiidpM-qxZXkDDoOkApwx@fermat.dima.unige.it> From: abbott@dima.unige.it To: bug-gnu-emacs@gnu.org Subject: 24.5; beginning-of-line wrong in repeated kbd macro User-Agent: Horde Application Framework 5 Content-Type: multipart/mixed; boundary="=_acSrlbELZ31opHwNQbWIM15" MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Mon, 16 May 2016 12:32:57 -0400 Cc: Abbott John X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) This message is in MIME format. --=_acSrlbELZ31opHwNQbWIM15 Content-Type: text/plain; charset=utf-8; format=flowed; DelSp=Yes Content-Disposition: inline I would like to report the following bug. Open the attached file in Emacs, and move point to the first position. Define a keyboard macro: (I want to put each line inside double-quotes) " ;; self-insert-command C-e ;; move-end-of-line " ;; self-insert-command C-a ;; message-beginning-of-line ;; next-line Now ask Emacs to repeat this macro 49 times. The result is wrong: at around line 35, the first double-quote is no longer at the start of the line; then on successive lines the position of the first inserted double-quote walks to the right. ----------------------------------------------------------------- In GNU Emacs 24.5.1 (i686-apple-darwin, NS apple-appkit-1038.36) of 2015-04-10 on builder10-6.porkrind.org Windowing system distributor `Apple', version 10.3.1038 Configured using: `configure --with-ns '--enable-locallisppath=/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --host=i686-apple-darwin --build=i686-apple-darwin --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no' Important settings: locale-coding-system: utf-8-unix Major mode: Fundamental Minor modes in effect: recentf-mode: t show-paren-mode: t tooltip-mode: t electric-indent-mode: t mouse-wheel-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 messages: Cleaning up the recentf list... File /Users/abbott/ShortTerm/EMACS-BUG-orig removed from the recentf list Cleaning up the recentf list...done (1 removed) Loading /Users/abbott/Work/CoCoA/CoCoA4/4.7/UI/emacs/cocoa.emacs...done Loading /Users/abbott/Work/CoCoA/CoCoA5/CoCoALib-0.99/src/CoCoA-5/emacs/cocoa5.emacs...done Loading rmail-spam-filter.elc...done For information about GNU Emacs and the GNU system, type C-h C-a. Defining kbd macro... Keyboard macro defined (Type e to repeat macro) Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr warnings emacsbug sendmail cl-extra info magit-autoloads git-rebase-mode-autoloads git-commit-mode-autoloads package epg-config rmail-spam-filter rmailsum rmail recentf tree-widget wid-edit git-blame git derived log-edit easy-mmode message cl-macs format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mailabbrev mail-utils gmm-utils mailheader ring pcvs-util add-log ewoc cl gv paren cus-start cus-load edmacro kmacro cl-loaddefs cl-lib time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-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 nadvice 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 cocoa ns multi-tty emacs) Memory information: ((conses 8 143707 11759) (symbols 24 23822 0) (miscs 20 100 224) (strings 16 30397 6332) (string-bytes 1 745514) (vectors 8 14455) (vector-slots 4 436468 9860) (floats 8 71 198) (intervals 28 254 26) (buffers 512 14)) --=_acSrlbELZ31opHwNQbWIM15 Content-Type: text/plain; name=EMACS-BUG Content-Disposition: attachment; size=1700; filename=EMACS-BUG use P ::= QQ[c[0..99]]; f := c[0]*c[1]^7*c[27] -c[0]*c[1]^6*c[26] +6*c[0]*c[1]^5*c[4]*c[27]*c[57] +6*c[0]*c[1]^5*c[5]*c[27]*c[43] +6*c[0]*c[1]^5*c[13]*c[27]*c[85] +c[0]*c[1]^5*c[18]*c[27]*c[43] +c[0]*c[1]^5*c[25] +c[0]*c[1]^5*c[41]*c[43] -5*c[0]*c[1]^4*c[2]*c[27]*c[43] -5*c[0]*c[1]^4*c[4]*c[26]*c[57] +5*c[0]*c[1]^4*c[4]*c[27]*c[43]*c[61] +5*c[0]*c[1]^4*c[4]*c[27]*c[57]*c[60] +5*c[0]*c[1]^4*c[4]*c[27]*c[69]*c[85] -5*c[0]*c[1]^4*c[5]*c[26]*c[43] +5*c[0]*c[1]^4*c[5]*c[27]*c[43]*c[47] +5*c[0]*c[1]^4*c[5]*c[27]*c[46]*c[57] +5*c[0]*c[1]^4*c[5]*c[27]*c[55]*c[85] -5*c[0]*c[1]^4*c[12]*c[27]*c[85] -5*c[0]*c[1]^4*c[13]*c[26]*c[85] +5*c[0]*c[1]^4*c[13]*c[27]*c[43]*c[89] +5*c[0]*c[1]^4*c[13]*c[27]*c[57]*c[88] +5*c[0]*c[1]^4*c[13]*c[27]*c[85]*c[97] -c[0]*c[1]^4*c[18]*c[26]*c[43] +c[0]*c[1]^4*c[18]*c[27]*c[43]*c[47] +c[0]*c[1]^4*c[18]*c[27]*c[46]*c[57] +c[0]*c[1]^4*c[18]*c[27]*c[55]*c[85] -c[0]*c[1]^4*c[24] -c[0]*c[1]^4*c[40]*c[43] +c[0]*c[1]^4*c[41]*c[43]*c[47] +c[0]*c[1]^4*c[41]*c[46]*c[57] +c[0]*c[1]^4*c[41]*c[55]*c[85] +4*c[0]*c[1]^3*c[2]*c[26]*c[43] -4*c[0]*c[1]^3*c[2]*c[27]*c[43]*c[47] -4*c[0]*c[1]^3*c[2]*c[27]*c[46]*c[57] -4*c[0]*c[1]^3*c[2]*c[27]*c[55]*c[85] +10*c[0]*c[1]^3*c[4]^2*c[27]*c[57]^2 +20*c[0]*c[1]^3*c[4]*c[5]*c[27]*c[43]*c[57] +20*c[0]*c[1]^3*c[4]*c[13]*c[27]*c[57]*c[85] +4*c[0]*c[1]^3*c[4]*c[18]*c[27]*c[43]*c[57] +4*c[0]*c[1]^3*c[4]*c[25]*c[57] -4*c[0]*c[1]^3*c[4]*c[26]*c[43]*c[61] -4*c[0]*c[1]^3*c[4]*c[26]*c[57]*c[60] -4*c[0]*c[1]^3*c[4]*c[26]*c[69]*c[85] +4*c[0]*c[1]^3*c[4]*c[27]*c[43]*c[47]*c[61] -4*c[0]*c[1]^3*c[4]*c[27]*c[43]*c[58] +4*c[0]*c[1]^3*c[4]*c[27]*c[43]*c[60]*c[61] +4*c[0]*c[1]^3*c[4]*c[27]*c[43]*c[69]*c[89] +4*c[0]*c[1]^3*c[4]*c[27]*c[46]*c[57]*c[61] --=_acSrlbELZ31opHwNQbWIM15-- ------------=_1464449942-22928-3-- From unknown Sun Jun 22 04:01:09 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Markus Triska Subject: bug#23555: closed (Re: bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro) Message-ID: References: <83shx2xkdu.fsf@gnu.org> X-Gnu-PR-Message: they-closed 23555 X-Gnu-PR-Package: emacs Reply-To: 23555@debbugs.gnu.org Date: Sat, 28 May 2016 15:39:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1464449943-22928-5" This is a multi-part message in MIME format... ------------=_1464449943-22928-5 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #13452: 24.5; Keyboard macros unexpectedly depend on frame size which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 23555@debbugs.gnu.org. --=20 13452: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D13452 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1464449943-22928-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 13452-done) by debbugs.gnu.org; 28 May 2016 15:38:53 +0000 Received: from localhost ([127.0.0.1]:44957 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6gKD-0005xT-D4 for submit@debbugs.gnu.org; Sat, 28 May 2016 11:38:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:35163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b6gKB-0005xG-QW for 13452-done@debbugs.gnu.org; Sat, 28 May 2016 11:38:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6gK3-0003bC-E2 for 13452-done@debbugs.gnu.org; Sat, 28 May 2016 11:38:46 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:39872) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6gK3-0003b6-Av; Sat, 28 May 2016 11:38:43 -0400 Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2303 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1b6gK2-0004TS-4H; Sat, 28 May 2016 11:38:42 -0400 Date: Sat, 28 May 2016 18:38:53 +0300 Message-Id: <83shx2xkdu.fsf@gnu.org> From: Eli Zaretskii To: abbott@dima.unige.it, Markus Triska , Raymond Zeitler In-reply-to: <83wpmt52ru.fsf@gnu.org> (message from Eli Zaretskii on Mon, 16 May 2016 20:30:29 +0300) Subject: Re: bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro References: <20160516163032.Horde.dzyiidpM-qxZXkDDoOkApwx@fermat.dima.unige.it> <83wpmt52ru.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 13452-done Cc: 13452-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Eli Zaretskii Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -6.4 (------) > Date: Mon, 16 May 2016 20:30:29 +0300 > From: Eli Zaretskii > Cc: 23551@debbugs.gnu.org > > > Date: Mon, 16 May 2016 16:30:32 +0000 > > From: abbott@dima.unige.it > > Cc: Abbott John > > > > Open the attached file in Emacs, and move point to the first position. > > Define a keyboard macro: (I want to put each line inside double-quotes) > > " ;; self-insert-command > > C-e ;; move-end-of-line > > " ;; self-insert-command > > C-a ;; message-beginning-of-line > > ;; next-line > > > > Now ask Emacs to repeat this macro 49 times. > > The result is wrong: at around line 35, the first double-quote > > is no longer at the start of the line; then on successive lines > > the position of the first inserted double-quote walks to the right. > > Thanks. > > This is a duplicate of the (old, but unsolved) bug #13452. The > problem is not in beginning-of-line, it's in next-line: when the > window needs to scroll as result of next-line, point ends up in > columns 1, 2, 3, ... (i.e. gains one column per line moved down), > instead of sticking to column zero. > > To work around, set line-move-visual to nil before running the macro > (or as part of the macro), then the problem goes away. > > I'll try to debug this one of these days. Should be fixed now, please test the latest Emacs master branch. ------------=_1464449943-22928-5 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 May 2016 18:24:56 +0000 Received: from localhost ([127.0.0.1]:54241 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2NCK-0003X8-9c for submit@debbugs.gnu.org; Mon, 16 May 2016 14:24:56 -0400 Received: from eggs.gnu.org ([208.118.235.92]:55182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2NCI-0003Wq-Oe for submit@debbugs.gnu.org; Mon, 16 May 2016 14:24:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2NCC-0002CQ-FT for submit@debbugs.gnu.org; Mon, 16 May 2016 14:24:49 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:53567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NCC-0002B0-Cd for submit@debbugs.gnu.org; Mon, 16 May 2016 14:24:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NCA-0002EZ-3B for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:24:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2NC6-00028V-Gq for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:24:45 -0400 Received: from metalevel.at ([78.46.218.83]:47533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2NC6-000284-9t for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 14:24:42 -0400 Received: from mt-mbpro.localdomain (localhost.localdomain [127.0.0.1]) by metalevel.at (Postfix) with ESMTP id 99A9FA006E for ; Sun, 15 May 2016 14:10:59 +0200 (CEST) Received: by mt-mbpro.localdomain (Postfix, from userid 501) id 9B56B5153A9; Sun, 15 May 2016 14:10:59 +0200 (CEST) From: Markus Triska To: bug-gnu-emacs@gnu.org Subject: 24.5; Keyboard macros unexpectedly depend on frame size Date: Sun, 15 May 2016 14:10:59 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) To reproduce this issue, please first fetch rep.txt from: https://www.metalevel.at/ei/rep.txt and then invoke Emacs as follows: $ emacs -Q -g 80x30 rep.txt The issue depends critically on the frame size. I can reproduce the issue if the last line that I still see in the buffer (when point is at the beginning of the buffer) is the line containing "false." in the definition of declarative_false/0, i.e., line 28 in the file. We now define a keyboard macro that is supposed to remove the 8 spaces that indent all code snippets that appear within the 4
 blocks.

With point at the beginning of the buffer, please press C-x ( to start
recording, and then press the following keys:

     C-s 
 block is unexpectedly
changed to:

    





                ).
    
whereas the expected result it:
mi2_safe(g(G)) :-
        (   safe_goal(G) ->
            mi_clause(G, Body),
            mi2_safe(Body)
        ;   throw(cannot_execute(G))
        ).
    
However, if I revert all changes and simply enlarge the frame, or try the exact same sequence after removing the filler text between lines 33 and 52, or try the macro on the fourth snippet while the
 block is
completely in view, everything works exactly as expected.

Thus, implicit scrolling and the frame size may unexpectedly interact
with this keyboard macro.


In GNU Emacs 24.5.1 (x86_64-apple-darwin14.0.0, GTK+ Version 2.24.28)
 of 2015-09-20 on mt-mbpro
Windowing system distributor `The X.Org Foundation', version 11.0.11502000
Configured using:
 `configure --prefix=/opt/local --without-dbus --without-libotf
 --without-m17n-flt --without-gpm --without-gnutls --with-xml2 --infodir
 /opt/local/share/info/emacs --without-xaw3d --without-imagemagick
 --with-xpm --with-jpeg --with-tiff --with-gif --with-png --with-xft
 --with-x-toolkit=gtk2 --with-gconf --with-rsvg 'CFLAGS=-pipe -Os -arch
 x86_64' CPPFLAGS=-I/opt/local/include 'LDFLAGS=-L/opt/local/lib
 -Wl,-headerpad_max_install_names -lfreetype -lfontconfig -Wl,-no_pie
 -arch x86_64''

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix




------------=_1464449943-22928-5--


From debbugs-submit-bounces@debbugs.gnu.org Fri Jul 08 23:47:21 2016
Received: (at control) by debbugs.gnu.org; 9 Jul 2016 03:47:21 +0000
Received: from localhost ([127.0.0.1]:43166 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from )
	id 1bLjEe-0005j4-Qq
	for submit@debbugs.gnu.org; Fri, 08 Jul 2016 23:47:20 -0400
Received: from mail-it0-f49.google.com ([209.85.214.49]:37433)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from ) id 1bLjEc-0005im-Cr
 for control@debbugs.gnu.org; Fri, 08 Jul 2016 23:47:18 -0400
Received: by mail-it0-f49.google.com with SMTP id f6so18362687ith.0
 for ; Fri, 08 Jul 2016 20:47:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=sender:from:to:subject:references:date:in-reply-to:message-id
 :user-agent:mime-version;
 bh=zGH2mFrOKMQNFCqc5kMYA084HL0ESnDyTal7CddnltY=;
 b=OcDTkLqJdAqb/cRMlZq+lL8/GAp7qvjc/zJe7otuifGpO9VzLZhR1rIQUDytG8LLRA
 a5X+50CNoM6xvHe5LJ2zN4Q32j/YFLExS5KbO07lKFRPr/9JkDpayZBZ2gB+YsaIhyL0
 ACFQCNlCvCV5RcZ189O31K92CR0GoHW5Dbe2lOKi62yEU5c4zfAFEXI22ZSZLCc9QSZq
 /Ww1x6fVvR/b426aty9oipCPP02kn6nP/Y976W1hWjx2yXbySs92cJEgSmSgi2hZlEat
 o85+3raevp2xWe8MQ76kwTd5IFT5dG0Hv4sGHKRpVSsenAaowRVABYYXdoZY0DtaQwL8
 R+CQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:sender:from:to:subject:references:date
 :in-reply-to:message-id:user-agent:mime-version;
 bh=zGH2mFrOKMQNFCqc5kMYA084HL0ESnDyTal7CddnltY=;
 b=LliiujUBkldi4ro1zv4zRi2FuPTg5FAXn6H+rOK8BYsjs0VDchCNf77f/CKOER7PHI
 P2OzHBNc02ahs8swbNC68mvQMch3oVc5oLugeAaH1hVOe5RQxOYGwB428lKCvQgTg09t
 02+2Phh+pxLizhsAqBBef3jA9Y07dND4haBOGfWOKVkiwvQMCc77EPY7qGRQjL0DaeIv
 VtUc246W5T3tLEK66DKSwenNfQxN5DfmOaeRQC1d8hzTFlQaRkaFzOJ0ObSRjOE0ySi7
 QjoJhp3BlWiHl3ie4aMWcvuBdY3Uorigr8Bgxr+BrfVON2mjXlEi2VnPxCVXTlBkT9c8
 n8hg==
X-Gm-Message-State: ALyK8tJpoIeTpzWU3wpSkWUmallqFUmEVdx64oOC2Jj0XML6yHLOcJVyG26/7yh76WoxKQ==
X-Received: by 10.36.14.130 with SMTP id 124mr5882498ite.62.1468036032864;
 Fri, 08 Jul 2016 20:47:12 -0700 (PDT)
Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44])
 by smtp.googlemail.com with ESMTPSA id k101sm6002812ioi.9.2016.07.08.20.47.12
 for 
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 08 Jul 2016 20:47:12 -0700 (PDT)
From: npostavs@users.sourceforge.net
To: control@debbugs.gnu.org
Subject: Re: bug#8809: 23.3; Macro problem
References: 
Date: Fri, 08 Jul 2016 23:47:11 -0400
In-Reply-To: 
 (Suresh Aryangat's message of "Mon, 6 Jun 2011 11:52:38 -0400")
Message-ID: <87poqniibk.fsf@users.sourceforge.net>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: control
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: 
List-Unsubscribe: , 
 
List-Archive: 
List-Post: 
List-Help: 
List-Subscribe: , 
 
Errors-To: debbugs-submit-bounces@debbugs.gnu.org
Sender: "Debbugs-submit" 
X-Spam-Score: -0.7 (/)

unarchive 13452
forcemerge 13452 8809
quit