]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix some wording in recent obarray changes.
authorBasil L. Contovounesios <basil@contovou.net>
Thu, 29 Feb 2024 15:21:05 +0000 (16:21 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 2 Mar 2024 06:31:26 +0000 (07:31 +0100)
(cherry picked from commit 093c2e1ab9db5e0309bf9bbb5deb9a7dcbad6267)

doc/lispref/symbols.texi
lisp/obarray.el

index 5207ea4ea7bfa8e7ee6cc06c2aa98cf1b5c3be40..6f9b1ef0ec702f48f4728c24239f602926eaae72 100644 (file)
@@ -231,7 +231,7 @@ Emacs Lisp provides a different namespacing system called
 This function creates and returns a new obarray.
 The optional @var{size} may be used to specify the number of symbols
 that it is expected to hold, but since obarrays grow automatically
-as needed, this rarely provide any benefit.
+as needed, this rarely provides any benefit.
 @end defun
 
 @defun obarrayp object
index e6e51c1382a216a7f5fa86848194aae959a168c2..5e646db9ab76f2093f46b5068c0c19a61c5ff5d3 100644 (file)
 
 (defconst obarray-default-size 4)
 (make-obsolete-variable 'obarray-default-size
-                        "obarrays now grow automatically" "30.1")
+                        "obarrays now grow automatically." "30.1")
 
-(defun obarray-size (_ob) obarray-default-size)
-(make-obsolete 'obarray-size "obarrays now grow automatically" "30.1")
+(defun obarray-size (_ob)
+  (declare (obsolete "obarrays now grow automatically." "30.1"))
+  obarray-default-size)
 
 ;; Don’t use obarray as a variable name to avoid shadowing.
 (defun obarray-get (ob name)
@@ -42,7 +43,7 @@ Return nil otherwise."
 
 (defun obarray-put (ob name)
   "Return symbol named NAME from obarray OB.
-Creates and adds the symbol if doesn't exist."
+Creates and adds the symbol if it doesn't exist."
   (intern name ob))
 
 (defun obarray-remove (ob name)