delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/15/14:48:35

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
To: cygwin AT cygwin DOT com
From: Shankar Unni <shankarunni AT netscape DOT 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 DOT 33230 DOT 746614 DOT 383398 AT labrador DOT csnet DOT cs DOT odu DOT edu>
Mime-Version: 1.0
X-Complaints-To: usenet AT sea DOT gmane DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019