Fix documentation of icon-elements

* lisp/emacs-lisp/icons.el (icon-elements): The plist key it returns
is `image', not `display'.  (Bug#68451)
This commit is contained in:
Daniel Martín 2024-01-14 15:36:16 +01:00 committed by Eli Zaretskii
parent 725a3f32f8
commit 78ddb32fad

View file

@ -164,7 +164,7 @@ If OBJECT is an icon, return the icon properties."
(defun icon-elements (name)
"Return the elements of icon NAME.
The elements are represented as a plist where the keys are
`string', `face' and `display'. The `image' element is only
`string', `face' and `image'. The `image' element is only
present if the icon is represented by an image."
(let ((string (icon-string name)))
(list 'face (get-text-property 0 'face string)