From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15461: 24.3; exec-path on ms windows should contain current directory Date: Sun, 15 Dec 2013 23:16:50 +0200 Message-ID: <83k3f5erwd.fsf@gnu.org> References: <5242E42A.4050109@poczta.onet.pl> <52AE11CC.5030500@poczta.onet.pl> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1387142298 32323 80.91.229.3 (15 Dec 2013 21:18:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Dec 2013 21:18:18 +0000 (UTC) Cc: 15461@debbugs.gnu.org To: Jarek Czekalski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Dec 15 22:18:23 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VsJ4t-0007BN-HC for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Dec 2013 22:18:19 +0100 Original-Received: from localhost ([::1]:52542 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsJ4s-0003R3-WA for geb-bug-gnu-emacs@m.gmane.org; Sun, 15 Dec 2013 16:18:19 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39394) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsJ4k-0003Qq-IG for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 16:18:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsJ4c-0002yR-Rs for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 16:18:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:38125) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsJ4c-0002yH-Oq for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 16:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VsJ4c-0001SU-8J for bug-gnu-emacs@gnu.org; Sun, 15 Dec 2013 16:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 15 Dec 2013 21:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15461 X-GNU-PR-Package: emacs,w32 X-GNU-PR-Keywords: Original-Received: via spool by 15461-submit@debbugs.gnu.org id=B15461.13871422295542 (code B ref 15461); Sun, 15 Dec 2013 21:18:02 +0000 Original-Received: (at 15461) by debbugs.gnu.org; 15 Dec 2013 21:17:09 +0000 Original-Received: from localhost ([127.0.0.1]:52144 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VsJ3k-0001RJ-6x for submit@debbugs.gnu.org; Sun, 15 Dec 2013 16:17:08 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:34122) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VsJ3e-0001Qk-HP for 15461@debbugs.gnu.org; Sun, 15 Dec 2013 16:17:06 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MXV00I009KH5D00@a-mtaout22.012.net.il> for 15461@debbugs.gnu.org; Sun, 15 Dec 2013 23:16:43 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MXV00HZS9RUWR60@a-mtaout22.012.net.il>; Sun, 15 Dec 2013 23:16:43 +0200 (IST) In-reply-to: <52AE11CC.5030500@poczta.onet.pl> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:82030 Archived-At: > Date: Sun, 15 Dec 2013 21:32:12 +0100 > From: Jarek Czekalski > > Some analyzis done: > > 1. shell-command uses libexec\emacs\24.3.50\i686-pc-mingw32\cmdproxy.exe > and this proxy locates files in the current directory. Side note: it > ignores exec-path and uses only system PATH variable cmdproxy emulates a shell, so it does what every shell would: ignore exec-path (which is an Emacs feature, unknown to other programs), and use PATH. > 2. call-process does not run programs from the current directory (a new bug) It's not a bug. Again, please keep in mind that each buffer in Emacs has its own "current directory". > Now the Stefan's suggestion: > > > Completion should mirror the behavior of the code that spawns the > > process > > , which seemed perfectly at the beginning, makes less sense. Which > code's behaviour should be copied? > > I guess first call-process should be fixed to include the current > directory, then its behaviour may be copied. I suggest to stay focused on the issue at hand: completion of executable files. If we extend the issue to how executables are found by call-process, cmdproxy, shell-command, etc., we will just add unneeded complexity. > Any suggestions in which direction to go? Maybe the simplest consing > exec-path is still an option? No, it is not. Again, let's stay focused on completion.