From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: `delete-frame-hook' isn't defined Date: Sun, 29 Sep 2002 14:44:29 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1033325278 11747 127.0.0.1 (29 Sep 2002 18:47:58 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 29 Sep 2002 18:47:58 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17vj6j-00033L-00 for ; Sun, 29 Sep 2002 20:47:57 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17vjq3-0005yy-00 for ; Sun, 29 Sep 2002 21:34:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17vj6y-0001gG-00; Sun, 29 Sep 2002 14:48:12 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17vj3Q-0000o9-00 for emacs-devel@gnu.org; Sun, 29 Sep 2002 14:44:32 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17vj3O-0000nx-00 for emacs-devel@gnu.org; Sun, 29 Sep 2002 14:44:31 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17vj3O-0000nr-00 for emacs-devel@gnu.org; Sun, 29 Sep 2002 14:44:30 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 17vj3N-00030W-00; Sun, 29 Sep 2002 14:44:29 -0400 Original-To: jpw@shootybangbang.com In-reply-to: (message from John Paul Wallington on Sat, 28 Sep 2002 05:06:49 +0100) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:8231 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:8231 However, `delete-frame-hook' isn't presently defined as a variable. `delete-frame' does run the hook if you define it. Should it be defined? Yes, nowadays we may as well give it a defvar. One possible problem is that tooltips are frames that are deleted when they disappear. Users may not expect the hook to be run then. Hmm. Perhaps it should not be run for tooltip frames. Can you find a clean way to distinguish tooltip frames? Also, should it be renamed to `delete-frame-functions' because it is an abnormal hook ? Yes, definitely. It was a mistake to give it the name delete-frame-hook.