Kyle Jones <kyle_jones(a)wonderworks.com> writes:
> XEmacsen since 21.2.something don't auto-decode images.
There are
> reasons, I can't remember what they are, but there are reasons.
The variable format-alist is consulted by format-decode which is
call by insert-file-contents-internal, which is too low level for
such a high level operation like displaying an image. If we want to
display images visited with find-file, a find-file-hook should be
used or perhaps something on interpreter-mode-alist.
Well explained, and for the umpteenth time. This should be put in an
FAQ, on a very visible place.
Additionally, some of the C-x-C-f-should-display-image fans should
implement the needed find-file hook. It can't be that hard.
format-alist should be reserved for things that really are low-level
and involve encoding/decoding e.g. crypto or compression. It was a
mistake to have image display functions in format-alist and I don't
think those functions should ever be put back there.
A-men. I still remember the pain it was to edit an XPM file while
those functions were there.
C-x C-f foo.xpm RET -- the image gets displayed in the buffer
C-x C-i foo.xpm RET -- the image gets inserted in the buffer
M-x insert-file-contents-literally RET foo.xpm RET -- the image gets ...
...