GNU bug report logs - #13954
Emacs for Windows: runemacs.exe launches Emacs behind other windows

Previous Next

Packages: emacs, w32;

Reported by: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>

Date: Thu, 14 Mar 2013 13:38:02 UTC

Severity: normal

Tags: moreinfo, unreproducible

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 13954 in the body.
You can then email your comments to 13954 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#13954; Package emacs. (Thu, 14 Mar 2013 13:38:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Andrew Pennebaker <andrew.pennebaker <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 14 Mar 2013 13:38:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
To: Emacs Bugs <bug-gnu-emacs <at> gnu.org>
Subject: Emacs for Windows: runemacs.exe launches Emacs behind other windows
Date: Thu, 14 Mar 2013 09:35:29 -0400
[Message part 1 (text/plain, inline)]
This occurs in Windows XP up to Windows 8, with Emacs v24.2.1.

-- 
Cheers,

Andrew Pennebaker
www.yellosoft.us
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13954; Package emacs. (Thu, 14 Mar 2013 16:43:02 GMT) Full text and rfc822 format available.

Message #8 received at 13954 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
Cc: 13954 <at> debbugs.gnu.org
Subject: Re: bug#13954: Emacs for Windows: runemacs.exe launches Emacs
	behind	other windows
Date: Thu, 14 Mar 2013 18:40:35 +0200
> Date: Thu, 14 Mar 2013 09:35:29 -0400
> From: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
> 
> This occurs in Windows XP up to Windows 8, with Emacs v24.2.1.

I cannot reproduce this, neither on XP nor on Windows 7.

Could you try the latest release 24.3?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13954; Package emacs,w32. (Thu, 14 Mar 2013 22:38:02 GMT) Full text and rfc822 format available.

Message #11 received at 13954 <at> debbugs.gnu.org (full text, mbox):

From: Daniel Colascione <dancol <at> dancol.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 13954 <at> debbugs.gnu.org, Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
Subject: Re: bug#13954: Emacs for Windows: runemacs.exe launches Emacs behind
	other windows
Date: Thu, 14 Mar 2013 15:35:56 -0700
[Message part 1 (text/plain, inline)]
On 3/14/2013 9:40 AM, Eli Zaretskii wrote:
>> Date: Thu, 14 Mar 2013 09:35:29 -0400
>> From: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
>>
>> This occurs in Windows XP up to Windows 8, with Emacs v24.2.1.
> 
> I cannot reproduce this, neither on XP nor on Windows 7.
> 
> Could you try the latest release 24.3?

How are you launching runemacs.exe? Windows has focus stealing prevention.
Please review the rules for SetForegroundWindow on MSDN and see whether your use
case satisfies the conditions mentioned for bringing a window to the fore.


