Fix documentation of icon-elements
authorDaniel Martín <mardani29@yahoo.es>
Sun, 14 Jan 2024 14:36:16 +0000 (15:36 +0100)
committerEli Zaretskii <eliz@gnu.org>
Sun, 14 Jan 2024 15:03:16 +0000 (17:03 +0200)
* lisp/emacs-lisp/icons.el (icon-elements): The plist key it returns
is `image', not `display'.  (Bug#68451)

lisp/emacs-lisp/icons.el

index 1fc0e39f9fedd671dd4124a2fc7fbfe3da45ff03..f95916616887da3a28a7c6ac7a5f28f9b236339e 100644 (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)