Subject: Re: bug#15461: 24.3; exec-path on ms windows should contain current directory

From: Eli Zaretskii <[email-masked]>
Date: Wed, 25 Sep 2013 18:48:43 +0300

> Date: Wed, 25 Sep 2013 15:24:58 +0200
> From: Jarek Czekalski <[email-masked]>
> 
> To be consistent with the native shell on Microsoft Windows,
> the exec-path should include current directory.

In Emacs, every buffer has its own "current directory", the value of
default-directory of that buffer.  So you are in effect proposing to
change exec-path whenever a buffer is switched, including temporary
buffers used by Emacs under the hood and whatnot.

OTOH, the current directory is always implicitly present, so while
completion indeed doesn't happen, typing "M-! test.bat RET" _will_ in
fact invoke the batch file.

So I wonder what are the real-life use cases that motivated you to ask
for this change.  Is that only completion?