From: Eli Zaretskii Date: Sat, 24 Feb 2024 07:21:35 +0000 (+0200) Subject: ; * etc/NEWS: How to fix old code that uses vectors as obarrays. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b41ee85525c1dcf163911dea011625ad9ffaf0e3;p=emacs.git ; * etc/NEWS: How to fix old code that uses vectors as obarrays. (cherry picked from commit 15b6d72599b961ebe23e820e44ba2ffc12e49c31) --- diff --git a/etc/NEWS b/etc/NEWS index 96759669914..dbfff86727a 100644 --- a/etc/NEWS +++ b/etc/NEWS @@ -2181,6 +2181,14 @@ The old vector representation is still accepted by functions operating on obarrays, but 'obarrayp' only returns 't' for obarray objects. 'type-of' now returns 'obarray' for obarray objects. +If you have code which creates obarrays as a simple Lisp vector: + + (make-vector N nil) + +and then calls 'intern' using such an obarray as second argument, this +will now signal a wrong-type-argument error; replace nil with zero to +make it work again. + +++ *** New function 'obarray-clear' removes all symbols from an obarray.