diff options
| author | Eli Zaretskii | 2024-02-10 09:28:11 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-02-10 09:28:11 +0200 |
| commit | 6195a57b8e8ebff4eaaf4ff8d62719cbd55f579f (patch) | |
| tree | cbca348309ead28d234aec494de96cbe28f2cf2f /lisp | |
| parent | e7d1b12878ed83ad8c6995d8443f3367750ff0c9 (diff) | |
| download | emacs-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.el | 15 | ||||
| -rw-r--r-- | lisp/image.el | 26 |
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 | ||
| 318 | If non-nil, it should be a list of image specifications that will be | 318 | If non-nil, it should be a list of image specifications to be passed |
| 319 | given as first argument to `find-image', which see. Then, in case of a | 319 | as the first argument to `find-image', which see. Then, if the display |
| 320 | graphical display, the specified Gnus logo will be displayed as part of | 320 | is capable of showing images, the Gnus logo will be displayed as part of |
| 321 | the buffer-identification in the mode-line of Gnus-buffers. | 321 | the buffer-identification in the mode-line of Gnus-buffers. |
| 322 | 322 | ||
| 323 | If nil, no logo will be displayed." | 323 | If 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 | ||
| 764 | SPECS is a list of image specifications. | 764 | SPECS is a list of image specifications. |
| 765 | 765 | ||
| 766 | Each image specification in SPECS is a property list. The contents of | 766 | Each image specification in SPECS is a property list. The |
| 767 | a specification are image type dependent. All specifications must at | 767 | contents of a specification are image type dependent; see the |
| 768 | least contain either the property `:file FILE' or `:data DATA', | 768 | info node `(elisp)Image Descriptors' for details. All specifications |
| 769 | where FILE is the file to load the image from, and DATA is a string | 769 | must at least contain either the property `:file FILE' or `:data DATA', |
| 770 | containing the actual image data. If the property `:type TYPE' is | 770 | where FILE is the file from which to load the image, and DATA is a |
| 771 | omitted or nil, try to determine the image type from its first few | 771 | string containing the actual image data. If the property `:type TYPE' |
| 772 | is omitted or nil, try to determine the image type from its first few | ||
| 772 | bytes of image data. If that doesn't work, and the property `:file | 773 | bytes of image data. If that doesn't work, and the property `:file |
| 773 | FILE' provide a file name, use its file extension as image type. | 774 | FILE' provide a file name, use its file extension as idication of the |
| 774 | If `:type TYPE' is provided, it must match the actual type | 775 | image type. If `:type TYPE' is provided, it must match the actual type |
| 775 | determined for FILE or DATA by `create-image'. Return nil if no | 776 | determined for FILE or DATA by `create-image'. |
| 776 | specification is satisfied. | 777 | |
| 778 | The function returns the image specification for the first specification | ||
| 779 | in the list whose TYPE is supported and FILE, if specified, exists. It | ||
| 780 | returns nil if no specification in the list can be satisfied. | ||
| 777 | 781 | ||
| 778 | If CACHE is non-nil, results are cached and returned on subsequent calls. | 782 | If CACHE is non-nil, results are cached and returned on subsequent calls. |
| 779 | 783 | ||