help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to raise a frame under X (was: how to raise compilation frame)


From: igah
Subject: Re: How to raise a frame under X (was: how to raise compilation frame)
Date: Thu, 21 Jul 2011 05:08:39 -0700 (PDT)

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]