[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#56552: [PATCH] Make gnus display webp images inline
From: |
Lars Ingebrigtsen |
Subject: |
bug#56552: [PATCH] Make gnus display webp images inline |
Date: |
Thu, 14 Jul 2022 19:44:52 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
Stefan Kangas <stefan@marxist.se> writes:
>> `(("image/p?jpeg"
>> mm-inline-image
>> ,(lambda (handle)
>> - (mm-valid-and-fit-image-p 'jpeg handle)))
>> + (mm-valid-and-fit-image-p 'jpeg handle)))
>> + ("image/webp"
>> + mm-inline-image
>> + ,(lambda (handle)
>> + (mm-valid-and-fit-image-p 'webp handle)))
>> ("image/png"
>> mm-inline-image
>> ,(lambda (handle)
>
> Maybe this comment belongs in a separate wishlist item, but why isn't
> this all using the `image-file-name-regexp' function?
I think this code is this way for historical reasons -- different image
types were handled differently at one time (I think), but they now all
call `mm-valid-and-fit-image-p'. So, yes, it should all be rewritten.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no