Commit d30a05d1 authored by Juri Linkov's avatar Juri Linkov

(image-type-header-regexps): Use only JPEG magic number

to determine JPEG images, and don't use `image-jpeg-p' because
Emacs can display non-JFIF non-Exif JPEG images.
parent e15f58f8
2009-08-28 Juri Linkov <juri@jurta.org>
* files.el (magic-fallback-mode-alist): Add ZIP magic number
associated with `archive-mode'.
* image.el (image-type-header-regexps): Use only JPEG magic number
to determine JPEG images, and don't use `image-jpeg-p' because
Emacs can display non-JFIF non-Exif JPEG images.
2009-08-28 Juanma Barranquero <lekktu@gmail.com> 2009-08-28 Juanma Barranquero <lekktu@gmail.com>
* arc-mode.el (archive-mode): * arc-mode.el (archive-mode):
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
static \\(unsigned \\)?char \\1_bits" . xbm) static \\(unsigned \\)?char \\1_bits" . xbm)
("\\`\\(?:MM\0\\*\\|II\\*\0\\)" . tiff) ("\\`\\(?:MM\0\\*\\|II\\*\0\\)" . tiff)
("\\`[\t\n\r ]*%!PS" . postscript) ("\\`[\t\n\r ]*%!PS" . postscript)
("\\`\xff\xd8" . (image-jpeg-p . jpeg)) ("\\`\xff\xd8" . jpeg) ; used to be (image-jpeg-p . jpeg)
(,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)") (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)")
(comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\r\n]*<\\)"))) (comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\r\n]*<\\)")))
(concat "\\(?:<\\?xml[ \t\r\n]+[^>]*>\\)?[ \t\r\n]*<" (concat "\\(?:<\\?xml[ \t\r\n]+[^>]*>\\)?[ \t\r\n]*<"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment