# HG changeset patch # User Gerd Moellmann # Date 997174476 0 # Node ID 8b3c56aabe92b445a1c29ff68d09a1209583730d # Parent c12dcf78cf718d81a64036710205ca8c047acd37 (image-type-regexps): For JPEG files, use a regexp derived from the JPEG spec. diff -r c12dcf78cf71 -r 8b3c56aabe92 lisp/image.el --- a/lisp/image.el Tue Aug 07 08:03:42 2001 +0000 +++ b/lisp/image.el Tue Aug 07 08:54:36 2001 +0000 @@ -34,7 +34,8 @@ '(("\\`/\\*.*XPM.\\*/" . xpm) ("\\`P[1-6]" . pbm) ("\\`GIF8" . gif) - ("JFIF" . jpeg) + ;; The following is from JPEG File Interchange Format, Version 1.02. + ("\\`\xff\xd8\xff\xe0..JFIF\0" . jpeg) ("\\`\211PNG\r\n" . png) ("\\`#define" . xbm) ("\\`\\(MM\0\\*\\)\\|\\(II\\*\0\\)" . tiff)