From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Bug: can not start a w32 GUI program from Emacs Date: Wed, 27 Dec 2006 14:19:44 +0200 Message-ID: References: <4591C075.3040905@gmail.com> <4592506E.8050905@gmail.com> <7dbe73ed0612270400q3a1f6a63kff7b75e8cb60b300@mail.gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: dough.gmane.org X-Trace: sea.gmane.org 1167222012 2799 80.91.229.10 (27 Dec 2006 12:20:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 27 Dec 2006 12:20:12 +0000 (UTC) Cc: lennart.borgman@gmail.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 27 13:20:10 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GzXlM-0001j4-FU for ged-emacs-devel@m.gmane.org; Wed, 27 Dec 2006 13:20:04 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GzXlL-0004hx-FB for ged-emacs-devel@m.gmane.org; Wed, 27 Dec 2006 07:20:03 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GzXl6-0004h1-FC for emacs-devel@gnu.org; Wed, 27 Dec 2006 07:19:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GzXl4-0004gR-GX for emacs-devel@gnu.org; Wed, 27 Dec 2006 07:19:47 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GzXl4-0004gO-47 for emacs-devel@gnu.org; Wed, 27 Dec 2006 07:19:46 -0500 Original-Received: from [192.114.186.73] (helo=heller.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GzXl3-0001Rc-Pu for emacs-devel@gnu.org; Wed, 27 Dec 2006 07:19:46 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-80-230-157-21.inter.net.il [80.230.157.21]) by heller.inter.net.il (MOS 3.7.3a-GA) with ESMTP id BJJ96024 (AUTH halo1); Wed, 27 Dec 2006 14:19:42 +0200 (IST) Original-To: "Mathias Dahl" In-reply-to: <7dbe73ed0612270400q3a1f6a63kff7b75e8cb60b300@mail.gmail.com> (mathias.dahl@gmail.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64336 Archived-At: > Date: Wed, 27 Dec 2006 13:00:06 +0100 > From: "Mathias Dahl" > Cc: emacs-devel@gnu.org > > > (w32-shell-execute "open" ".") > > > > just gives "ShellExecute failed: No application is associated with the > > specified file for this operation". > > If you thought the above to work, in the same way that "start ." works > from cmd.exe I think you simply missed that "." is "magic" only inside > cmd.exe. "." is magic not only for cmd.exe, it is recognized by all file-related primitives of the Windows API. The error message actually tells what is wrong in this case: Windows doesn't have any application associated with ".", so it doesn't know what application to run for the "open" verb. But if you try (w32-shell-execute nil "explorer.exe" ".") you will see that "." _is_, in fact, supported outside cmd.exe.