diff options
| author | Basil L. Contovounesios | 2024-02-29 16:21:05 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2024-02-29 16:25:26 +0100 |
| commit | 093c2e1ab9db5e0309bf9bbb5deb9a7dcbad6267 (patch) | |
| tree | 357c39fb429a66f8870b5afd155a6f5d88c9f414 | |
| parent | 39239982403f01a37d42d1cd8db0b2ed0b48b50c (diff) | |
| download | emacs-093c2e1ab9db5e0309bf9bbb5deb9a7dcbad6267.tar.gz emacs-093c2e1ab9db5e0309bf9bbb5deb9a7dcbad6267.zip | |
; Fix some wording in recent obarray changes.
| -rw-r--r-- | doc/lispref/symbols.texi | 2 | ||||
| -rw-r--r-- | lisp/obarray.el | 9 |
2 files changed, 6 insertions, 5 deletions
diff --git a/doc/lispref/symbols.texi b/doc/lispref/symbols.texi index 5207ea4ea7b..6f9b1ef0ec7 100644 --- a/doc/lispref/symbols.texi +++ b/doc/lispref/symbols.texi | |||
| @@ -231,7 +231,7 @@ Emacs Lisp provides a different namespacing system called | |||
| 231 | This function creates and returns a new obarray. | 231 | This function creates and returns a new obarray. |
| 232 | The optional @var{size} may be used to specify the number of symbols | 232 | The optional @var{size} may be used to specify the number of symbols |
| 233 | that it is expected to hold, but since obarrays grow automatically | 233 | that it is expected to hold, but since obarrays grow automatically |
| 234 | as needed, this rarely provide any benefit. | 234 | as needed, this rarely provides any benefit. |
| 235 | @end defun | 235 | @end defun |
| 236 | 236 | ||
| 237 | @defun obarrayp object | 237 | @defun obarrayp object |
diff --git a/lisp/obarray.el b/lisp/obarray.el index e6e51c1382a..5e646db9ab7 100644 --- a/lisp/obarray.el +++ b/lisp/obarray.el | |||
| @@ -29,10 +29,11 @@ | |||
| 29 | 29 | ||
| 30 | (defconst obarray-default-size 4) | 30 | (defconst obarray-default-size 4) |
| 31 | (make-obsolete-variable 'obarray-default-size | 31 | (make-obsolete-variable 'obarray-default-size |
| 32 | "obarrays now grow automatically" "30.1") | 32 | "obarrays now grow automatically." "30.1") |
| 33 | 33 | ||
| 34 | (defun obarray-size (_ob) obarray-default-size) | 34 | (defun obarray-size (_ob) |
| 35 | (make-obsolete 'obarray-size "obarrays now grow automatically" "30.1") | 35 | (declare (obsolete "obarrays now grow automatically." "30.1")) |
| 36 | obarray-default-size) | ||
| 36 | 37 | ||
| 37 | ;; Don’t use obarray as a variable name to avoid shadowing. | 38 | ;; Don’t use obarray as a variable name to avoid shadowing. |
| 38 | (defun obarray-get (ob name) | 39 | (defun obarray-get (ob name) |
| @@ -42,7 +43,7 @@ Return nil otherwise." | |||
| 42 | 43 | ||
| 43 | (defun obarray-put (ob name) | 44 | (defun obarray-put (ob name) |
| 44 | "Return symbol named NAME from obarray OB. | 45 | "Return symbol named NAME from obarray OB. |
| 45 | Creates and adds the symbol if doesn't exist." | 46 | Creates and adds the symbol if it doesn't exist." |
| 46 | (intern name ob)) | 47 | (intern name ob)) |
| 47 | 48 | ||
| 48 | (defun obarray-remove (ob name) | 49 | (defun obarray-remove (ob name) |