unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro
@ 2016-05-16 16:30 abbott
  2016-05-16 17:30 ` Eli Zaretskii
  0 siblings, 1 reply; 5+ messages in thread
From: abbott @ 2016-05-16 16:30 UTC (permalink / raw)
  To: 23551; +Cc: Abbott John

[-- Attachment #1: Type: text/plain, Size: 3661 bytes --]

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
<down>			;; 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))


[-- Attachment #2: EMACS-BUG --]
[-- Type: text/plain, Size: 1700 bytes --]

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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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]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-28 15:38 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-16 16:30 bug#23551: 24.5; beginning-of-line wrong in repeated kbd macro abbott
2016-05-16 17:30 ` Eli Zaretskii
2016-05-16 19:36   ` abbott
2016-05-16 19:42     ` Eli Zaretskii
2016-05-28 15:38   ` bug#13452: " Eli Zaretskii

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).