[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pkg 2821ca31ae 20/76: Use packages instead of obarrays in obarray.el
From: |
Gerd Moellmann |
Subject: |
pkg 2821ca31ae 20/76: Use packages instead of obarrays in obarray.el |
Date: |
Fri, 21 Oct 2022 00:16:10 -0400 (EDT) |
branch: pkg
commit 2821ca31aeb88459835bc48822e7bfa252287842
Author: Gerd Möllmann <gerd@gnu.org>
Commit: Gerd Möllmann <gerd@gnu.org>
Use packages instead of obarrays in obarray.el
---
lisp/obarray.el | 11 ++++-------
1 file changed, 4 insertions(+), 7 deletions(-)
diff --git a/lisp/obarray.el b/lisp/obarray.el
index dd62de01a8..243ab39a77 100644
--- a/lisp/obarray.el
+++ b/lisp/obarray.el
@@ -32,19 +32,15 @@
(defun obarray-make (&optional size)
"Return a new obarray of size SIZE or `obarray-default-size'."
- (let ((size (or size obarray-default-size)))
- (if (< 0 size)
- (make-vector size 0)
- (signal 'wrong-type-argument '(size 0)))))
+ (make-package "obarray"))
(defun obarray-size (ob)
"Return the number of slots of obarray OB."
- (length ob))
+ obarray-default-size)
(defun obarrayp (object)
"Return t if OBJECT is an obarray."
- (and (vectorp object)
- (< 0 (length object))))
+ (packagep object))
;; Don’t use obarray as a variable name to avoid shadowing.
(defun obarray-get (ob name)
@@ -67,4 +63,5 @@ Return t on success, nil otherwise."
(mapatoms fn ob))
(provide 'obarray)
+
;;; obarray.el ends here
- branch pkg created (now a93ec52542), Gerd Moellmann, 2022/10/21
- pkg 02e1214f23 06/76: More stuff in pkg.c, Gerd Moellmann, 2022/10/21
- pkg 2821ca31ae 20/76: Use packages instead of obarrays in obarray.el,
Gerd Moellmann <=
- pkg 7ecfc3ca69 13/76: Can now pdump, Gerd Moellmann, 2022/10/21
- pkg b3cdb8a3d3 11/76: Intern keywords differently, Gerd Moellmann, 2022/10/21
- pkg 47a2e75c1c 07/76: Read symbols differently, Gerd Moellmann, 2022/10/21
- pkg b5c199b118 08/76: Check for keywords differently, Gerd Moellmann, 2022/10/21
- pkg bb6b5db2b7 24/76: Dpn't assume symbol-name of keywords starts with colon, Gerd Moellmann, 2022/10/21
- pkg c025885c33 41/76: symbol-name returning ':' for keywords, Gerd Moellmann, 2022/10/21
- pkg 8561667124 33/76: Handle packages in completion, Gerd Moellmann, 2022/10/21
- pkg df9417ac57 66/76: Remove Lisp_Symbol::external, Gerd Moellmann, 2022/10/21
- pkg 85bd8cfcdb 18/76: Mapping over symbols in a package, mapatoms, Gerd Moellmann, 2022/10/21
- pkg 62c7059adc 19/76: Initialize package system earlier, Gerd Moellmann, 2022/10/21