aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2024-02-10 09:28:11 +0200
committerEli Zaretskii2024-02-10 09:28:11 +0200
commit6195a57b8e8ebff4eaaf4ff8d62719cbd55f579f (patch)
treecbca348309ead28d234aec494de96cbe28f2cf2f /lisp
parente7d1b12878ed83ad8c6995d8443f3367750ff0c9 (diff)
downloademacs-6195a57b8e8ebff4eaaf4ff8d62719cbd55f579f.tar.gz
emacs-6195a57b8e8ebff4eaaf4ff8d62719cbd55f579f.zip
; Improve documentation of a recent change in Gnus
* lisp/image.el (find-image): Doc fix. * lisp/gnus/gnus.el (gnus-mode-line-logo): Fix doc string and :type texts. Add :version. (Bug#68985)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/gnus.el15
-rw-r--r--lisp/image.el26
2 files changed, 23 insertions, 18 deletions
diff --git a/lisp/gnus/gnus.el b/lisp/gnus/gnus.el
index cf4c3f7841c..dab66b60205 100644
--- a/lisp/gnus/gnus.el
+++ b/lisp/gnus/gnus.el
@@ -313,18 +313,19 @@ be set in `.emacs' instead."
313 '((:type svg :file "gnus-pointer.svg" :ascent center) 313 '((:type svg :file "gnus-pointer.svg" :ascent center)
314 (:type xpm :file "gnus-pointer.xpm" :ascent center) 314 (:type xpm :file "gnus-pointer.xpm" :ascent center)
315 (:type xbm :file "gnus-pointer.xbm" :ascent center)) 315 (:type xbm :file "gnus-pointer.xbm" :ascent center))
316 "Gnus logo displayed in mode-line. 316 "Image spec for the Gnus logo to be displayed in mode-line.
317 317
318If non-nil, it should be a list of image specifications that will be 318If non-nil, it should be a list of image specifications to be passed
319given as first argument to `find-image', which see. Then, in case of a 319as the first argument to `find-image', which see. Then, if the display
320graphical display, the specified Gnus logo will be displayed as part of 320is capable of showing images, the Gnus logo will be displayed as part of
321the buffer-identification in the mode-line of Gnus-buffers. 321the buffer-identification in the mode-line of Gnus-buffers.
322 322
323If nil, no logo will be displayed." 323If nil, there will be no Gnus logo in the mode-line."
324 :group 'gnus-visual 324 :group 'gnus-visual
325 :type '(choice 325 :type '(choice
326 (repeat :tag "List of image specifications" (plist)) 326 (repeat :tag "List of Gnus logo image specifications" (plist))
327 (const :tag "No logo" nil))) 327 (const :tag "Don't display Gnus logo" nil))
328 :version "30.1")
328 329
329(defun gnus-mode-line-buffer-identification (line) 330(defun gnus-mode-line-buffer-identification (line)
330 (let* ((str (car-safe line)) 331 (let* ((str (car-safe line))
diff --git a/lisp/image.el b/lisp/image.el
index 73801f88d1e..2ebce59a98c 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -759,21 +759,25 @@ BUFFER nil or omitted means use the current buffer."
759 759
760;;;###autoload 760;;;###autoload
761(defun find-image (specs &optional cache) 761(defun find-image (specs &optional cache)
762 "Find an image, choosing one of a list of image specifications. 762 "Find an image that satisfies one of a list of image specifications.
763 763
764SPECS is a list of image specifications. 764SPECS is a list of image specifications.
765 765
766Each image specification in SPECS is a property list. The contents of 766Each image specification in SPECS is a property list. The
767a specification are image type dependent. All specifications must at 767contents of a specification are image type dependent; see the
768least contain either the property `:file FILE' or `:data DATA', 768info node `(elisp)Image Descriptors' for details. All specifications
769where FILE is the file to load the image from, and DATA is a string 769must at least contain either the property `:file FILE' or `:data DATA',
770containing the actual image data. If the property `:type TYPE' is 770where FILE is the file from which to load the image, and DATA is a
771omitted or nil, try to determine the image type from its first few 771string containing the actual image data. If the property `:type TYPE'
772is omitted or nil, try to determine the image type from its first few
772bytes of image data. If that doesn't work, and the property `:file 773bytes of image data. If that doesn't work, and the property `:file
773FILE' provide a file name, use its file extension as image type. 774FILE' provide a file name, use its file extension as idication of the
774If `:type TYPE' is provided, it must match the actual type 775image type. If `:type TYPE' is provided, it must match the actual type
775determined for FILE or DATA by `create-image'. Return nil if no 776determined for FILE or DATA by `create-image'.
776specification is satisfied. 777
778The function returns the image specification for the first specification
779in the list whose TYPE is supported and FILE, if specified, exists. It
780returns nil if no specification in the list can be satisfied.
777 781
778If CACHE is non-nil, results are cached and returned on subsequent calls. 782If CACHE is non-nil, results are cached and returned on subsequent calls.
779 783