Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin@cygwin.com
From: Shankar Unni <shankarunni@netscape.net>
Subject: [Slightly OT] Re: Cygwin crashed by emacs???
Date: Mon, 15 Dec 2003 11:48:16 -0800
Lines: 21
Message-ID: <brl361$8s4$1@sea.gmane.org>
References: <16335.33230.746614.383398@labrador.csnet.cs.odu.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
X-Complaints-To: usenet@sea.gmane.org
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4
X-Accept-Language: en-us, en
In-Reply-To: <16335.33230.746614.383398@labrador.csnet.cs.odu.edu>

Steven J. Zeil wrote:

> I've tried to modify the function in files.el to expand the list of
> illegal characters. Unfortunately, files.el is one of the
> "pre-compiled" Lisp files - the only way to change it is, AFAIK, to
> recompile emacs.

Not true. There are several ways you can deal with this:

* Load your modified file explicitly in your .emacs. This will override 
the built-in copy.  You can even byte-compile the modified copy and load 
*that* instead.
* You can even just redefine "file-truecopy()" in your .emacs to 
override the built-in definition of that one function (this is a giant 
hairball of a function, though, so this may not be good in the long run).

If you're doing the fix, instead of just hacking the list of illegal 
characters embedded in the body of the function, it would be nice to 
break out the list regular expression into a defvar outside the body, so 
that it can be setq'ed by anyone wanting to twiddle the chars. Better 
still, make it a configurable variable using defcustom..


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

