Steve Youngs writes:
|--==> "JA" == Jani Averbach <jaa(a)cc.jyu.fi>
writes:
JA> Hi!
JA> I just compiling XEmacs 21.4.8, and found following:
JA> When i type
JA> C-x C-f foobar.jpg RET
JA> XEmacs allways open picture in raw mode (?). There is image
JA> in modeline. If I try hit 't' (image-toggle-decoding) it
JA> won't do anything.
JA> However there is gif, xpm, png, jpeg and tiff support
JA> compiled in XEmacs (by M-x build-report).
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. 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.