Subject: Ediff frame loses focus under certain circumstance

From: yary <[email-masked]>
Date: Sun, 3 Jun 2012 19:23:17 -0400

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:

This is with Windows Emacs 24.1 pretest build 1
Start emacs -Q
Open two files (small and similar will do)
open Tools menu->Compare(Ediff)->Two Buffers...
Hit enter twice to get the two suggested buffers
Hit ? to expand the Ediff control panel commands
Hit n to get to next (first) diff
Hit b to copy diff from B to A
Hit n - and Ediff frame loses focus, goes to B instead

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
c:/Program Files/Emacs/etc/DEBUG for instructions.

In GNU Emacs 22.0.91.1 (i386-mingw-nt5.1.2600)
 of 2006-12-03 on W2ONE
X server distributor `Microsoft Corp.', version 5.1.2600
configured using `configure --with-gcc (3.4) --cflags -Id:/g/include'

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: ENU
  locale-coding-system: cp1252
  default-enable-multibyte-characters: t

Major mode: XHTML

Minor modes in effect:
  encoded-kbd-mode: t
  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
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  auto-compression-mode: t
  line-number-mode: t

Recent input:
<help-echo> <help-echo> <help-echo> <help-echo> <drag-n-drop>
<help-echo> <help-echo> <help-echo> <help-echo> <help-echo>
<help-echo> <help-echo> <menu-bar> <tools> <compare>
<ediff-buffers> <return> <return> ? n b n <switch-frame>
M-x r e p o <tab> r t - e m <tab> <return>

Recent messages:
Buffer B: Processing difference region 0 of 17
Buffer B: Processing difference region 10 of 17
Processing difference regions ... done
Refining difference region 1 ...
Saving old diff region #1 of buffer A.  To recover, type `ra' [2 times]
Only white-space differences in region 1
Refining difference region 2 ...
Making completion list...
Loading help-mode...done
Loading emacsbug...done