> Regarding the event loop crashes, I looked at the code a bit and I > can't see where anything is wrong with the timer handling. Emacs > should be running with one thread, so add scheduling and > invalidation should be correct. Can you remember if a common factor > in the crashes is the use of one or more popup dialogs during the > run prior to the crash? The only thing I can think of here is that > there could be some funny business with the modal and nonmodal run > loops. Otherwise, you could try uncommenting the assertion in > ns_select(). Note that all of the crashes occurred with 23.1, but I don't think you've changed / fixed anything in that area since then -? As a common factor I can only say that I wasn't doing anything on the Emacs side. I actually remember working with other apps and maybe switching back to an Emacs window. I've added an assert() (in the Aquamacs master branch). Maybe we'll get some bug reports this way. - D