[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Intercepting windowClosed (OS X or in general)
From: |
Kevin Rodgers |
Subject: |
Re: Intercepting windowClosed (OS X or in general) |
Date: |
Mon, 02 May 2005 13:05:46 -0600 |
User-agent: |
Mozilla Thunderbird 0.9 (X11/20041105) |
David Reitter wrote:
> how would one intercept handling of windowClosed events, that is, when
> a user clicks the closer button to delete a frame. I would ideally
> like to advise a function to do something special or use a hook.
See the "Misc(ellaneous Window System) Events" node of the Emacs Lisp
manual:
| A few other event types represent occurrences within the window
| ystem.
|
| (delete-frame (FRAME))'
| This kind of event indicates that the user gave the window manager
| a command to delete a particular window, which happens to be an
| Emacs frame.
|
| The standard definition of the `delete-frame' event is to delete
| FRAME.
--
Kevin Rodgers