]> code.delx.au - gnu-emacs/blobdiff - lisp/image.el
File regenerated.
[gnu-emacs] / lisp / image.el
index f08db3879b11971795bbabffb88ecbb2a12786bc..e4c2387d78e3a86b0e89fd74d1ae211bebe16b55 100644 (file)
@@ -36,7 +36,7 @@
     ("\\`GIF8" . gif)
     ("\\`\211PNG\r\n" . png)
     ("\\`[\t\n\r ]*#define" . xbm)
-    ("\\`\\(MM\0\\*\\)\\|\\(II\\*\0\\)" . tiff)
+    ("\\`\\(MM\0\\*\\|II\\*\0\\)" . tiff)
     ("\\`[\t\n\r ]*%!PS" . postscript)
     ("\\`\xff\xd8" . (image-jpeg-p . jpeg)))
   "Alist of (REGEXP . IMAGE-TYPE) pairs used to auto-detect image types.
@@ -64,7 +64,7 @@ a non-nil value, TYPE is the image's type ")
            (when (and (>= code #xe0) (<= code #xef))
              ;; APP0 LEN1 LEN2 "JFIF\0"
              (throw 'jfif 
-                    (string-match "JFIF" (substring data i nbytes))))
+                    (string-match "JFIF" (substring data i (+ i nbytes)))))
            (setq i (+ i 1 nbytes))))))))