From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: matt Newsgroups: gmane.emacs.help Subject: Re: eshell - win32 - executable files Date: Sun, 19 Jan 2003 07:04:54 GMT Organization: AT&T Broadband Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3E2A23F0.70904@XXnetscape.net> References: <3E29A4AD.2080101@XXnetscape.net> <87ptqtn0c2.fsf@alice.dynodns.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1042959905 10442 80.91.224.249 (19 Jan 2003 07:05:05 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 19 Jan 2003 07:05:05 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18a9Vv-0002i7-00 for ; Sun, 19 Jan 2003 08:05:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18a9WS-0001qs-07 for gnu-help-gnu-emacs@m.gmane.org; Sun, 19 Jan 2003 02:05:36 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn11feed!wn12feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc52.ops.asp.att.net.POSTED!not-for-mail User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20021120 Netscape/7.01 X-Accept-Language: en-us, en Original-Newsgroups: gnu.emacs.help Original-Lines: 41 Original-NNTP-Posting-Host: 12.234.129.60 Original-X-Complaints-To: abuse@attbi.com Original-X-Trace: rwcrnsc52.ops.asp.att.net 1042959894 12.234.129.60 (Sun, 19 Jan 2003 07:04:54 GMT) Original-NNTP-Posting-Date: Sun, 19 Jan 2003 07:04:54 GMT Original-Xref: shelby.stanford.edu gnu.emacs.help:109170 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5694 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5694 John Wiegley wrote: >>>>>>On Sat Jan 18, matt writes: >>>>> > >>This may be something that I need to do in the Windows registry, >>but... How can I specify which files are executable. On a windows >>system there are the normal ones like .exe, .bat, .com, etc. What I >>want to do is to tell emacs that another type of file is >>executable, so that I can just type the filename and have it >>execute like any other command. Specifically, a perl script. I want >>to be able to execute say "myscript.pl" without having to type: >>perl path_to_script/myscript.pl. I have the file association set in >>explorer, and the path to the script is in my path. I can execute >>it in cmd.exe by typing myscript.pl, but not in eshell. > > >>Any ideas? > > > Configure the variable `eshell-binary-suffixes'. > > John Thanks John. How do I do that? What I've done is not working. I found 'eshell-binary-suffixes' in esh-ext.el, looks like this: (defcustom eshell-binary-suffixes (if (eshell-under-windows-p) '(".exe" ".com" ".bat" ".cmd" "") '("")) "*A list of suffixes used when searching for executable files." I added ".pl" to the list. I tried load-file, load-library, and emacs-lisp-byte-compile-and-load. No luck. Is there somewhere else I should be setting this? Thanks -- Matt -- Remove the X's to reply directly.