#1111259 lookup-el: looking up entries went fail by Wrong type argument: obarrayp, [nil ...]

#1111259#5
Date:
2025-08-16 07:34:58 UTC
From:
To:
Dear Maintainer,

I noticed lookup-pattern or lookup-region always failed on Emacs
after I updated my environment to trixie.
Error message is:

lookup-entries-cache-get: Wrong type argument: obarrayp, [nil nil nil nil nil nil nil nil nil nil ...]

I suspect that this is due to changes in Emacs 30.
I changed the code in lookup.el

(defconst lookup-obarray (make-vector 1511 nil))

to

(defconst lookup-obarray (make-vector 1511 0))

and it worked, but it seems that a few more modifications need to
keep compatibility with older versions of Emacs.