mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-26 07:33:47 +00:00
Make XEmacs compat code in gamegrid.el obsolete
* lisp/play/gamegrid.el (gamegrid-make-glyph): Warn on using obsolete XEmacs style glyph. (This is currently unused in the Emacs tree.) (gamegrid-make-image-from-vector): Make obsolete.
This commit is contained in:
parent
65ffb115b4
commit
59910c320a
@ -343,11 +343,17 @@ format."
|
||||
(gamegrid-colorize-glyph color))
|
||||
((listp data)
|
||||
(find-image data)) ;untested!
|
||||
((vectorp data)
|
||||
(gamegrid-make-image-from-vector data)))))
|
||||
;; Remove when `gamegrid-make-image-from-vector' is removed:
|
||||
((vectorp data)
|
||||
(lwarn 'gamegrid :warning
|
||||
"Using obsolete XEmacs style \"glyph\"; \
|
||||
convert to an Emacs image-spec instead")
|
||||
(with-suppressed-warnings ((obsolete gamegrid-make-image-from-vector))
|
||||
(gamegrid-make-image-from-vector data))))))
|
||||
|
||||
(defun gamegrid-make-image-from-vector (vect)
|
||||
"Convert an XEmacs style \"glyph\" to an image-spec."
|
||||
(declare (obsolete nil "29.1"))
|
||||
(let ((l (list 'image :type)))
|
||||
(dotimes (n (length vect))
|
||||
(setf l (nconc l (list (aref vect n)))))
|
||||
|
Loading…
Reference in New Issue
Block a user