From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) Newsgroups: gmane.emacs.help Subject: Re: w32-shell-execute and Cygwin Date: Tue, 21 Apr 2020 10:53:42 +0200 Message-ID: <86d081md7t.fsf@duenenhof-wilhelm.de> References: <861roio4u3.fsf@duenenhof-wilhelm.de> <83h7xegosa.fsf@gnu.org> <86o8rmlyxv.fsf@duenenhof-wilhelm.de> <83sggxfue6.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="115579"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 21 10:54:51 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jQog6-000Tye-V1 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Apr 2020 10:54:50 +0200 Original-Received: from localhost ([::1]:54054 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQog5-0007Bi-VE for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 21 Apr 2020 04:54:49 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57154) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jQofC-00076i-IS for help-gnu-emacs@gnu.org; Tue, 21 Apr 2020 04:53:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jQofC-0000Jh-3U for help-gnu-emacs@gnu.org; Tue, 21 Apr 2020 04:53:54 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.130]:34649) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jQof3-0008Ol-Ch; Tue, 21 Apr 2020 04:53:45 -0400 Original-Received: from ping ([92.116.187.234]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1Mnq4Q-1it5bw3k4Y-00pOjp; Tue, 21 Apr 2020 10:53:42 +0200 In-Reply-To: <83sggxfue6.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 21 Apr 2020 05:24:33 +0300") X-Provags-ID: V03:K1:t2auyMe08PSVzxGhBp/9YOF8E3aOqO1sf5FflrQVgjauuY+G32o t73hlSydVUU3pOA+dvPlg1dPjs+2GyXW+ED5uE65M7usX/1Ft6nH2oaFhzKfQxk8LyAmqbz u6VxPsDbCDowNi/u8aAT7Cm22NZeSbTrnrLTgifpJpxcdyJ6BjGxv5MTsuyDpiIwte/gN2d dbOfH6MUYRcoP4yZ2rXhA== X-UI-Out-Filterresults: notjunk:1;V03:K0:2O0A5sGfTG4=:qtQSVMIwJu5qb1ylNsuk7f lTkuVbxqESdjACziVGCbVnusI51kmBmuozTGA4lyL6vcODqm/IiWd/EYVJdlgz9P5vQ7t/q5B 9nkwzOfaECQanTGRURtglip+KpP2jAmIoL19be1tXszL5lm8mgm+1a8k7geczNXA1hzypz2qZ /M63edVUgdmf6L4X2funzImSsEd0DMc4k62UbOAbvTr5P0AOYh3rCFg7L3v5VM8uz96rJBG9L bdx2kxSUdR0+5LiuyikSi6fhCLFVQWaAsuwRk2+2e/SvBsl5pqFPv3QO2NH+0ZFKp0BlpL4Ao DCrT6b4I54BKZ72zL/hgqHj00RvtPnAzuxEcpan2YhFC2P0jRNc1vEkE7dZyhRMJUHPIAUEGF Qu/DZYuB1nylmXGfhp/4lc32ekvs9LVLq0AeD6WTbo0LKumRPro+khBtB3zDaWQlMepk9QWVG VJdY6P1Xi4cp1wRdDvJfLvRSw7R8OYETS1sJe0r3stiimXNvqCEBWN56Z218EF5A9Mu358+j4 +tfgVKEKTbPC0PkS2D6FoPJhsC4tBVlWlPi+lY7ACpsD7mb3BoZ2vorLCIZj8tBn9i2eVdEuL g6KjPffywoyS0EKdsuxWhYg5vxDx7sGKnBp27eYttNd1l6D/3rgdlRRtW8th5rLbyeNuJw6vl TN7C4mJ65Bh58Oeubz3G/zDMVlZgXkuq8bqavoMeKAjHGkc8SxNpipYBZo5CcwsDu7YGLQwpr EjZgAQxmjVVKeaka+Q47nMTppttH4VHC2IzVvnEEiMK+igTbO8b99OUYFSU2sKhpneEmjRE+ Received-SPF: none client-ip=212.227.126.130; envelope-from=dieter@duenenhof-wilhelm.de; helo=mout.kundenserver.de X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/21 04:53:43 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Received-From: 212.227.126.130 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122907 Archived-At: Eli Zaretskii writes: >> From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm) >> Cc: help-gnu-emacs@gnu.org >> Date: Mon, 20 Apr 2020 21:49:48 +0200 >> >> But now there is the problem that w32-shell-execute seemingly doesn't >> recognise cygwin paths. (here: "/cygwin/c/...") >> >> error "ShellExecute failed: The system cannot find the file..." >> >> It seems to me as if w32-shell-execute is not literate for cygwin paths >> and one needs to normalise them to the Windows standard ("c:/...")? > > Yes. There's a function for that already in Emacs: > cygwin-convert-file-name-to-windows. Thank you for the hint but I still can't get it to run. I'm afraid there might be a bug in cygwin's w32-shell-execute because under system-type = windows-nt (26.3) I'm able to start the following application (with a space in the path). But under system-type = cygwin (27.0.50) it isn't finding the exec: (w32-shell-execute ;; "Open" (concat "\"" (cygwin-convert-file-name-to-windows ;; apdl-ansys-help-program) "\"") ) ;; "open" (concat "\"" (cygwin-convert-file-name-to-windows ;; "/cygdrive/c/CAx/App/ANSYS Inc/v201/commonfiles/help/HelpViewer/ANSYSHelpViewer.exe") "\"")) "Open" (concat "\"" "C:\\CAx\\App\\ANSYS Inc\\v201\\commonfiles\\help\\HelpViewer\\ANSYSHelpViewer.exe" "\"")) Thank you Dieter -- Best wishes H. Dieter Wilhelm Zwingenberg, Germany