From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.devel Subject: raise-frame doesn't work in Fedora Core 4 (was Re: `make-frame' makes...) Date: Tue, 28 Jun 2005 08:41:35 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1119916372 17136 80.91.229.2 (27 Jun 2005 23:52:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 27 Jun 2005 23:52:52 +0000 (UTC) Cc: Masatake YAMATO Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jun 28 01:52:46 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Dn3O5-0004fh-Eh for ged-emacs-devel@m.gmane.org; Tue, 28 Jun 2005 01:51:37 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn3Vo-0000mw-Sr for ged-emacs-devel@m.gmane.org; Mon, 27 Jun 2005 19:59:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Dn3TK-0008ME-Hd for emacs-devel@gnu.org; Mon, 27 Jun 2005 19:57:02 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Dn3TE-0008JM-C7 for emacs-devel@gnu.org; Mon, 27 Jun 2005 19:56:58 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Dn3TD-0008Cu-Tu for emacs-devel@gnu.org; Mon, 27 Jun 2005 19:56:55 -0400 Original-Received: from [66.225.201.13] (helo=washington.hostforweb.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1Dn3Im-0001lZ-Tb for emacs-devel@gnu.org; Mon, 27 Jun 2005 19:46:09 -0400 Original-Received: from localhost.servershost.net ([127.0.0.1] helo=localhost) by washington.hostforweb.net with esmtpa (Exim 4.50) id 1Dn3Ed-0000ca-2o; Mon, 27 Jun 2005 18:41:51 -0500 Original-To: emacs-devel@gnu.org X-Face: #kKnN,xUnmKia.'[pp`; Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu; B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:h/9TcT5E9Hjd9u1sESeRijLBScU= X-Hashcash: 1:20:050627:emacs-devel@gnu.org::GYZmkq+Gf76aLrHq:0000000000000000000000000000000000000000000f1i X-Hashcash: 1:20:050627:jet@gyve.org::48mMDQPfC2+p17Pl:000000uX0 X-Antivirus-Scanner: Clean mail though you should still use an Antivirus X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - washington.hostforweb.net X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:39702 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:39702 >>>>> 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/