delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/04/13:50:07

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
MIME-Version: 1.0
Message-ID: <16335.33230.746614.383398@labrador.csnet.cs.odu.edu>
Date: Thu, 4 Dec 2003 13:49:50 -0500
From: "Steven J. Zeil" <zeil AT cs DOT odu DOT edu>
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin crashed by emacs???

Since you say it occurs after modifying an ediff buffer, I suspect
it's related to a problem that has annoyed me for some time.


ediff is one of several emacs packages that produces buffers that
  1) aren't associated with an existing file, and
  2) are given names containing characters that cannot appear in 
      a Windows file name e.g., > <


If you modify one of these buffers, autosave will eventually try to
save it. Since there is no existing file, autosave tries to generate a
new file name.  It does this, in part, by replacing any illegal
characters in the buffer name by something else. However, the code in
the files.el function make-auto-save-file-name appears to only
consider the characters % / and " illegal. For CygWin, I think, this
list should be expanded to  include * ? > < | : and \

When ediff (or emerge or vm or ...) create a buffer with one of these
characters in the name and autosave actually tries to write out a file
with that name, emacs locks up - no response and no screen refresh. It
usually seems to come back after several seconds, but I can imagine
that, in some circumstances, the consequences could be worse.


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. And I have had no luck doing that with the gcc 3.x
compiler. (I can create temacs, but cannot dump that to create emacs.)
So I have no idea if my attempted modification actually works.




--
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