1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

(image-type-regexps): For JPEG files, use a regexp

derived from the JPEG spec.
This commit is contained in:
Gerd Moellmann 2001-08-07 08:55:12 +00:00
parent 69ebef1d59
commit 1155d48351
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2001-08-07 Gerd Moellmann <gerd@gnu.org>
* image.el (image-type-regexps): For JPEG files, use a regexp
derived from the JPEG spec.
* image.el (image-type-regexps): Use `\`' instead of `^' in
most regular expressions.

View File

@ -34,7 +34,8 @@
'(("\\`/\\*.*XPM.\\*/" . xpm)
("\\`P[1-6]" . pbm)
("\\`GIF8" . gif)
("JFIF" . jpeg)
;; The following is from JPEG File Interchange Format, Version 1.02.
("\\`\xff\xd8\xff\xe0..JFIF\0" . jpeg)
("\\`\211PNG\r\n" . png)
("\\`#define" . xbm)
("\\`\\(MM\0\\*\\)\\|\\(II\\*\0\\)" . tiff)