Skip to content
Weak references for Emacs Lisp
Emacs Lisp
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Emacs Lisp Weak References

This package provides two functions:

  • weak-ref : Creates a weak reference to an object
  • weak-deref : Access the object behind a weak reference

See it in action:

(setq ref (weak-ref (list 1 2 3)))
(weak-deref ref) ; => (1 2 3)
(weak-deref ref) ; => nil

It's build on top of the weak references provided by hash tables.

You can’t perform that action at this time.