emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Image-conversion shims


From: Lars Ingebrigtsen
Subject: Re: Image-conversion shims
Date: Mon, 30 Sep 2019 15:42:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> I don't think I understand why we can't put the association in
> auto-mode-alist before running "gm convert".  Please elaborate why.

If we put (say) .webp into auto-mode-alist, but we can't read .webp
files, then image-mode will end up issuing an error when called on these
files.

Besides, what formats "gm convert" supports changes over time.  By
consulting it, auto-mode-alist will be automatically updated without us
having to do anything.

>> Uhm.  Perhaps map .wepb etc to a new image-mode-external that should
>> just be a mode that inherits from image-mode, but would do nothing if
>> the image-external-converter-mode has been toggled off?
>
> Not "do nothing", but display an error message saying this image
> format is unsupported, IMO.

Yup.  I meant "do nothing" in the image-mode context, which means "show
the data as raw bytes and signal an error".

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]