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#11037: 24.0.94; gnutls-cli.exe program not found Date: Fri, 23 Mar 2012 10:01:35 +0200 Message-ID: <837gybwxsw.fsf@gnu.org> References: <20324.51427.389000.73278@gargle.gargle.HOWL> <83ehskwfwc.fsf@gnu.org> <20331.36724.77000.309313@gargle.gargle.HOWL> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1332489907 3375 80.91.229.3 (23 Mar 2012 08:05:07 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Mar 2012 08:05:07 +0000 (UTC) Cc: larsi@gnus.org, 11037@debbugs.gnu.org To: Uday S Reddy Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Mar 23 09:05:03 2012 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 1SAzUa-0000Ou-MO for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Mar 2012 09:05:00 +0100 Original-Received: from localhost ([::1]:33675 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAzUD-0008Tw-GT for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Mar 2012 04:04:37 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:45194) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAzU5-0008Tb-GK for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2012 04:04:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SAzTs-0002Bb-In for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2012 04:04:27 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SAzTs-0002BG-Fa for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2012 04:04:16 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SAzxe-0000zL-5J for bug-gnu-emacs@gnu.org; Fri, 23 Mar 2012 04:35:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Mar 2012 08:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11037 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11037-submit@debbugs.gnu.org id=B11037.13324916453723 (code B ref 11037); Fri, 23 Mar 2012 08:35:01 +0000 Original-Received: (at 11037) by debbugs.gnu.org; 23 Mar 2012 08:34:05 +0000 Original-Received: from localhost ([127.0.0.1]:34085 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SAzwU-0000xT-JX for submit@debbugs.gnu.org; Fri, 23 Mar 2012 04:34:05 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:57587) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SAzvi-0000wH-UP for 11037@debbugs.gnu.org; Fri, 23 Mar 2012 04:33:49 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0M1B00400VKFKB00@a-mtaout22.012.net.il> for 11037@debbugs.gnu.org; Fri, 23 Mar 2012 10:01:33 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.228.52.237]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0M1B003MJVMHBIY0@a-mtaout22.012.net.il>; Fri, 23 Mar 2012 10:01:33 +0200 (IST) In-reply-to: <20331.36724.77000.309313@gargle.gargle.HOWL> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:57996 Archived-At: > Date: Thu, 22 Mar 2012 20:45:40 +0000 > From: Uday S Reddy > Cc: Lars Magne Ingebrigtsen , > u.s.reddy@cs.bham.ac.uk, > 11037@debbugs.gnu.org > > I can verify that putting your binary of gnutls on system PATH worked fine > with Emacs 24. Great. > The basic bug report here was that Emacs couldn't find gnutls-cli.exe that > was available on exec-path. That was simply based on my misunderstanding of > where it is supposed to be found. Since the README.W32 file says that it > should be found during startup, it implies that it needs to be put on the > system PATH. > > Perhaps all that you need to do in response to this bug report is to add a > line in README.W32 to the effect that the binaries should be on system PATH, > to help out other dimwits like me. I will add that, but please note that this is in no way specific to Windows. There's a subtle difference between exec-path and PATH, in that exec-path is only used by Emacs's own code to find executables it runs directly. By contrast, PATH is used by external programs, system-level APIs, and the OS features in general. As an example, a program invoked through shell-command and its ilk _must_ be on PATH, because it's the shell that will look for it, not Emacs; Emacs only looks for the shell itself. Similarly, to load a dynamic library, Emacs uses system APIs, which use PATH and not exec-path. So if what you tried to accomplish needed either shell-command or loaded a DLL, exec-path will not help. (To keep your sanity, I suggest to always have exec-path derived from PATH, and not modify exec-path inside Emacs so that it deviates from PATH.)