From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#11513: 24.1.50; raise-frame never raise the foreground window on Windows Date: Sat, 19 May 2012 11:02:23 +0300 Message-ID: <83obpkzjhs.fsf@gnu.org> References: <20120518210617.D4D181E0043@msa101.auone-net.jp> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1337414627 17762 80.91.229.3 (19 May 2012 08:03:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 May 2012 08:03:47 +0000 (UTC) Cc: 11513@debbugs.gnu.org To: Kazuhiro Ito Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 19 10:03:46 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1SVedc-0008Gp-FD for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 May 2012 10:03:44 +0200 Original-Received: from localhost ([::1]:33740 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVedb-0007tu-OK for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 May 2012 04:03:43 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:57370) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVedY-0007to-C8 for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 04:03:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SVedW-0001RS-HV for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 04:03:39 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SVedW-0001RN-DV for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 04:03:38 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SVedu-00037L-CB for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 04:04:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 May 2012 08:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11513 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11513-submit@debbugs.gnu.org id=B11513.133741458411911 (code B ref 11513); Sat, 19 May 2012 08:04:02 +0000 Original-Received: (at 11513) by debbugs.gnu.org; 19 May 2012 08:03:04 +0000 Original-Received: from localhost ([127.0.0.1]:33597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SVecx-000363-PX for submit@debbugs.gnu.org; Sat, 19 May 2012 04:03:04 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:47180) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SVecv-00035L-2h for 11513@debbugs.gnu.org; Sat, 19 May 2012 04:03:02 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0M4900L00FG0TB00@a-mtaout23.012.net.il> for 11513@debbugs.gnu.org; Sat, 19 May 2012 11:02:28 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.210.75]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M4900L7OFNXLJ70@a-mtaout23.012.net.il>; Sat, 19 May 2012 11:02:22 +0300 (IDT) In-reply-to: <20120518210617.D4D181E0043@msa101.auone-net.jp> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:60205 Archived-At: > Date: Sat, 19 May 2012 06:06:09 +0900 > From: Kazuhiro Ito > > When I start Emacs with -Q option nd evaluate the below code, I get > unexpected result. > > (let ((frame (selected-frame))) > (lower-frame frame) > ;; If we change the foreground window while sleeping, raise-frame > ;; correctly works. > (sleep-for 5) > (raise-frame frame)) > > Result: raise-frame never raise the frame if the selected frame is the > foreground window. I cannot reproduce this on my Windows XP system. When I evaluate the above, the Emacs frame is correctly lowered (i.e. goes behind the other window(s)), and then is brought into the foreground several seconds later. > If other frame or application is the foreground window, raise-frame > works as expected. What exactly do you mean by "If other frame or application is the foreground window"? If the Emacs frame is the only foreground window (i.e. all the others are iconified) when I evaluate the recipe, then the Emacs frame is neither lowered nor raised, which I think is the expected behavior. So please specify more precisely the conditions for reproducing this problem, in terms of what other windows should or should not be present on the display before evaluating the recipe code. Perhaps the recipe lacks some specific mouse gestures to achieve the required effect? Also, please provide the details normally collected by "M-x report-emacs-bug RET". They are important. Thanks.