unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Subject: Re: Bug: can not start a w32 GUI program from Emacs
Date: Wed, 27 Dec 2006 03:30:09 +0100	[thread overview]
Message-ID: <4591DAB1.6050400@gmail.com> (raw)
In-Reply-To: <4591C075.3040905@gmail.com>

Lennart Borgman (gmail) wrote:
> I have been trying different ways to start explorer.exe from Emacs on 
> w32. I can not find any way that works. It is a quite annoying bug.
> 
> I suspect this has something to do with the code in w32proc.c that defines
> 
>   start.hStdInput = GetStdHandle (STD_INPUT_HANDLE);
>   start.hStdOutput = GetStdHandle (STD_OUTPUT_HANDLE);
>   start.hStdError = GetStdHandle (STD_ERROR_HANDLE);
> 
> This is done even if Emacs thinks it is a GUI app. Is this the problem? 
> Why is this handles set also for GUI programs.


It seems to be more complicated than I thought. Before I could not start 
for example Windows Explorer by

   (call-process "explorer.exe" nil 0 nil ".")
   (call-process "cmd.exe" nil 0 nil "/c" "explorer .")
   (start-process "some name" nil "cmd.exe" "/c" "explorer.exe" ".")

None of them worked. A window was opened, but it was blank or rather 
transparent. And in Task Manager was windows did not have the Explorer icon.

Now, after reboot they all work. Something is however wrong, but what?

This is on Windows XP (all the latest patches applied of course), using 
CVS Emacs a few days old.

  reply	other threads:[~2006-12-27  2:30 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-27  0:38 Bug: can not start a w32 GUI program from Emacs Lennart Borgman (gmail)
2006-12-27  2:30 ` Lennart Borgman (gmail) [this message]
2006-12-27  8:24 ` Eli Zaretskii
2006-12-27 10:52   ` Lennart Borgman (gmail)
2006-12-27 12:00     ` Mathias Dahl
2006-12-27 12:19       ` Eli Zaretskii
2006-12-27 12:50         ` Lennart Borgman (gmail)
2006-12-27 14:19           ` Eli Zaretskii
2006-12-27 14:33             ` Lennart Borgman (gmail)
2006-12-27 19:21               ` Eli Zaretskii
2006-12-27 12:36       ` Lennart Borgman (gmail)
2006-12-28  9:26 ` Jason Rumney
2006-12-28  9:32   ` Lennart Borgman (gmail)
2006-12-30  1:09   ` Lennart Borgman (gmail)
2006-12-30 15:49     ` Eli Zaretskii
2006-12-30 16:04       ` Lennart Borgman (gmail)
2006-12-30 17:00         ` Eli Zaretskii
2006-12-30 17:28           ` Lennart Borgman (gmail)
2006-12-30 18:01             ` Eli Zaretskii
2006-12-30 18:22               ` Lennart Borgman (gmail)

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4591DAB1.6050400@gmail.com \
    --to=lennart.borgman@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).