changeset 32907:9e6ba99c8d53

(Fdelete_frame): Run delete-frame-hook.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 26 Oct 2000 11:59:18 +0000
parents 9bffa6f30b0b
children 7c15ab25a62c
files src/frame.c
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/frame.c	Thu Oct 26 09:39:10 2000 +0000
+++ b/src/frame.c	Thu Oct 26 11:59:18 2000 +0000
@@ -1169,6 +1169,14 @@
     error ("Attempt to delete the only frame");
 #endif
 
+  if (!NILP (Vrun_hooks))
+    {
+      Lisp_Object args[2];
+      args[0] = intern ("delete-frame-hook");
+      args[1] = frame;
+      Frun_hook_with_args (2, args);
+    }
+
   /* Does this frame have a minibuffer, and is it the surrogate
      minibuffer for any other frame?  */
   if (FRAME_HAS_MINIBUF_P (XFRAME (frame)))