From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kenichi Handa Newsgroups: gmane.emacs.devel Subject: raise-frame doesn't work in Fedora Core 4 Date: Tue, 31 Oct 2006 20:12:44 +0900 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1162293167 30941 80.91.229.2 (31 Oct 2006 11:12:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 31 Oct 2006 11:12:47 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 31 12:12:44 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GerXi-00020N-PD for ged-emacs-devel@m.gmane.org; Tue, 31 Oct 2006 12:12:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GerXi-0002iM-70 for ged-emacs-devel@m.gmane.org; Tue, 31 Oct 2006 06:12:30 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GerXG-0002g8-AM for emacs-devel@gnu.org; Tue, 31 Oct 2006 06:12:02 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GerX9-0002Xr-IJ for emacs-devel@gnu.org; Tue, 31 Oct 2006 06:12:00 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GerX9-0002XT-3a for emacs-devel@gnu.org; Tue, 31 Oct 2006 06:11:55 -0500 Original-Received: from [150.29.246.133] (helo=mx1.aist.go.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GerX8-0003uF-DX for emacs-devel@gnu.org; Tue, 31 Oct 2006 06:11:54 -0500 Original-Received: from smtp1.aist.go.jp ([150.29.246.12]) by mx1.aist.go.jp with ESMTP id k9VBBp1C006794 for ; Tue, 31 Oct 2006 20:11:51 +0900 (JST) env-from (handa@m17n.org) Original-Received: by smtp1.aist.go.jp with ESMTP id k9VBBpwf007637 for ; Tue, 31 Oct 2006 20:11:51 +0900 (JST) env-from (handa@m17n.org) Original-Received: from handa by etlken with local (Exim 3.36 #1 (Debian)) id 1GerXw-00068h-00 for ; Tue, 31 Oct 2006 20:12:44 +0900 Original-To: emacs-devel@gnu.org 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) 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:61471 Archived-At: I've just got a report saying that the problem reported here: http://www.archivum.info/emacs-devel@gnu.org/2005-06/msg01570.html 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." (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/ --- Kenichi Handa handa@m17n.org