Date: Thu, 11 Apr 1996 12:20:42 +0200 (IST) From: Eli Zaretskii To: djgpp-workers AT delorie DOT com Subject: Emacs works under v2.0! Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Yes, that's true: the one and only bug that is known to me (that Emacs can't be used under v2.0 with the relocatable allocation package) is now solved! I was looking in the wrong direction all the time; I'm sorry for bugging others, mostly Morten and Charles, about what can happen in the dumped Emacs. The solution came within hours of the discovery that the same bug also happens in the pure undumped Emacs. Here is the scoop: amazingly enough, any library function that gets a pointer to a text in an Emacs buffer, cannot call `malloc', because GNU malloc can cause relocation of the buffer, which invalidates the passed pointer. And our `write' does just that when it writes to a text file. Since `write' will probably be fixed anyway in the future release, for the time being I just overloaded `__write' on src/msdos.c. If everything goes according to plan, you should see an Emacs pretest in a day or two that should build cleanly under v2.0, and v2 support should be part of the official Emacs 19.31 distribution. (Can you imagine to launch a compilation, or shell out to DOS, and see the results lightning-fast instead of waiting for Emacs to page itself out?) Yeee-haa!! Oh, and thanks to everybody who helped me with this.