all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how to raise compilation frame
@ 2011-07-19 13:39 igah
  2011-07-20  8:57 ` How to raise a frame under X (was: how to raise compilation frame) Štěpán Němec
  0 siblings, 1 reply; 3+ messages in thread
From: igah @ 2011-07-19 13:39 UTC (permalink / raw
  To: Help-gnu-emacs


hi there,

when i run the "compile" command, a new frame pops up. when i run compile
again (from the main frame), the compilation frame doesn't get raised
automatically. i am using emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+
Version 2.24.4) under fluxbox. any help is greatly appreciated. 


-- 
View this message in context: http://old.nabble.com/how-to-raise-compilation-frame-tp32091270p32091270.html
Sent from the Emacs - Help mailing list archive at Nabble.com.




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

* How to raise a frame under X (was: how to raise compilation frame)
  2011-07-19 13:39 how to raise compilation frame igah
@ 2011-07-20  8:57 ` Štěpán Němec
  2011-07-21 12:08   ` igah
  0 siblings, 1 reply; 3+ messages in thread
From: Štěpán Němec @ 2011-07-20  8:57 UTC (permalink / raw
  To: igah; +Cc: help-gnu-emacs

igah <weiqingh@mail.com> writes:

> when i run the "compile" command, a new frame pops up. when i run compile
> again (from the main frame), the compilation frame doesn't get raised
> automatically. i am using emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+
> Version 2.24.4) under fluxbox. any help is greatly appreciated. 

Under X and with some window managers, Emacs' `raise-frame' seems to
fail. If your WM supports EWMH[1], you might be able to fix it with
something like the following:

(defadvice raise-frame (around wmctrl activate)
  (if (eq (window-system (ad-get-arg 0)) 'x)
      (x-send-client-message nil 0 (ad-get-arg 0)
                             "_NET_ACTIVE_WINDOW" 32 '(1))
    ad-do-it))

You might also want to `report-emacs-bug', as Emacs obviously doesn't do
as much as it should on its own.

  Štěpán

[1] http://standards.freedesktop.org/wm-spec/wm-spec-latest.html



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

* Re: How to raise a frame under X (was: how to raise compilation frame)
  2011-07-20  8:57 ` How to raise a frame under X (was: how to raise compilation frame) Štěpán Němec
@ 2011-07-21 12:08   ` igah
  0 siblings, 0 replies; 3+ messages in thread
From: igah @ 2011-07-21 12:08 UTC (permalink / raw
  To: Help-gnu-emacs


thanks for your help. it works! i am running fluxbox 1.3.1. an earlier
version of fluxbox doesn't have the problem. 

again, thanks!


Štěpán Němec wrote:
> 
> igah <weiqingh@mail.com> writes:
> 
>> when i run the "compile" command, a new frame pops up. when i run compile
>> again (from the main frame), the compilation frame doesn't get raised
>> automatically. i am using emacs 23.2.1 (x86_64-redhat-linux-gnu, GTK+
>> Version 2.24.4) under fluxbox. any help is greatly appreciated. 
> 
> Under X and with some window managers, Emacs' `raise-frame' seems to
> fail. If your WM supports EWMH[1], you might be able to fix it with
> something like the following:
> 
> (defadvice raise-frame (around wmctrl activate)
>   (if (eq (window-system (ad-get-arg 0)) 'x)
>       (x-send-client-message nil 0 (ad-get-arg 0)
>                              "_NET_ACTIVE_WINDOW" 32 '(1))
>     ad-do-it))
> 
> You might also want to `report-emacs-bug', as Emacs obviously doesn't do
> as much as it should on its own.
> 
>   Štěpán
> 
> [1] http://standards.freedesktop.org/wm-spec/wm-spec-latest.html
> 
> 
> 

-- 
View this message in context: http://old.nabble.com/how-to-raise-compilation-frame-tp32091270p32106901.html
Sent from the Emacs - Help mailing list archive at Nabble.com.




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

end of thread, other threads:[~2011-07-21 12:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-19 13:39 how to raise compilation frame igah
2011-07-20  8:57 ` How to raise a frame under X (was: how to raise compilation frame) Štěpán Němec
2011-07-21 12:08   ` igah

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.