Subject: 24.1.50; 24.1.50; Completion broken in revno 109116

From: chad <[email-masked]>
Date: Mon, 13 Aug 2012 11:23:33 -0700

1. Run `emacs -Q'.
2. Type: `C-x 1' (make sure there is only one window)
3. Type: `C-x C-f /tm TAB'
4. Emacs creates a new window for the completions, but puts the cursor
   in the wrong window (it's back in the original window, not
   *Completions* or the minibuffer.

If the windows are already split for any reason, this bug isn't triggered.

In GNU Emacs 24.1.50.1 (x86_64-apple-darwin12.0.0, NS apple-appkit-1187.00)
 of 2012-08-13 on protip.local
Bzr revision: 109116 [email-masked]
Windowing system distributor `Apple', version 10.3.1187
Configured using:
 `configure '--with-ns''

Important settings:
  value of $LC_ALL: en_US.UTF-8
  value of $LC_COLLATE: C
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix
  default enable-multibyte-characters: t

Major mode: Text

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
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
, SPC n o t SPC t h e SPC c o m p l e t e <backspace> 
<escape> <backspace> <escape> <backspace> ( <backspace> 
* s <backspace> c o <backspace> <backspace> C o m p 
l e t e <backspace> i o n s * SPC o r SPC t h e SPC 
m i n i b u f f e r . C-x C-f M-x M-q <up> C-a SPC 
SPC SPC M-q <down> C-e <return> <return> <up> <up> 
<up> <up> <up> C-k <down> <down> <down> <return> I 
f SPC y o u SPC s p l i t SPC t h e SPC w i n d o w 
C-a C-k I f SPC t h e SPC w i n d o w s SPC a r e SPC 
a l r e a d y SPC s p l i t SPC f o r SPC a n y SPC 
r e a s o n , SPC t h i s SPC b u g SPC i s n ' t SPC 
t r i g g e r e d . <down> <down> C-k C-k C-x u C-k 
C-k C-k <wheel-down> <double-wheel-down> <triple-wheel-down> 
<triple-wheel-down> <triple-wheel-down> <wheel-up> 
<double-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up> 
<triple-wheel-up> <triple-wheel-up> <triple-wheel-up> 
C-x C-w <escape> <backspace> <escape> <backspace> c 
o m p l e t e i <backspace> <backspace> i o n - b u 
g . e <backspace> t x t <return> <down-mouse-1> <mouse-1> 
<down-mouse-1> <mouse-1> <down-mouse-1> <mouse-1> <down-mouse-1> 
<drag-mouse-1> <down> <down> <up> C-SPC <down> <down> 
<down> <down> <down> <down> <down> <down> <escape> 
w M-x r e p o SPC r <backspace> C-x o C-x o r SPC C-x 
o e SPC SPC <return>

Recent messages:
completing-read-default: Command attempted to use minibuffer while in minibuffer
Quit
Undo!
byte-code: Beginning of buffer [20 times]
Auto-saving...
Saving file /Users/yandros/Project/emacs/completion-bug.txt...
Wrote /Users/yandros/Project/emacs/completion-bug.txt
Loading vc-git...done
Mark set [2 times]
Making completion list...

Load-path shadows:
None found.

Features:
(vc-git shadow sort gnus-util mail-extr emacsbug message format-spec
rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils help-mode easymenu time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd fontset
image regexp-opt fringe tabulated-list newcomment lisp-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 loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process ns multi-tty emacs)