From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kazuhiro Ito Newsgroups: gmane.emacs.bugs Subject: bug#11513: 24.1.50; raise-frame never raise the foreground window on Windows Date: Sat, 19 May 2012 21:02:21 +0900 Message-ID: <20120519120231.7181D2C037@msa104.auone-net.jp> References: <20120518210617.D4D181E0043@msa101.auone-net.jp> <83obpkzjhs.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1337429033 11218 80.91.229.3 (19 May 2012 12:03:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 19 May 2012 12:03:53 +0000 (UTC) Cc: 11513@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 19 14:03:50 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 1SViNr-0000G8-78 for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 May 2012 14:03:43 +0200 Original-Received: from localhost ([::1]:40839 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SViNq-0003aS-H2 for geb-bug-gnu-emacs@m.gmane.org; Sat, 19 May 2012 08:03:42 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47250) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SViNm-0003aA-Jv for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 08:03:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SViNk-00016N-Fa for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 08:03:38 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52409) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SViNk-00016J-C8 for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 08:03:36 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SViOA-00014K-3H for bug-gnu-emacs@gnu.org; Sat, 19 May 2012 08:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Kazuhiro Ito Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 19 May 2012 12: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.13374290034060 (code B ref 11513); Sat, 19 May 2012 12:04:02 +0000 Original-Received: (at 11513) by debbugs.gnu.org; 19 May 2012 12:03:23 +0000 Original-Received: from localhost ([127.0.0.1]:33722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SViNW-00013Q-VU for submit@debbugs.gnu.org; Sat, 19 May 2012 08:03:23 -0400 Original-Received: from msa104.auone-net.jp ([61.117.18.164]:33299) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SViNA-00012d-EN for 11513@debbugs.gnu.org; Sat, 19 May 2012 08:03:21 -0400 Original-Received: from GUNGNIR.med.osaka-cu.ac.jp (121-87-85-189f1.nar1.eonet.ne.jp [121.87.85.189]) by msa104.auone-net.jp (au one net msa) with ESMTP id 7181D2C037; Sat, 19 May 2012 21:02:30 +0900 (JST) In-Reply-To: <83obpkzjhs.fsf@gnu.org> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?Q?Goj=C5=8D?=) APEL/10.8 EasyPG/1.0.0 Emacs/24.1.50 (i386-mingw-nt6.1.7600) MULE/6.0 (HANACHIRUSATO) 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:60211 Archived-At: > > 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. The problem also occurs with pre-compiled pretest binary (*1) on Windows XP and Windows 7 (Professional, x64) system. In my environment, when I evaluate the above code, Emacs frame is correctly lowered too, but is not brought into the foreground. Emacs frame keeps behind the other application window(s). (*1) http://alpha.gnu.org/gnu/emacs/pretest/windows/emacs-24.0.97-bin-i386.zip > > 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 I change foreground application from Emacs to other application via ALT + TAB or mouse click while Emacs runs sleep-for function in the above code, Emacs frame is brought into the foreground several seconds later. that is the expected result. > 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? 1. Launch other Windows application (e.g. explorer, Command Prompt). 2. Start Emacs with -Q option. 3. Move Emacs frame to make it to overlap other application window(s) with mouse drag. 4. Yank the below code into *scratch* buffer. (let ((frame (selected-frame))) (lower-frame frame) (sleep-for 5) (raise-frame frame)) 5. Evaluate it with C-j. 6. Keep away from keyboard and mouse until Emacs finishes evaluation. Result: Emacs frame is behind other application window(s). Expected result: Emacs frame is in front of other application window(s). > Also, please provide the details normally collected by > "M-x report-emacs-bug RET". Here is the details with pretest binary. This bug report will be sent to the Bug-GNU-Emacs mailing list and the GNU bug tracker at debbugs.gnu.org. Please check that the From: line contains a valid email address. After a delay of up to one day, you should receive an acknowledgement at that address. Please write in English if possible, as the Emacs maintainers usually do not have translators for other languages. Please describe exactly what actions triggered the bug, and the precise symptoms of the bug. If you can, give a recipe starting from `emacs -Q': If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file f:/emacs-24.0.97/etc/DEBUG. In GNU Emacs 24.0.97.1 (i386-mingw-nt6.1.7601) of 2012-05-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7601 Configured using: `configure --with-gcc (4.6) --no-opt --enable-checking --cflags -ID:/devel/emacs/libs/libXpm-3.5.8/include -ID:/devel/emacs/libs/libXpm-3.5.8/src -ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include -ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include -ID:/devel/emacs/libs/giflib-4.1.4-1/include -ID:/devel/emacs/libs/jpeg-6b-4/include -ID:/devel/emacs/libs/tiff-3.8.2-1/include -ID:/devel/emacs/libs/gnutls-3.0.9/include' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: JPN value of $XMODIFIERS: nil locale-coding-system: cp932 default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: C-y C-j x r e p o r t < return> Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Mark set Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date japan-util tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) -- Kazuhiro Ito