Variable: delete-frame-functions
delete-frame-functions is a variable defined in frame.c.
Value
nil
Documentation
Functions run before deleting a frame.
The functions are run with one arg, the frame to be deleted.
See delete-frame.
Note that functions in this list may be called just before the frame is
actually deleted, or some time later (or even both when an earlier function
in delete-frame-functions (indirectly) calls delete-frame
recursively).
Probably introduced at or before Emacs version 22.1.
Source Code
// Defined in /usr/src/emacs/src/frame.c
DEFVAR_LISP ("delete-frame-functions", Vdelete_frame_functions,
doc: /* Functions run before deleting a frame.
The functions are run with one arg, the frame to be deleted.
See `delete-frame'.
Note that functions in this list may be called just before the frame is
actually deleted, or some time later (or even both when an earlier function
in `delete-frame-functions' (indirectly) calls `delete-frame'
recursively). */);