From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Park Hays" Newsgroups: gmane.emacs.bugs Subject: ipython/executable-find returns nil in Emacs 22.1 on XP Date: Mon, 10 Sep 2007 20:42:29 -0600 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3991_5856416.1189478549738" X-Trace: sea.gmane.org 1189493968 9022 80.91.229.12 (11 Sep 2007 06:59:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 06:59:28 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 11 16:59:12 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IV7Cp-0007JG-Hh for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 16:59:11 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUziX-0001eC-EB for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Sep 2007 02:59:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUvhw-0006UB-Vj for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2007 22:42:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUvhv-0006TZ-Ek for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2007 22:42:32 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUvhv-0006TW-AJ for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2007 22:42:31 -0400 Original-Received: from wx-out-0506.google.com ([66.249.82.225]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IUvhu-00078n-U5 for bug-gnu-emacs@gnu.org; Mon, 10 Sep 2007 22:42:31 -0400 Original-Received: by wx-out-0506.google.com with SMTP id s7so1237802wxc for ; Mon, 10 Sep 2007 19:42:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=L33caq9YZCOf8pS77hYKRF19Y2f9ueaulr6Kg3qejas=; b=l1doo+J0tHGh7uEI0LAvBchyYMdv1+h2zafPHNkIc+zdK6vutJY0VHiSXS/hvkHvVTf9Wq1EEYCy4qYW9PR4Bnclk3ZJyBWYnsGE3g5DSZitp1T67W+2V/sE86r6BDewgsZdwPsZ6Hi3q5+PI5EJbfw5eyrlhgKfOwdE9Iqae28= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=jp7PHEWPosKab4c2O122IImy5gftAgWL7/YYwIQHSpbCSJIlVGhBFAjaSt8p7dDmbw9CT/Tl/G/9PivOEZT8fekNUxqLI51OjX8xJa+BOleDlFLfSzp1uP+UEl+zJkjlLqMgMSdWpR1mlE9DbTTo8VJttxWWRiGtNkT3ynhZlyY= Original-Received: by 10.90.95.11 with SMTP id s11mr11811371agb.1189478549743; Mon, 10 Sep 2007 19:42:29 -0700 (PDT) Original-Received: by 10.90.104.7 with HTTP; Mon, 10 Sep 2007 19:42:29 -0700 (PDT) X-Detected-Kernel: Linux 2.6 (newer, 2) X-Mailman-Approved-At: Tue, 11 Sep 2007 02:59:22 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16534 Archived-At: ------=_Part_3991_5856416.1189478549738 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Using Emacs 22.1 on Windows XP. Particular file which precipitates this is in ipython.el, revision 2275. The problem I'm experiencing is that the lisp which is, in effect, (executable-find "ipython") returns nil. When I go to the command prompt (cmd.exe) I type "ipython" and the correct behavior occurs--namely a python session with ipython starts. Therefore, I assert that my path variables are correct. I do not understand how executable-find goes about finding executables. However, I suspect the problem is that the actual file executed when I type "ipython" at the command prompt is named "ipython.py". XP has an environment variable called "PATHEXT", which contains a semicolon-delimited list of file extensions which are executed. I believe their is a corresponding registry entry which tells the system how to execute scripts. I don't know for certain, but I suspect a call to exec() will work correctly--that is, invoke the script with its appropriate interpreter. There is enough traffic on the newsgroup archives to suggest this may be the cause of many problems people experience when trying to use emacs with external applications. Or maybe it is just me :). I love GNU Emacs, and having it on WinXP has been a delight. Thanks for all your hard work! -Park ------=_Part_3991_5856416.1189478549738 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Using Emacs 22.1 on Windows XP.
Particular file which precipitates this is in ipython.el, revision 2275.

The problem I'm experiencing is that the lisp which is, in effect,
(executable-find "ipython")
returns nil.
When I go to the command prompt (cmd.exe) I type "ipython" and the correct behavior occurs--namely a python session with ipython starts.  Therefore, I assert that my path variables are correct.

I do not understand how executable-find goes about finding executables.  However, I suspect the problem is that the actual file executed when I type "ipython" at the command prompt is named "ipython.py ".  XP has an environment variable called "PATHEXT", which contains a semicolon-delimited list of file extensions which are executed.  I believe their is a corresponding registry entry which tells the system how to execute scripts.

I don't know for certain, but I suspect a call to exec() will work correctly--that is, invoke the script with its appropriate interpreter.

There is enough traffic on the newsgroup archives to suggest this may be the cause of many problems people experience when trying to use emacs with external applications.  Or maybe it is just me :).

I love GNU Emacs, and having it on WinXP has been a delight.  Thanks for all your hard work!

-Park
------=_Part_3991_5856416.1189478549738--