[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [h-e-w] Emacs 21.3

From: Peter Milliken
Subject: RE: [h-e-w] Emacs 21.3
Date: Mon, 31 Mar 2003 06:39:21 +1000

Hi David,

Mingw 2.4.1 according to the Cygwin setup app :-)

Thanks, this patch has fixed the problem - I will start "listening" on the
emacs-devel ML :-)

Hope everyone had a good weekend,

-----Original Message-----
From: David PONCE [mailto:address@hidden
Sent: Friday, March 28, 2003 10:29 PM
To: Peter Milliken
Cc: address@hidden
Subject: Re: [h-e-w] Emacs 21.3


> Just downloaded source and compiled using Cygwin tools. Be aware
> that if you have a largish collection of emacs utilities that you
> have gathered over the years, some of them will "break" Emacs quite
> severely i.e. "Abort, Retry or Ignore" type breakage :-)

Maybe are you using the mingw runtime 2.3 or 2.4?
There is a compatibility problem between that runtime and Emacs,
because of change in the way it handles binary vs. text IO mode.

Notice that the development version (in CVS) is affected too.

The following patch (discussed in the emacs-devel ML) fixed that
problem for me.

Hope it will help.


*** emacs.c.ori Thu Aug 29 21:27:07 2002
--- emacs.c     Thu Mar 27 16:29:58 2003
*** 40,45 ****
--- 40,49 ----
  #include <sys/ioctl.h>
+ #ifdef WINDOWSNT
+ #include <fcntl.h>
+ #endif
  #include "lisp.h"
  #include "commands.h"
  #include "intervals.h"
*** 874,884 ****
    uninterrupt_malloc ();
  #endif        /* not SYSTEM_MALLOC */
! #ifdef MSDOS
    /* We do all file input/output as binary files.  When we need to
       newlines, we do that manually.  */
    _fmode = O_BINARY;
  #if __DJGPP__ >= 2
    if (!isatty (fileno (stdin)))
      setmode (fileno (stdin), O_BINARY);
--- 878,890 ----
    uninterrupt_malloc ();
  #endif        /* not SYSTEM_MALLOC */
! #if defined (MSDOS) || defined (WINDOWSNT)
    /* We do all file input/output as binary files.  When we need to
       newlines, we do that manually.  */
    _fmode = O_BINARY;
+ #endif /* MSDOS || WINDOWSNT */
+ #ifdef MSDOS
  #if __DJGPP__ >= 2
    if (!isatty (fileno (stdin)))
      setmode (fileno (stdin), O_BINARY);

Warning:  Copyright ResMed.  Where the contents of this email and/or attachment 
includes materials prepared by ResMed, the use of those materials is subject 
exclusively to the conditions of engagement between ResMed and the intended 

This communication is confidential and may contain legally privileged 
information. By the use of email over the Internet or other communication 
systems, ResMed is not waiving either confidentiality of, or legal privilege 
in,the content of the email and of any attachments.
If the recipient of this message is not the intended addressee, please call 
ResMed immediately on  +61 2 9886 5000 Sydney, Australia.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]