[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#58002: 29.1: Sokoban: obsoletion warnings in gamegrid
From: |
Dieter Deyke |
Subject: |
bug#58002: 29.1: Sokoban: obsoletion warnings in gamegrid |
Date: |
Thu, 22 Sep 2022 14:29:45 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Mattias Engdegård <mattias.engdegard@gmail.com> writes:
> On Emacs master, starting Sokoban (from GNU ELPA) results in several warnings:
>
>> Warning (gamegrid): Using obsolete XEmacs style "glyph"; convert to an Emacs
>> image-spec instead
>
> which apparently is from
>
>> (defvar sokoban-target-options
>> `(((glyph
>> [xpm :data ,sokoban-target-xpm])
> [...]
>
> where (after some digging) it seems that the vector needs to be
>
> ((:type xpm :data ,sokoban-target-xpm :ascent center)))
>
> somewhat non-intuitively, because of the slightly alarming line
>
>> (find-image data)) ;untested!
>
> in gamegrid.el. Suggested patch attached.
> Is this all correct and as desired? Does it break anything when using old
> Emacs versions?
Thanks for your efforts, but that patch does not silence the warnings on
my system. It looks like more is needed, but I do not know how to fix
it.
--
Dieter Deyke
mailto:dieter.deyke@gmail.com
Get my Gnupg key:
gpg --keyserver keys.gnupg.net --recv-keys B116EA20