branch: gnugo
commit 2b696d4e2256e64064e1b87903c4e4b2b382156d
Author: Tino Calancha <tino.calan...@gmail.com>
Commit: Tino Calancha <tino.calan...@gmail.com>

    Handle emacs-30 new obarray type
    
    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 <tdeca...@redhat.com>
---
 gnugo.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gnugo.el b/gnugo.el
index 0433439fd7..37c9628db7 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))
 
 ;;;---------------------------------------------------------------------------

Reply via email to