From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Lennart Borgman" Newsgroups: gmane.emacs.devel Subject: Suggestions for corrections to executable.el - use of PATHEXT Date: Sat, 11 Sep 2004 02:05:15 +0200 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <002601c49796$49acb380$0200a8c0@sedrcw11488> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1094862509 14487 80.91.224.253 (11 Sep 2004 00:28:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Sep 2004 00:28:29 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 11 02:28:21 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C5vkb-0001GA-00 for ; Sat, 11 Sep 2004 02:28:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5vq0-0003Ry-5r for ged-emacs-devel@m.gmane.org; Fri, 10 Sep 2004 20:33:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C5vpq-0003Rs-7e for emacs-devel@gnu.org; Fri, 10 Sep 2004 20:33:46 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C5vpo-0003RO-Ew for emacs-devel@gnu.org; Fri, 10 Sep 2004 20:33:45 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C5vpo-0003RG-AW for emacs-devel@gnu.org; Fri, 10 Sep 2004 20:33:44 -0400 Original-Received: from [81.228.11.108] (helo=av1-2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C5vjy-00009U-Ti for emacs-devel@gnu.org; Fri, 10 Sep 2004 20:27:43 -0400 Original-Received: by av1-2-sn1.fre.skanova.net (Postfix, from userid 502) id 36AA137F0C; Sat, 11 Sep 2004 02:27:40 +0200 (CEST) Original-Received: from smtp3-2-sn1.fre.skanova.net (smtp3-2-sn1.fre.skanova.net [81.228.11.164]) by av1-2-sn1.fre.skanova.net (Postfix) with ESMTP id 2718437E5B for ; Sat, 11 Sep 2004 02:27:40 +0200 (CEST) Original-Received: from sedrcw11488 (t2o58p87.telia.com [62.20.165.87]) by smtp3-2-sn1.fre.skanova.net (Postfix) with SMTP id 4FC0037E45 for ; Sat, 11 Sep 2004 02:27:39 +0200 (CEST) Original-To: "Emacs Devel" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:26993 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26993 I believe there is an error in the definition of executable-binary-suffixes in the w32 part. The environment var PATHEXT is not taken into account and the order of the default suffixes is incorrect as far as I can see. There is also a suffix ".btm" I do not know about. This error is present in Emacs 21.3 and I do not know if it has been corrected in CVS. Below is my fix to this error: - Lennart ;; The PATHEXT environment variable defines the list of file ;; extensions checked by Windows NT when searching for an executable ;; file. Like the PATH variable, semi-colons separate individual items ;; in the PATHEXT variable. The default value of PATHEXT is ;; .COM;.EXE;.BAT;.CMD. (defvar executable-binary-suffixes (if (memq system-type '(ms-dos windows-nt)) (let ((pathext (getenv-internal "PATHEXT"))) (if (eq nil pathext) '(".com" ".exe" ".bat" ".cmd") (split-string pathext ";"))) '("")))