Subject: bug#3387: 23.0.94; Keyboard macros destroyed by editing

From: "Rommerskirchen, Heinrich (NSN - DE/Munich)" <[email-masked]>
Date: Tue, 26 May 2009 10:07:29 +0200

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 [email-masked] mailing
list.

Please describe exactly what actions triggered the bug
and the precise symptoms of the bug:

Slightly complicated macros are lost if you try to edit them. To trigger
this
bug:

Start Emacs: 'emacs -Q'
Start macro recording 'C-x ('
Type: "This is<return>abc<up><end-of-line> a Test<down><return>"
End macro recording: 'C-x )'
You may check that the macro was recorded correctly (not necessary to
trigger the bug) 'F4'
Edit the macro 'C-x C-k C-e'
Change the 'is' to 'was'
Finish the editing 'C-c C-c'
'F4' or 'C-x C-k C-e' shows that the macro has lost most of its content,
it only contains 
  "<up><down>RET"
If you omit the unnecessary cursor movements from the macro above, it
doesn't show this error

   Regards
      Heinz

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'.
If you would like to further debug the crash, please read the file
d:/bin/emacs/etc/DEBUG for instructions.

In GNU Emacs 23.0.94.1 (i386-mingw-nt5.1.2600)
 of 2009-05-24 on SOFT-MJASON
Windowing system distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4)'

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: DEU
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  tool-bar-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
  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:
C-x ( T h i s SPC i s <return> a b s <up> C-e SPC a 
SPC t e s t <down> <return> C-x ) C-x C-k C-e <down> 
<down> C-k w a s C-c C-c <f4> <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:
For information about GNU Emacs and the GNU system, type C-h C-a.
Defining kbd macro...
Keyboard macro defined
Formatting keyboard macro...done
Compiling keyboard macro...done