delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/04/30/03:32:22

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
Message-ID: <409200E8.3090205@cs.ucsd.edu>
Date: Fri, 30 Apr 2004 00:31:52 -0700
From: Neil McCurdy <nemccurd AT cs DOT ucsd DOT edu>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
CC: Eric DOT Swenson AT am DOT sony DOT com
Subject: re: problem with cygwin emacs and revert-buffer
X-MailScanner: PASSED (v1.2.8 46402 i3U7Vsb7062085 mailbox6.ucsd.edu)

Hi Eric --

I just fought the same problem and was dismayed to find that you were 
the only one on google to encounter this.  I was forced to resolve it 
myself.  It turns out that the issue is with how emacs handles 
filesystems that are mounted as textmode.  I originally thought (as you 
found) that the issue was limited to revert-buffer, so I was just 
careful to always close and then reopen my files instead of using 
revert-buffer.  That's not the only place it happens, though, because I 
just had to deal with several of my source code files getting corrupted 
even though I avoided using revert-buffer.

Ok, so how to work around this problem?  Switch your filesystem to 
binmode.  I originally thought that this wasn't an option because I've 
always had trouble with cvs when I try to use binmode.  Turns out, 
though, that if you convert all of the files under your CVS directory to 
unix by using dos2unix, cvs works fine.  I don't think I have any other 
reason to run in textmode, so I'm making the switch.

There are two possible ways to make the switch. 
   1. When installing cygwin, select Unix as the Default Text File Type.
   2. Just mount your drives in binary mode (eg. mount -b c:\\ /c/)

Unless you do a complete reinstall of cygwin, you'll have to do the 2nd 
step anyway, I think.  If you type "mount" by itself, you want to see 
all drives mounted in binmode.

I hope that helps,and hopefully someone who knows how to fix emacs is 
reading this group.

Neil

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