[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
raise-frame doesn't work in Fedora Core 4 (was Re: `make-frame' makes...
From: |
Katsumi Yamaoka |
Subject: |
raise-frame doesn't work in Fedora Core 4 (was Re: `make-frame' makes...) |
Date: |
Tue, 28 Jun 2005 08:41:35 +0900 |
User-agent: |
Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) |
>>>>> 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."
(call-process
"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/
- raise-frame doesn't work in Fedora Core 4 (was Re: `make-frame' makes...),
Katsumi Yamaoka <=