* raise-frame doesn't work in Fedora Core 4 (was Re: `make-frame' makes...)
[not found] <b9yoe9xece4.fsf@jpl.org>
@ 2005-06-27 23:41 ` Katsumi Yamaoka
2005-06-28 15:48 ` raise-frame doesn't work in Fedora Core 4 Johan Bockgård
2007-09-14 6:24 ` Katsumi Yamaoka
0 siblings, 2 replies; 4+ messages in thread
From: Katsumi Yamaoka @ 2005-06-27 23:41 UTC (permalink / raw)
Cc: Masatake YAMATO
>>>>> 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/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: raise-frame doesn't work in Fedora Core 4
2005-06-27 23:41 ` raise-frame doesn't work in Fedora Core 4 (was Re: `make-frame' makes...) Katsumi Yamaoka
@ 2005-06-28 15:48 ` Johan Bockgård
2007-09-14 6:24 ` Katsumi Yamaoka
1 sibling, 0 replies; 4+ messages in thread
From: Johan Bockgård @ 2005-06-28 15:48 UTC (permalink / raw)
Katsumi Yamaoka <yamaoka@jpl.org> writes:
> I have only the knowledge that Fedora Core 4 uses the metacity
> window manager, sorry.
Indeed `raise-frame' does not work for me in Metacity 2.10.0 (under
Ubuntu).
--
Johan Bockgård
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: raise-frame doesn't work in Fedora Core 4
2005-06-27 23:41 ` raise-frame doesn't work in Fedora Core 4 (was Re: `make-frame' makes...) Katsumi Yamaoka
2005-06-28 15:48 ` raise-frame doesn't work in Fedora Core 4 Johan Bockgård
@ 2007-09-14 6:24 ` Katsumi Yamaoka
2007-09-16 10:25 ` Jan Djärv
1 sibling, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2007-09-14 6:24 UTC (permalink / raw)
To: emacs-devel
Hi again,
I recalled this bug has not been solved yet.
>>>>> Katsumi Yamaoka wrote:
> 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'.
I'm now in Fedora 7 that I update everyday. It runs the metacity
window manager and the problem seems to happen only with LUCID
(not GTK) Emacs on it. The concrete way to reproduce this bug is:
1. Start Emacs with the -Q option.
2. Type `C-x 5 b *Messages* RET'.
Now there are two Emacs frames as follows:
+-------------+
| |
| +--------------+
| | |
| *sc| |
+-----| |
| *Messages* |
+--------------+
3. Select the *scratch* frame by the mouse.
+-------------+
| |
| |------+
| | |
| *scratch* | |
+-------------+ |
| *Messages* |
+--------------+
4. Type `C-x 5 b *Messages* RET' in the *scratch* frame.
But the *Messages* frame is neither raised nor focused.
Jan Djärv wrote to me a half year ago in:
http://www.mail-archive.com/emacs-pretest-bug@gnu.org/msg11474.html
> See http://bugzilla.gnome.org/show_bug.cgi?id=392889. My last comment
> was that we may enable _NET_ACTIVATE_WINDOW, but it has been postponed
> to after the release.
The problem I brought up then seems to have been solved now.
However, it seems to be likely different from this. The whole
thread that contain this article is:
http://news.gmane.org/group/gmane.emacs.devel/thread=61471/force_load=t
Regards,
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: raise-frame doesn't work in Fedora Core 4
2007-09-14 6:24 ` Katsumi Yamaoka
@ 2007-09-16 10:25 ` Jan Djärv
0 siblings, 0 replies; 4+ messages in thread
From: Jan Djärv @ 2007-09-16 10:25 UTC (permalink / raw)
To: Katsumi Yamaoka; +Cc: emacs-devel
Katsumi Yamaoka skrev:
> Hi again,
>
> I recalled this bug has not been solved yet.
>
>>>>>> Katsumi Yamaoka wrote:
>
>> 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'.
>
> I'm now in Fedora 7 that I update everyday. It runs the metacity
> window manager and the problem seems to happen only with LUCID
> (not GTK) Emacs on it. The concrete way to reproduce this bug is:
>
> 1. Start Emacs with the -Q option.
> 2. Type `C-x 5 b *Messages* RET'.
> Now there are two Emacs frames as follows:
> +-------------+
> | |
> | +--------------+
> | | |
> | *sc| |
> +-----| |
> | *Messages* |
> +--------------+
> 3. Select the *scratch* frame by the mouse.
> +-------------+
> | |
> | |------+
> | | |
> | *scratch* | |
> +-------------+ |
> | *Messages* |
> +--------------+
> 4. Type `C-x 5 b *Messages* RET' in the *scratch* frame.
> But the *Messages* frame is neither raised nor focused.
Metacity ignores most focus and raise requests. It does honor
_NET_ACTIVE_WINDOW. However, Emacs only does _NET_ACTIVE_WINDOW for
x-focus-frame, not raise-frame. Why Gtk+ differs I don't know. Probably it
sets some property behind the scenes that Xt does not.
Jan D.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-09-16 10:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <b9yoe9xece4.fsf@jpl.org>
2005-06-27 23:41 ` raise-frame doesn't work in Fedora Core 4 (was Re: `make-frame' makes...) Katsumi Yamaoka
2005-06-28 15:48 ` raise-frame doesn't work in Fedora Core 4 Johan Bockgård
2007-09-14 6:24 ` Katsumi Yamaoka
2007-09-16 10:25 ` Jan Djärv
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.