unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Dedicated *Completions* frame iconified but not de-iconified
@ 2005-10-14 15:07 Reiner Steib
  2005-10-14 15:30 ` Drew Adams
  2005-10-15 16:13 ` Richard M. Stallman
  0 siblings, 2 replies; 7+ messages in thread
From: Reiner Steib @ 2005-10-14 15:07 UTC (permalink / raw)


Hi,

I recently started to show the *Completions* buffer in a dedicated
frame:

(setq same-window-buffer-names
      (remove "*Completions*" same-window-buffer-names))
(add-to-list 'special-display-buffer-names
	     '("*Completions*" ((height . 20))))

After clicking on an alternative with the mouse iconifies the
completions frame[1].  But the next time a completions buffer is
generated, the completions frame is not de-iconified.  I think the
frame should be made visible.

I tried to put `make-frame-visible' in `completion-setup-hook' without
success and I didn't find the right place in `simple.el'.  Can anyone
point me to the right direction?

Bye, Reiner.

[1] See `mouse-choose-completion'.

-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* RE: Dedicated *Completions* frame iconified but not de-iconified
  2005-10-14 15:07 Dedicated *Completions* frame iconified but not de-iconified Reiner Steib
@ 2005-10-14 15:30 ` Drew Adams
  2005-10-14 21:01   ` Stefan Monnier
  2005-10-15 16:13 ` Richard M. Stallman
  1 sibling, 1 reply; 7+ messages in thread
From: Drew Adams @ 2005-10-14 15:30 UTC (permalink / raw)


    I recently started to show the *Completions* buffer in a dedicated
    frame:

    (setq same-window-buffer-names
          (remove "*Completions*" same-window-buffer-names))
    (add-to-list 'special-display-buffer-names
    	     '("*Completions*" ((height . 20))))

    After clicking on an alternative with the mouse iconifies the
    completions frame[1].  But the next time a completions buffer is
    generated, the completions frame is not de-iconified.  I think the
    frame should be made visible.

    I tried to put `make-frame-visible' in `completion-setup-hook' without
    success and I didn't find the right place in `simple.el'.  Can anyone
    point me to the right direction?

I don't claim this is the way to go for everyone, but you might want to look
at how I deal with this in my library `oneonone.el'. I've long had a
dedicated *Completions* frame, and there are a few twists and turns you
might want to keep in mind. Anyway, in case it helps:

Library: http://www.emacswiki.org/cgi-bin/emacs/oneonone.el.
Explanation:
http://www.emacswiki.org/cgi-bin/wiki/Help_and_Completions_Frames.

See, in particular, function 1on1-display-*Completions*-frame - it should
help with your problem.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Dedicated *Completions* frame iconified but not de-iconified
  2005-10-14 15:30 ` Drew Adams
@ 2005-10-14 21:01   ` Stefan Monnier
  2005-10-15 12:27     ` Reiner Steib
  0 siblings, 1 reply; 7+ messages in thread
From: Stefan Monnier @ 2005-10-14 21:01 UTC (permalink / raw)
  Cc: Reiner Steib, emacs-devel

>     After clicking on an alternative with the mouse iconifies the
>     completions frame[1].  But the next time a completions buffer is
>     generated, the completions frame is not de-iconified.  I think the
>     frame should be made visible.

Hmm... odd.  I've used a dedicated frame "for ever" and it pops right back
up for me.  And I can't seem to find any place in my .emacs where
I workaround such a problem either.


        Stefan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Dedicated *Completions* frame iconified but not de-iconified
  2005-10-14 21:01   ` Stefan Monnier
@ 2005-10-15 12:27     ` Reiner Steib
  2005-10-15 14:21       ` Reiner Steib
  2005-10-16 14:40       ` Richard M. Stallman
  0 siblings, 2 replies; 7+ messages in thread
From: Reiner Steib @ 2005-10-15 12:27 UTC (permalink / raw)
  Cc: Drew Adams, emacs-devel

On Fri, Oct 14 2005, Stefan Monnier wrote:

>>     After clicking on an alternative with the mouse iconifies the
>>     completions frame[1].  But the next time a completions buffer is
>>     generated, the completions frame is not de-iconified.  I think the
>>     frame should be made visible.
>
> Hmm... odd.  I've used a dedicated frame "for ever" and it pops right back
> up for me.

Hm, it might depend on the window manager.  I use fluxbox:

$ fluxbox -version
Fluxbox 0.9.14 : (c) 2001-2005 Henrik Kinnunen

When I try with plain twm, fvwm1 or blackbox, the frame is
de-iconified.  So it's probably a bug in fluxbox.

Could you point me to the relevant code in Emacs responsible for
de-iconifying the frame so that I can report to the fluxbox people?
Thanks.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Dedicated *Completions* frame iconified but not de-iconified
  2005-10-15 12:27     ` Reiner Steib
@ 2005-10-15 14:21       ` Reiner Steib
  2005-10-16 14:40       ` Richard M. Stallman
  1 sibling, 0 replies; 7+ messages in thread
From: Reiner Steib @ 2005-10-15 14:21 UTC (permalink / raw)
  Cc: Drew Adams, emacs-devel

On Sat, Oct 15 2005, Reiner Steib wrote:

> When I try with plain twm, fvwm1 or blackbox, the frame is
> de-iconified.  So it's probably a bug in fluxbox.
>
> Could you point me to the relevant code in Emacs responsible for
> de-iconifying the frame so that I can report to the fluxbox people?
> Thanks.

Or could you help me to provide a simple recipe?  *time passes* Okay,
here one...

--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---

I've sent it to the fluxbox list.

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Dedicated *Completions* frame iconified but not de-iconified
  2005-10-14 15:07 Dedicated *Completions* frame iconified but not de-iconified Reiner Steib
  2005-10-14 15:30 ` Drew Adams
@ 2005-10-15 16:13 ` Richard M. Stallman
  1 sibling, 0 replies; 7+ messages in thread
From: Richard M. Stallman @ 2005-10-15 16:13 UTC (permalink / raw)
  Cc: emacs-devel

The code in temp_output_buffer_show includes this:

  if (!EQ (Vtemp_buffer_show_function, Qnil))
    call1 (Vtemp_buffer_show_function, buf);
  else
    {
      window = Fdisplay_buffer (buf, Qnil, Qnil);

      if (!EQ (XWINDOW (window)->frame, selected_frame))
	Fmake_frame_visible (WINDOW_FRAME (XWINDOW (window)));

Apparently that call to Fmake_frame_visible is not doing the job for
you.  Can you determine why not?

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Dedicated *Completions* frame iconified but not de-iconified
  2005-10-15 12:27     ` Reiner Steib
  2005-10-15 14:21       ` Reiner Steib
@ 2005-10-16 14:40       ` Richard M. Stallman
  1 sibling, 0 replies; 7+ messages in thread
From: Richard M. Stallman @ 2005-10-16 14:40 UTC (permalink / raw)
  Cc: monnier, drew.adams, emacs-devel

    Could you point me to the relevant code in Emacs responsible for
    de-iconifying the frame so that I can report to the fluxbox people?

I presume it is the code in x_make_frame_visible (xterm.c).

You could try first running under GDB and making sure that that
function really is being called.  It's possible that some strangeness
prevents Emacs from calling it.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-10-16 14:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-14 15:07 Dedicated *Completions* frame iconified but not de-iconified Reiner Steib
2005-10-14 15:30 ` Drew Adams
2005-10-14 21:01   ` Stefan Monnier
2005-10-15 12:27     ` Reiner Steib
2005-10-15 14:21       ` Reiner Steib
2005-10-16 14:40       ` Richard M. Stallman
2005-10-15 16:13 ` Richard M. Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).