all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Yuri Khan <yuri.v.khan@gmail.com>
Cc: ofv@wanadoo.es, emacs-devel@gnu.org
Subject: Re: Wrong PATH in MSYS2/MINGW64 builds?
Date: Thu, 28 May 2015 20:09:39 +0300	[thread overview]
Message-ID: <83r3q0wrvw.fsf@gnu.org> (raw)
In-Reply-To: <CAP_d_8UnqtmP7JUz3nwzbSg7dif7AKffgnB0v6pnpiM1MsywzQ@mail.gmail.com>

> From: Yuri Khan <yuri.v.khan@gmail.com>
> Date: Thu, 28 May 2015 22:52:16 +0600
> Cc: Óscar Fuentes <ofv@wanadoo.es>, 
> 	Emacs developers <emacs-devel@gnu.org>
> 
> On Thu, May 28, 2015 at 10:37 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> >> From: Óscar Fuentes <ofv@wanadoo.es>
> >>
> >> I would expect from Emacs to be able to execute the applications that
> >> reside on the same directory as emacs.exe.
> >
> > Why would you expect that?
> 
> Because it's the default native behavior on Windows?
> 
> ===
> $ msdn CreateProcess

Why would you think Emacs should invoke CreateProcess with just
"bzip2" as the program name?

Please have a look at the implementation of call-process, and you will
see that Emacs searches for the program in platform-independent
application code, long before it gets to low-level Windows-specific
code (which just emulates Posix fork/exec).  By the time we get to
CreateProcess, the program file name is supposed to be already found
and converted to an absolute file name.

IOW, Emacs behaves consistently on all supported platforms, and tries
to keep OS-specific issues and tricks out.  In particular, Emacs
_never_ relies on the current directory of the Emacs process (that's
why it always calls expand-file-name or its equivalent, before passing
file names to low-level APIs).




  reply	other threads:[~2015-05-28 17:09 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-28 13:56 Wrong PATH in MSYS2/MINGW64 builds? Angelo Graziosi
2015-05-28 14:11 ` Óscar Fuentes
2015-05-28 15:09 ` Eli Zaretskii
2015-05-28 15:36   ` Óscar Fuentes
2015-05-28 16:37     ` Eli Zaretskii
2015-05-28 16:52       ` Yuri Khan
2015-05-28 17:09         ` Eli Zaretskii [this message]
2015-05-29  2:05           ` Yuri Khan
2015-05-29  6:05             ` Eli Zaretskii
2015-05-28 15:41   ` Angelo Graziosi
2015-05-28 16:49     ` Eli Zaretskii
2015-05-28 21:51       ` Angelo Graziosi
2015-05-29  5:55         ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2015-05-28 15:06 Angelo Graziosi

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

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

  git send-email \
    --in-reply-to=83r3q0wrvw.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=ofv@wanadoo.es \
    --cc=yuri.v.khan@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.