|--==> "RC" == Rick Campbell <rick(a)campbellcentral.org> writes:
RC> I just finished building 21.4.2 on my home machine (Slackware 7.0).
RC> Despite every indication that it should be supporting images, the only
RC> real image support that I've seen is X-Face stuff via mh-e. Visiting
RC> an image file and using image-toggle-decoding never does anything
RC> close to showing an image.
,----[ put this in ~/.xemacs/init.el (or .emacs) ]
| ;:*=======================
| ;:* Image formats
| (add-to-list 'format-alist
| '(image/jpeg "JPEG image" "\377\330\377\340\000\020JFIF"
| image-decode-jpeg nil t image-mode))
| (add-to-list 'format-alist
| '(image/gif "GIF image" "GIF8[79]"
| image-decode-gif nil t image-mode))
| (add-to-list 'format-alist
| '(image/png "Portable Network Graphics" "\211PNG"
| image-decode-png nil t image-mode))
| ;; XPM files are C program text, and as such should not
| ;; be autodecoded by default. Uncomment if you like.
| ;(add-to-list 'format-alist
| ; '(image/x-xpm "XPM image" "/\\* XPM \\*/"
| ; image-decode-xpm nil t image-mode))
| (add-to-list 'format-alist
| '(image/tiff "TIFF image" "II\\*\000"
| image-decode-tiff nil t image-mode)) ;; TIFF 6.0 big-endian
| (add-to-list 'format-alist
| '(image/tiff "TIFF image" "MM\000\\*"
| image-decode-tiff nil t image-mode)) ;; TIFF 6.0 little-endian
`----
--
|---<Steve Youngs>---------------<GnuPG KeyID: 9E7E2820>---|
| XEmacs - It's not just an editor. |
| It's a way of life. |
|------------------------------------<youngs(a)xemacs.org>---|