diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2006-12-19 16:42:54 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2006-12-19 16:42:54 +0000 |
commit | 4753bc508505c4af506afe114876dbb0d7961681 (patch) | |
tree | d6a19e3c8bdd008f8372114825ed91ea95d690c2 /lisp/image.el | |
parent | 48740f0158791429e76a0117c65c270ec966108f (diff) | |
download | emacs-4753bc508505c4af506afe114876dbb0d7961681.tar.gz |
(image-type-header-regexps): Be more specific detecting `pbm' and `png' files.
Use non-capturing parenthesis for `tiff' regexp.
Diffstat (limited to 'lisp/image.el')
-rw-r--r-- | lisp/image.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/image.el b/lisp/image.el index b388396ded7..c50be757564 100644 --- a/lisp/image.el +++ b/lisp/image.el @@ -35,11 +35,11 @@ (defconst image-type-header-regexps '(("\\`/[\t\n\r ]*\\*.*XPM.\\*/" . xpm) - ("\\`P[1-6]" . pbm) + ("\\`P[1-6][[:space:]]+\\(?:#.*[[:space:]]+\\)*[0-9]+[[:space:]]+[0-9]+" . pbm) ("\\`GIF8" . gif) - ("\\`\211PNG\r\n" . png) + ("\\`\x89PNG\r\n\x1a\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. |