summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTino Calancha <tino.calancha@gmail.com>2025-01-31 16:10:16 +0100
committerTino Calancha <tino.calancha@gmail.com>2025-01-31 16:14:03 +0100
commit2b696d4e2256e64064e1b87903c4e4b2b382156d (patch)
tree03f2846f2a6a2888b7f3c9df7345f43f65fd575f
parenta9b2979c20258b00c49f9932a5eac104bab1124e (diff)
Handle emacs-30 new obarray typeexternals/gnugo
This change fixes the following issues happening on initialization with emacs-30: gnugo-refresh: Wrong type argument: obarrayp, [nil nil nil nil nil nil nil nil nil nil ...] * gnugo.el: Use `obarray-make` when it is defined Suggested by: Tristan Cacqueray <tdecacqu@redhat.com>
-rw-r--r--gnugo.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnugo.el b/gnugo.el
index 0433439..37c9628 100644
--- a/gnugo.el
+++ b/gnugo.el
@@ -2208,7 +2208,7 @@ In this mode, keys do not self insert (see `gnugo-board-mode-map')."
(overlay-put ov 'display ")")
ov)))
(gnugo-put :mul '(1 . 1))
- (gnugo-put :obarray (make-vector 31 nil))
+ (gnugo-put :obarray (if (fboundp 'obarray-make) (obarray-make 31) (make-vector 31 nil)))
(add-to-invisibility-spec :nogrid))
;;;---------------------------------------------------------------------------