]> git.eshelyaron.com Git - emacs.git/commitdiff
(image-type-header-regexps): Use only JPEG magic number
authorJuri Linkov <juri@jurta.org>
Fri, 28 Aug 2009 23:49:32 +0000 (23:49 +0000)
committerJuri Linkov <juri@jurta.org>
Fri, 28 Aug 2009 23:49:32 +0000 (23:49 +0000)
to determine JPEG images, and don't use `image-jpeg-p' because
Emacs can display non-JFIF non-Exif JPEG images.

lisp/ChangeLog
lisp/image.el

index d7a132584ac85a690456998165f8fb8fcad16dc4..0784ea8cc2ba19548556d02b3ca90b17baadf4ba 100644 (file)
@@ -1,3 +1,12 @@
+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>
 
        * arc-mode.el (archive-mode):
index 076a969a363cb67d0dd464e49f591558e0a38bc4..92e7560a9ca9eb2c11a9103c9a81b46a5120c77a 100644 (file)
@@ -43,7 +43,7 @@
 static \\(unsigned \\)?char \\1_bits" . xbm)
     ("\\`\\(?:MM\0\\*\\|II\\*\0\\)" . tiff)
     ("\\`[\t\n\r ]*%!PS" . postscript)
-    ("\\`\xff\xd8" . (image-jpeg-p . jpeg))
+    ("\\`\xff\xd8" . jpeg)    ; used to be (image-jpeg-p . jpeg)
     (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)")
             (comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\r\n]*<\\)")))
        (concat "\\(?:<\\?xml[ \t\r\n]+[^>]*>\\)?[ \t\r\n]*<"