summaryrefslogtreecommitdiff
path: root/lisp/image.el
diff options
context:
space:
mode:
authorJuri Linkov <juri@jurta.org>2009-08-28 23:49:32 +0000
committerJuri Linkov <juri@jurta.org>2009-08-28 23:49:32 +0000
commitd30a05d164446adde5d3c00798b2945891f09df6 (patch)
tree6c6efcffae146c50d1327711143c05abc85f22d0 /lisp/image.el
parente15f58f871d90d1bdbbeb907bc81d85f29ae0b13 (diff)
downloademacs-d30a05d164446adde5d3c00798b2945891f09df6.tar.gz
(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.
Diffstat (limited to 'lisp/image.el')
-rw-r--r--lisp/image.el2
1 files changed, 1 insertions, 1 deletions
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 @@
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]*<"