unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Reitter <david.reitter@gmail.com>
Subject: Re: Intercepting windowClosed (OS X or in general)
Date: Wed, 4 May 2005 21:57:37 +0000 (UTC)	[thread overview]
Message-ID: <loom.20050504T235046-916@post.gmane.org> (raw)
In-Reply-To: 8764xzq4b0.fsf-monnier+gnu.emacs.help@gnu.org

Stefan Monnier  writes:

> > 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.
> 
> delete-frame-hook, maybe?

Thanks, but I assume this would be fired when a frame is deleted automatically, 
too. I think there's a function to check if it was a mouse event, right?

But I found an easier way - that is to redefine handle-delete-frame to do what 
I want.

Works. (For now, at least.)

Oh, is there a list of *all* hooks somewhere? This delete-frame-hook is not 
listed on the "standard hooks" page of the elisp manual. Or, search 
documentation for .*-hooks? ?

  reply	other threads:[~2005-05-04 21:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.464.1115054139.2819.help-gnu-emacs@gnu.org>
2005-05-03 23:26 ` Intercepting windowClosed (OS X or in general) Stefan Monnier
2005-05-04 21:57   ` David Reitter [this message]
2005-05-05 17:18     ` Kevin Rodgers
     [not found]   ` <mailman.3349.1115245914.2819.help-gnu-emacs@gnu.org>
2005-05-06  3:30     ` Stefan Monnier
2005-05-06  9:26       ` Thien-Thi Nguyen
2005-05-02 11:16 David Reitter
2005-05-02 19:05 ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20050504T235046-916@post.gmane.org \
    --to=david.reitter@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).