[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13954; Package emacs,w32. (Fri, 15 Mar 2013 11:09:02 GMT) Full text and rfc822 format available.

Message #14 received at 13954 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Daniel Colascione <dancol <at> dancol.org>
Cc: 13954 <at> debbugs.gnu.org, andrew.pennebaker <at> gmail.com
Subject: Re: bug#13954: Emacs for Windows: runemacs.exe launches Emacs behind
	other windows
Date: Fri, 15 Mar 2013 13:07:17 +0200
> Date: Thu, 14 Mar 2013 15:35:56 -0700
> From: Daniel Colascione <dancol <at> dancol.org>
> CC: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>, 
>  13954 <at> debbugs.gnu.org
> 
> On 3/14/2013 9:40 AM, Eli Zaretskii wrote:
> >> Date: Thu, 14 Mar 2013 09:35:29 -0400
> >> From: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
> >>
> >> This occurs in Windows XP up to Windows 8, with Emacs v24.2.1.
> > 
> > I cannot reproduce this, neither on XP nor on Windows 7.
> > 
> > Could you try the latest release 24.3?
> 
> How are you launching runemacs.exe? Windows has focus stealing prevention.
> Please review the rules for SetForegroundWindow on MSDN and see whether your use
> case satisfies the conditions mentioned for bringing a window to the fore.

IIRC, if the conditions are not met, the taskbar button that
corresponds to the Emacs frame should flash.  Andrew, do you see this
happening when you launch Emacs?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13954; Package emacs,w32. (Fri, 15 Mar 2013 20:10:01 GMT) Full text and rfc822 format available.

Message #17 received at 13954 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
Cc: 13954 <at> debbugs.gnu.org
Subject: Re: bug#13954: Emacs for Windows: runemacs.exe launches Emacs behind
	other windows
Date: Fri, 15 Mar 2013 22:07:21 +0200
[Please keep the bug number on the CC list.]

> Date: Fri, 15 Mar 2013 15:34:23 -0400
> From: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
> 
> I do not see any taskbar buttons flashing. Emacs launches behind the
> terminal, like it's hiding from me.

Then perhaps you made some local changes on those Windows systems,
which modify the way the windows are managed.  I've never seen such a
problem in years.

What happens if you invoke Emacs in some other way, like type
"runemacs RET" on the cmd command line or from the Start->Run dialog,
or click on a desktop shortcut to runemacs?  What happens when you
invoke emacs.exe instead of runemacs.exe?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13954; Package emacs,w32. (Fri, 15 Mar 2013 21:31:02 GMT) Full text and rfc822 format available.

Message #20 received at 13954 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
Cc: 13954 <at> debbugs.gnu.org
Subject: Re: bug#13954: Emacs for Windows: runemacs.exe launches Emacs behind
	other windows
Date: Fri, 15 Mar 2013 23:28:32 +0200
[Once again, PLEASE keep the bug number on the CC list.]

> Date: Fri, 15 Mar 2013 17:11:09 -0400
> From: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
> 
> Have you tried using Emacs from Git Bash <http://msysgit.github.com/>?

No.  But I tried that now, and I still cannot reproduce the problem.
What version of msysgit do you have installed?  Also, what do the
following 2 commands produce inside Emacs?

  M-: system-configuration RET
  M-: system-configuration-options RET

> I've been running Emacs as follows:
> 
> Start -> Run -> gb -> runemacs <file|dir> RET
> "gb.bat" is a straightforward script to start a Git Bash terminal.

Please show the contents of that batch file.

Please also try the other methods I mentioned of launching runemacs,
and see if the problem persists then.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13954; Package emacs,w32. (Fri, 15 Mar 2013 21:34:02 GMT) Full text and rfc822 format available.

Message #23 received at 13954 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: andrew.pennebaker <at> gmail.com
Cc: 13954 <at> debbugs.gnu.org
Subject: Re: bug#13954: Emacs for Windows: runemacs.exe launches Emacs
	behind	other windows
Date: Fri, 15 Mar 2013 23:31:34 +0200
> Date: Fri, 15 Mar 2013 23:28:32 +0200
> From: Eli Zaretskii <eliz <at> gnu.org>
> Cc: 13954 <at> debbugs.gnu.org
> 
> What version of msysgit do you have installed?  Also, what do the
> following 2 commands produce inside Emacs?
> 
>   M-: system-configuration RET
>   M-: system-configuration-options RET
> 
> > I've been running Emacs as follows:
> > 
> > Start -> Run -> gb -> runemacs <file|dir> RET
> > "gb.bat" is a straightforward script to start a Git Bash terminal.
> 
> Please show the contents of that batch file.
> 
> Please also try the other methods I mentioned of launching runemacs,
> and see if the problem persists then.

And one more request: what happens if you invoke "runemacs -Q"?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#13954; Package emacs,w32. (Sat, 16 Mar 2013 07:49:02 GMT) Full text and rfc822 format available.

Message #26 received at 13954 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
Cc: 13954 <at> debbugs.gnu.org
Subject: Re: bug#13954: Emacs for Windows: runemacs.exe launches Emacs behind
	other windows
Date: Sat, 16 Mar 2013 09:46:33 +0200
Once again, PLEASE keep the bug address CC'ed to your messages, so
that this discussion is recorded by the bug tracker.

> Date: Fri, 15 Mar 2013 18:54:11 -0400
> From: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
> 
> I use Emacs at work and at home. At work, I use Windows XP, at home, I use
> Windows 8. I use the same .emacs configuration file for both.
> 
> The only difference is Windows XP: That one has Emacs appearing behind
> other windows. I cannot reproduce this on my Windows 8 computer.

I'm confused.  The original report said:

  This occurs in Windows XP up to Windows 8, with Emacs v24.2.1.

I though this meant you see this on XP, Windows 7, and Windows 8.  Did
I misunderstand?

I don't have access to Windows 8, but since you say the problem
doesn't exist there, that's not important.

> I thought you would be curious about the gb.bat, in case it caused
> conflicts. The contents of gb.bat are:
> 
> sh --login -i

That's what I have in the Properties of the desktop icon that opens
the MsysGit Bash terminal window on my XP system.  So we do the same
thing to start the shell.  And I cannot reproduce the problem even
when I invoke runemacs from MsysGit Bash.

> That's it. And I use it at work and at home. I repeat, the problem appears
> to be limited to Windows XP.

Can you please answer my other questions:

 . What version of MsysGit do you have installed on XP?

 . Does the problem happen when you invoke "runemacs -Q file"?

 . Does the problem happen when you invoke runemacs NOT from the
   MsysGit shell?

Thanks.




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Thu, 04 Apr 2013 17:10:03 GMT) Full text and rfc822 format available.

Notification sent to Andrew Pennebaker <andrew.pennebaker <at> gmail.com>:
bug acknowledged by developer. (Thu, 04 Apr 2013 17:10:03 GMT) Full text and rfc822 format available.

Message #31 received at 13954-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 13954-done <at> debbugs.gnu.org
Subject: Re: bug#13954: Emacs for Windows: runemacs.exe launches Emacs behind
	other windows
Date: Thu, 04 Apr 2013 13:06:44 -0400
No response to request for more information.
Feel free to reopen if you get that info.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 03 May 2013 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 47 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.