Menu

#4 Replace make-vector by obarray-make in Emacs 30.1

Unstable_(example)
open
emacs 30.1 (1)
5
2025-04-21
2025-04-19
No

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))

Discussion

  • Peter Selinger

    Peter Selinger - 2025-04-20

    Will this break support for Emacs versions prior to 30.1?

     
  • Nil Geisweiller

    Nil Geisweiller - 2025-04-20

    obarray-make has been introduced in Emacs 25.1.

     
  • Peter Selinger

    Peter Selinger - 2025-04-21

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.