From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#13452: bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro Date: Sat, 28 May 2016 18:38:53 +0300 Message-ID: <83shx2xkdu.fsf@gnu.org> References: <20160516163032.Horde.dzyiidpM-qxZXkDDoOkApwx@fermat.dima.unige.it> <83wpmt52ru.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1464449967 5485 80.91.229.3 (28 May 2016 15:39:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 May 2016 15:39:27 +0000 (UTC) Cc: 13452-done@debbugs.gnu.org To: abbott@dima.unige.it, Markus Triska , Raymond Zeitler Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 28 17:39:16 2016 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 1b6gKZ-0000nf-Qj for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 May 2016 17:39:15 +0200 Original-Received: from localhost ([::1]:53524 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6gKZ-0000HY-2P for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 May 2016 11:39:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54829) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6gKS-0000GU-E0 for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 11:39:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6gKM-0003hn-Oz for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 11:39:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60854) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6gKM-0003he-MD for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 11:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b6gKM-0005xv-Hi for bug-gnu-emacs@gnu.org; Sat, 28 May 2016 11:39:02 -0400 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 May 2016 15:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 13452 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 13452@debbugs.gnu.org, eliz@gnu.org, rzeitler@phonon.com Original-Received: via spool by 13452-done@debbugs.gnu.org id=D13452.146444993322911 (code D ref 13452); Sat, 28 May 2016 15:39:02 +0000 Original-Received: (at 13452-done) by debbugs.gnu.org; 28 May 2016 15:38:53 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 In-reply-to: <83wpmt52ru.fsf@gnu.org> (message from Eli Zaretskii on Mon, 16 May 2016 20:30:29 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:118811 Archived-At: > 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.