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

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

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


From: Štěpán Němec
Subject: How to raise a frame under X (was: how to raise compilation frame)
Date: Wed, 20 Jul 2011 10:57:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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



reply via email to

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