all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Intercepting windowClosed (OS X or in general)
Date: Thu, 05 May 2005 23:30:22 -0400	[thread overview]
Message-ID: <87mzr9jao2.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mailman.3349.1115245914.2819.help-gnu-emacs@gnu.org

>> 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?

I'm not sure what you mean by "automatically", but if you only want to catch
the "press the delete button in the WM", then try to change the binding for
the delete-frame event in special-event-map (defaults to
handle-delete-frame).

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

That's less elegant.

> Oh, is there a list of *all* hooks somewhere?

It's an ill-defined concept, there's an infinity of hooks.

> This delete-frame-hook is not  listed on the "standard hooks" page of the
> elisp manual. Or, search  documentation for .*-hooks? ?

I found the above one with M-x apropos RET frame.*hook RET


        Stefan

  parent reply	other threads:[~2005-05-06  3:30 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
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 [this message]
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

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

  git send-email \
    --in-reply-to=87mzr9jao2.fsf-monnier+gnu.emacs.help@gnu.org \
    --to=monnier@iro.umontreal.ca \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.