Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , 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 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 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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/