Replace make-vector by obarray-make in Emacs 30.1
Status: Beta
Brought to you by:
selinger
Due to a change in Emacs 30.1, obarray must be constructed with obarray-make
instead of make-vector
, see https://www.gnu.org/savannah-checkouts/gnu/emacs/news/NEWS.30.1.
The following line
(defvar ps-ccrypt-temp-name-table (make-vector 31 nil))
should therefore be replaced by
(defvar ps-ccrypt-temp-name-table (obarray-make 31))
Will this break support for Emacs versions prior to 30.1?
obarray-make
has been introduced in Emacs 25.1.Great, thanks for the clarification. According to the documentation, (make-vector 31 0) should be both backward and forward compatible. That change was already made with https://sourceforge.net/p/ccrypt/bugs/30/, though I haven't yet made a release since then.