From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Make raise-frame work on Cygwin Date: Thu, 17 May 2012 11:09:11 +0200 Message-ID: <4FB4C037.6060206@gmx.at> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1337245773 2786 80.91.229.3 (17 May 2012 09:09:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 May 2012 09:09:33 +0000 (UTC) Cc: emacs-devel@gnu.org To: Katsumi Yamaoka Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu May 17 11:09:33 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 1SUwiC-0000ZE-C0 for ged-emacs-devel@m.gmane.org; Thu, 17 May 2012 11:09:32 +0200 Original-Received: from localhost ([::1]:51451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUwiB-0005Oz-Fk for ged-emacs-devel@m.gmane.org; Thu, 17 May 2012 05:09:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:46085) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SUwi5-0005OU-61 for emacs-devel@gnu.org; Thu, 17 May 2012 05:09:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SUwhz-00033x-1M for emacs-devel@gnu.org; Thu, 17 May 2012 05:09:24 -0400 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:59979) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1SUwhy-00033N-NC for emacs-devel@gnu.org; Thu, 17 May 2012 05:09:18 -0400 Original-Received: (qmail invoked by alias); 17 May 2012 09:09:14 -0000 Original-Received: from 62-47-35-195.adsl.highway.telekom.at (EHLO [62.47.35.195]) [62.47.35.195] by mail.gmx.net (mp004) with SMTP; 17 May 2012 11:09:14 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19MVzUW4ahMmxKFTeX1fxiVzD9y3Eg+gjz71eEnU1 +IqaQ4vEVFWIEh In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 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:150541 Archived-At: > 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? > 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. > It also revealed that some ELisp applications call raise-frame two > or more times at a time since a raised frame blinks. ;-) Ideally, these `raise-frame' calls are idempotent. Unfortunately, sampling frame visibility is not that trivial. martin