aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2009-08-28 23:49:32 +0000
committerJuri Linkov2009-08-28 23:49:32 +0000
commitd30a05d164446adde5d3c00798b2945891f09df6 (patch)
tree6c6efcffae146c50d1327711143c05abc85f22d0
parente15f58f871d90d1bdbbeb907bc81d85f29ae0b13 (diff)
downloademacs-d30a05d164446adde5d3c00798b2945891f09df6.tar.gz
emacs-d30a05d164446adde5d3c00798b2945891f09df6.zip
(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.
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/image.el2
2 files changed, 10 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d7a132584ac..0784ea8cc2b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,12 @@
12009-08-28 Juri Linkov <juri@jurta.org>
2
3 * files.el (magic-fallback-mode-alist): Add ZIP magic number
4 associated with `archive-mode'.
5
6 * image.el (image-type-header-regexps): Use only JPEG magic number
7 to determine JPEG images, and don't use `image-jpeg-p' because
8 Emacs can display non-JFIF non-Exif JPEG images.
9
12009-08-28 Juanma Barranquero <lekktu@gmail.com> 102009-08-28 Juanma Barranquero <lekktu@gmail.com>
2 11
3 * arc-mode.el (archive-mode): 12 * arc-mode.el (archive-mode):
diff --git a/lisp/image.el b/lisp/image.el
index 076a969a363..92e7560a9ca 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -43,7 +43,7 @@
43static \\(unsigned \\)?char \\1_bits" . xbm) 43static \\(unsigned \\)?char \\1_bits" . xbm)
44 ("\\`\\(?:MM\0\\*\\|II\\*\0\\)" . tiff) 44 ("\\`\\(?:MM\0\\*\\|II\\*\0\\)" . tiff)
45 ("\\`[\t\n\r ]*%!PS" . postscript) 45 ("\\`[\t\n\r ]*%!PS" . postscript)
46 ("\\`\xff\xd8" . (image-jpeg-p . jpeg)) 46 ("\\`\xff\xd8" . jpeg) ; used to be (image-jpeg-p . jpeg)
47 (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)") 47 (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)")
48 (comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\r\n]*<\\)"))) 48 (comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\r\n]*<\\)")))
49 (concat "\\(?:<\\?xml[ \t\r\n]+[^>]*>\\)?[ \t\r\n]*<" 49 (concat "\\(?:<\\?xml[ \t\r\n]+[^>]*>\\)?[ \t\r\n]*<"