From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: abbott@dima.unige.it Newsgroups: gmane.emacs.bugs Subject: bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro Date: Mon, 16 May 2016 16:30:32 +0000 Message-ID: <20160516163032.Horde.dzyiidpM-qxZXkDDoOkApwx@fermat.dima.unige.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=_acSrlbELZ31opHwNQbWIM15" X-Trace: ger.gmane.org 1463416416 21193 80.91.229.3 (16 May 2016 16:33:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 16 May 2016 16:33:36 +0000 (UTC) Cc: Abbott John To: 23551@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon May 16 18:33:22 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 1b2LSC-0007Iy-H4 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 May 2016 18:33:12 +0200 Original-Received: from localhost ([::1]:44879 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2LSB-0000uM-J2 for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 May 2016 12:33:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2LS6-0000qZ-LB for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 12:33:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2LS2-0003Qh-6L for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 12:33:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:41691) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2LS2-0003Qd-3m for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 12:33:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b2LS1-0002Ud-TQ for bug-gnu-emacs@gnu.org; Mon, 16 May 2016 12:33:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: abbott@dima.unige.it Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 May 2016 16:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23551 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.14634163799571 (code B ref -1); Mon, 16 May 2016 16:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 May 2016 16:32:59 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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) Original-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 User-Agent: Horde Application Framework 5 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-Mailman-Approved-At: Mon, 16 May 2016 12:32:57 -0400 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:118290 Archived-At: 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--