Emacs de-iconify doesn't work as in other WMs

Reiner Steib <[email protected]>
Newsgroups gmane.comp.window-managers.fluxbox.user
Organization Dept. of Theoretical Physics, University of Ulm
Message-ID <[email protected]>
Hi,

Emacs, with this configuration[1] displays the *Completions* buffer
(e.g. list of all in current directory when opening a file) in a
dedicated window ("frame" in Emacs' terminology).  After choosing a
file with the mouse, the window is iconified.  The next time the
*Completions* buffer is needed, the window should be de-iconified
automatically.  This works fine for other window managers (I have
tried: twm, fvwm1 and blackbox), but not for fluxbox[2].

An interactive and a non-interactive recipe to reproduce the problem
follows:

Interactive recipe:

- Save the content[1] in a file /tmp/de-icon.el

- Start Emacs loading this file:
  $ emacs -q -no-site-file -l /tmp/de-icon.el

- Open a file (use TAB expansion to show all possibilities):
  Ctrl-x Ctrl-f TAB TAB

  A new window titled "*Completions*" pops up.

- Pick a file (say ~/.profile) with the mouse (middle mouse button).
  The *Completions* window is iconified now.  The filename now is in
  the "mini buffer" (bottom line in the Emacs window).  Hit RET to
  confirm opening the file.

- Try to open another file:
  Ctrl-x Ctrl-f TAB TAB

  After the last TAB, the *Completions* window should be raised, but
  with fluxbox nothing happens.

Here is the non-interactive recipe to demonstrate the bug.  Save this
to /tmp/de-icon-2.el and start emacs like this:

$ emacs -q -no-site-file -l /tmp/de-icon-2.el

--8<---------------cut here---------------start------------->8---
(switch-to-buffer "*Messages*")
(setq sit 3)
(defun sleep (seconds)
  (sit-for seconds)
  (sleep-for seconds))
(sleep sit)
(message "Creating frame FLUXBOX-DEBUG...")
(setq f (make-frame '((name . "FLUXBOX-DEBUG") (height . 10))))
(message "Creating frame FLUXBOX-DEBUG...done")
(sleep sit)
(message "Iconifying frame FLUXBOX-DEBUG...")
(iconify-frame f)
(message "Iconifying frame FLUXBOX-DEBUG...done")
(sleep sit)
(message "Trying to make frame FLUXBOX-DEBUG visible...")
(make-frame-visible f)
(message "Trying to make frame FLUXBOX-DEBUG visible...done")
(sleep sit)
(message "If FLUXBOX-DEBUG frame is not visible (still iconified), there's a bug.")
--8<---------------cut here---------------end--------------->8---

With blackbox (and other WMs), the FLUXBOX-DEBUG is raise, but not
with fluxbox.

Bye, Reiner.

[1]
--8<---------------cut here---------------start------------->8---
(setq same-window-buffer-names
      (remove "*Completions*" same-window-buffer-names))
(add-to-list 'special-display-buffer-names
	     '("*Completions*" ((height . 20))))
--8<---------------cut here---------------end--------------->8---

[2]
$ fluxbox -v
Fluxbox 0.9.14 : (c) 2001-2005 Henrik Kinnunen 
$ fluxbox -info
Fluxbox version: 0.9.14
Compiled: Sep 28 2005 12:21:51
Compiler: GCC
Compiler version: 3.3.4 (pre 3.3.5 20040809)

Defaults:
    menu: /usr/local/share/fluxbox/menu
   style: /usr/local/share/fluxbox/styles/Clean
    keys: /usr/local/share/fluxbox/keys
    init: /usr/local/share/fluxbox/init

Compiled options (- => disabled): 
-DEBUG
SLIT
TOOLBAR
XPM
-IMLIB2
GNOME
KDE
EWMH
REMEMBER
SHAPE
XFT
XMB
-XINERAMA
RENDER
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.