bug#6711: 23.1.90; strange delete after search when repeating kbd-macro
From:
Miguel V. S. Frasson
Subject:
bug#6711: 23.1.90; strange delete after search when repeating kbd-macro
Date:
Thu, 22 Jul 2010 18:07:17 -0300
This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them.
Your bug report will be posted to the emacs-pretest-bug@gnu.org mailing list, and to the gnu.emacs.bug news group.
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':
====== reproducting the bug ======= 1) emacs -Q
2) type the following text (abcd in three lines), abcd
abcd abcd
3) put the point before the first "a"
4) record a kbd-macro that searches "b" and type delete (NOT C-d), that is, type
C-x ( C-s b del C-x )
5) when recording the kbd-macro, the first line becomes "abd" (c gets deleted)
6) repeat the kbd-macro twice. The text becomes abd ab ab
(that is, 2 chars are deleted!!)
7) type M-x edit-last-kbd-macro RET and see the strange 2* in the output:
;; Keyboard Macro Editor. Press C-c C-c to finish; press C-x k RET to cancel.
;; Original keys: C-s b 2*C-d
Command: last-kbd-macro Key: none
Macro:
C-s ;; isearch-forward b ;; self-insert-command 2*C-d ;; delete-char
8) note: I typed del and NOT C-d. Using C-d instead, the bug does not happen.
=========================
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
/usr/local/share/emacs/23.1.90/etc/DEBUG.
In GNU Emacs 23.1.90.1 (i686-pc-linux-gnu, GTK+ Version 2.20.1) of 2010-05-27 on edf Windowing system distributor `The X.Org Foundation', version 11.0.10706000
configured using `configure '--with-x-toolkit=gtk''
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: en_NZ.utf8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t
Major mode: Lisp Interaction
Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t
global-auto-composition-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t
Recent input: a a a ( b c d <return> <return> <up> <up> C-k C-k C-k
C-y C-y C-y C-y <up> <up> <up> <up> <up> <up> <up> <up> <up> C-x ( C-s ( <delete> C-x ) C-x e e e <right> <return> <return> a a a b <backspace> <backspace> <backspace>
<backspace> C-y C-y C-y C-y <up> <up> <up> <up> <up> <up> <up> <up> C-x ( C-s b <delete> C-x ) C-x e e e <return> <return> C-y C-y C-y C-y <up> <up> <up> <up>
<up> <up> <up> <up> <up> C-x ( C-s a a <delete> C-x ) C-x e e e <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <help-echo> <menu-bar>
<help-menu> <send-emacs-bug-report>
Recent messages: Mark set [4 times] Defining kbd macro... Mark saved where search started Keyboard macro defined (Type e to repeat macro) [3 times]
Mark set [4 times] Defining kbd macro... Mark saved where search started Keyboard macro defined (Type e to repeat macro) [3 times]