On Nov 3, 2008, at 3:14 PM, Carsten Bormann wrote:

> On Nov 03 2008, at 18:57, Adrian Robert wrote:
>
>> a crash dialog from OS X
>
> As I mentioned a couple of messages earlier, you don't.
> It seems to me that ns_term_shutdown() simply ignores its argument  
> sig, so it always acts as if this was a clean shutdown.

If just fixing something in this function would do something better in  
this case, without harming other cases, that would certainly be better  
than modifying something in emacs.c.  At worst, a second function will  
need to be written to be called in different situations.

At the same time, there are still some bugs with OS X quit event  
handling -- see EmacsApp-applicationShouldTerminate: .  I haven't  
tried this out lately, but basically when you log out from OS X, but  
Emacs is running, this event gets sent to it, and there seem to be  
some problems with properly responding to it.

It would be nice to hit both of these paths at once, otherwise any fix  
is likely to introduce problems in the others.

Since not much of the external emacs or cocoa code needs to be  
understood to work on this, and since I've already tried and done a  
poor job of it, it might be a good area for someone else to try making  
a patch...  ;-)


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Emacs-app-dev- mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-

Reply via email to