From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/finalizer-type.html | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 devdocs/elisp/finalizer-type.html (limited to 'devdocs/elisp/finalizer-type.html') diff --git a/devdocs/elisp/finalizer-type.html b/devdocs/elisp/finalizer-type.html new file mode 100644 index 00000000..1998c39f --- /dev/null +++ b/devdocs/elisp/finalizer-type.html @@ -0,0 +1,8 @@ +

Finalizer Type

A finalizer object helps Lisp code clean up after objects that are no longer needed. A finalizer holds a Lisp function object. When a finalizer object becomes unreachable after a garbage collection pass, Emacs calls the finalizer’s associated function object. When deciding whether a finalizer is reachable, Emacs does not count references from finalizer objects themselves, allowing you to use finalizers without having to worry about accidentally capturing references to finalized objects themselves.

Errors in finalizers are printed to *Messages*. Emacs runs a given finalizer object’s associated function exactly once, even if that function fails.

Function: make-finalizer function +

Make a finalizer that will run function. function will be called after garbage collection when the returned finalizer object becomes unreachable. If the finalizer object is reachable only through references from finalizer objects, it does not count as reachable for the purpose of deciding whether to run function. function will be run once per finalizer object.

+
+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/Finalizer-Type.html +

+
-- cgit v1.2.3