summaryrefslogtreecommitdiff
path: root/lisp/obarray.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/obarray.el')
-rw-r--r--lisp/obarray.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/lisp/obarray.el b/lisp/obarray.el
index aaffe00a072..a4631859925 100644
--- a/lisp/obarray.el
+++ b/lisp/obarray.el
@@ -37,6 +37,10 @@
(make-vector size 0)
(signal 'wrong-type-argument '(size 0)))))
+(defun obarray-size (obarray)
+ "Return the number of slots of OBARRAY."
+ (length obarray))
+
(defun obarrayp (object)
"Return t if OBJECT is an obarray."
(and (vectorp object)