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: Re: Make raise-frame work on Cygwin Date: Thu, 17 May 2012 20:42:54 +0900 Organization: Emacsen advocacy group Message-ID: References: <4FB4C037.6060206@gmx.at> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1337254994 7391 80.91.229.3 (17 May 2012 11:43:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 May 2012 11:43:14 +0000 (UTC) Cc: emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 17 13:43:13 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SUz6u-0004pD-La for ged-emacs-devel@m.gmane.org; Thu, 17 May 2012 13:43:12 +0200 Original-Received: from localhost ([::1]:47411 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUz6u-0006aJ-5P for ged-emacs-devel@m.gmane.org; Thu, 17 May 2012 07:43:12 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:35693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUz6q-0006Zz-Tk for emacs-devel@gnu.org; Thu, 17 May 2012 07:43:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUz6p-00054U-6n for emacs-devel@gnu.org; Thu, 17 May 2012 07:43:08 -0400 Original-Received: from orlando.hostforweb.net ([216.246.45.90]:36661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUz6p-000541-2X for emacs-devel@gnu.org; Thu, 17 May 2012 07:43:07 -0400 Original-Received: from localhost ([127.0.0.1]:53698) by orlando.hostforweb.net with smtp (Exim 4.77) (envelope-from ) id 1SUz6l-0002j6-Vs; Thu, 17 May 2012 06:43:04 -0500 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.130006 (=?iso-2022-jp?B?GyRCPz8bKEI=?= Gnus v0.6) Emacs/24.1.50 (i686-pc-cygwin) Cancel-Lock: sha1:AclREiCtLGyX8H0FDGI9fffcCYo= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.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-detected-operating-system: by eggs.gnu.org: Linux 2.6? (barebone, rare!) X-Received-From: 216.246.45.90 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:150544 Archived-At: martin rudalics wrote: >> raise-frame doesn't pop up an existing frame on Cygwin (rootless). >> If there are many frames on a Windows screen, we have no means to >> pop up a certain Emacs frame that is hidden by the other frames, >> except for manually digging it up by mouse. > Probably a silly question: What does Cygwin do to pop it up when you are > "manually digging it up by mouse"? Or is Cygwin bypassed by Windows in > that case? I don't know at all. What I only do is, for instance, to type `M-x gnus-other-frame RET' to raise an existing Gnus frame up. `gnus-other-frame' runs `select-frame-set-input-focus' for the Gnus frame in question, nevertheless I thereafter need to dislodge or iconify other frames one by one by mouse till a Gnus frame is found. :< >> But at last I found >> a workaround: >> >> (defadvice raise-frame (before make-it-work (&optional frame) activate) >> "Make it work on Cygwin." >> (when frame (make-frame-invisible frame))) >> iconify-frame instead of make-frame-invisible there has no effect. > Dead-ugly. Nevertheless, we should provide support for that, e.g., by > introducing a `raise-frame-function' variable. What I really want is to improve Emacs so as to communicate with common window managers, including that of Windows 7, metacity... Though all window managers may perhaps not offer the complete set of interface.