From: Eli Zaretskii <eliz@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: w32-shell-execute and Cygwin
Date: Tue, 21 Apr 2020 17:20:49 +0300 [thread overview]
Message-ID: <83imhsgbsu.fsf@gnu.org> (raw)
In-Reply-To: <86d081md7t.fsf@duenenhof-wilhelm.de> (dieter@duenenhof-wilhelm.de)
> From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm)
> Cc: help-gnu-emacs@gnu.org
> Date: Tue, 21 Apr 2020 10:53:42 +0200
>
> > 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" "\""))
Actually, I see that w32-shell-execute aleady invokes
cygwin-convert-file-name-to-windows internally, so you don't have to
do that.
Other than that, I'm afraid I cannot help you, sorry. I suggest to
ask this on the Cygwin mailing list.
prev parent reply other threads:[~2020-04-21 14:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 9:59 w32-shell-execute and Cygwin H. Dieter Wilhelm
2020-04-20 15:12 ` Jakub Jankiewicz
2020-04-20 19:09 ` H. Dieter Wilhelm
2020-04-21 8:27 ` Jakub Jankiewicz
2020-04-20 15:28 ` Eli Zaretskii
2020-04-20 19:49 ` H. Dieter Wilhelm
2020-04-21 2:24 ` Eli Zaretskii
2020-04-21 8:53 ` H. Dieter Wilhelm
2020-04-21 14:20 ` Eli Zaretskii [this message]
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=83imhsgbsu.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/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.
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).