From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: Suggestions for corrections to executable.el - use of PATHEXT Date: Sat, 11 Sep 2004 14:40:01 +0300 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <01c497f4$Blat.v2.2.2$380b5e20@zahav.net.il> References: Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7BIT X-Trace: sea.gmane.org 1094902914 12867 80.91.224.253 (11 Sep 2004 11:41:54 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 11 Sep 2004 11:41:54 +0000 (UTC) Cc: lennart.borgman.073@student.lu.se, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 11 13:41:47 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 1C66GI-00057g-00 for ; Sat, 11 Sep 2004 13:41:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C66Lj-0000fL-33 for ged-emacs-devel@m.gmane.org; Sat, 11 Sep 2004 07:47:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C66LZ-0000fB-Ck for emacs-devel@gnu.org; Sat, 11 Sep 2004 07:47:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C66LX-0000eJ-Ay for emacs-devel@gnu.org; Sat, 11 Sep 2004 07:47:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C66LX-0000e9-6q for emacs-devel@gnu.org; Sat, 11 Sep 2004 07:47:11 -0400 Original-Received: from [192.114.186.15] (helo=balder.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C66G0-0005OT-7S for emacs-devel@gnu.org; Sat, 11 Sep 2004 07:41:28 -0400 Original-Received: from zaretski (pns03-205-146.inter.net.il [80.230.205.146]) by balder.inter.net.il (Mirapoint Messaging Server MOS 3.3.7-GR) with ESMTP id DUE86855 (AUTH halo1); Sat, 11 Sep 2004 14:41:18 +0300 (IDT) Original-To: Davis Herring X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: (message from Davis Herring on Fri, 10 Sep 2004 19:20:17 -0600 (MDT)) 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:27005 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27005 > Date: Fri, 10 Sep 2004 19:20:17 -0600 (MDT) > From: Davis Herring > Cc: Emacs Devel > > If I'm going to contribute, let's do it usefully. This is a patch against > the CVS `bindings.el' (where `executable-binary-suffixes' has migrated and > become `exec-suffixes'). I also have done my homework now and see that > 'cygwin is a valid `system-type', which means we don't need the ""s. Thanks. This is something for the Windows experts to respond; mine are just questions and superficial comments. First, I'm not sure we should look at PATHEXT. That variable is AFAIK looked at by the shell, so if we want Emacs behave _exactly_ like the shell does, we should at least look at the value of SHELL and/or ComSpec (and COMSPEC for older systems). I mean, what if the user's shell is Bash, which AFAIK doesn't look at PATHEXT at all? And if the shell is COMMAND.COM, then ".cmd" should not be in the list. Etc., etc. More generally, I'm not sure Emacs _should_ behave like a Windows shell. There's nothing wrong in expanding or improving on the shell's functionality, especially since Windows shells are not too smart, even on XP. For example, ".btm" is the extension of 4DOS and 4NT replacement shells; why shouldn't Emacs know about that, even if PATHEXT doesn't include it? As for Cygwin being part of the condition--do users of the Cygwin-compiled Emacs really want to disregard Windows batch files? If not, `cygwin' should be part of the condition.