[Top][All Lists]

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

raise-frame doesn't work in Fedora Core 4

From: Kenichi Handa
Subject: raise-frame doesn't work in Fedora Core 4
Date: Tue, 31 Oct 2006 20:12:44 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/22.0.50 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

I've just got a report saying that the problem reported here:


is not yet fixed.

The contents is this:

>>>>> In the emacs-pretest-bug list, Katsumi Yamaoka wrote:

> I did them in the Fedora Core 4 platform.  Since `raise-frame'
> does nothing in this platform, I'm trying to advise it to be
> replaced with `delete-frame' and `make-frame' as follows:

That `raise-frame' didn't work was a life-and-death problem for
me.  For instance, I couldn't make the Emacs frame (which was
existing but was lowered behind the other frames) pop to the
front using `C-x 5 b'.

Now I realized I can use the program called `wmctrl'[1] to solve
the problem.  Here's an new advice:

(defadvice raise-frame (after make-it-work (&optional frame) activate)
  "Make it work."
   "wmctrl" nil nil nil "-i" "-R"
   (frame-parameter (or frame (selected-frame)) 'outer-window-id)))

It's enough for me, though `wmctrl' does the overkill; `raise-frame'
doesn't always put the input focus on the frame as far as I know,
but `wmctrl' behaves like `select-frame-set-input-focus'.  Anyway,
it suggests that the function that `wmctrl' provides can be
incorporated into Emacs, doesn't it?  I would very much appreciate
someone achieving it.  I have only the knowledge that Fedora Core 4
uses the metacity window manager, sorry.

[1] http://sweb.cz/tripie/utils/wmctrl/

Kenichi Handa

reply via email to

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