diff options
| author | Juanma Barranquero | 2006-12-19 16:42:54 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2006-12-19 16:42:54 +0000 |
| commit | 4753bc508505c4af506afe114876dbb0d7961681 (patch) | |
| tree | d6a19e3c8bdd008f8372114825ed91ea95d690c2 | |
| parent | 48740f0158791429e76a0117c65c270ec966108f (diff) | |
| download | emacs-4753bc508505c4af506afe114876dbb0d7961681.tar.gz emacs-4753bc508505c4af506afe114876dbb0d7961681.zip | |
(image-type-header-regexps): Be more specific detecting `pbm' and `png' files.
Use non-capturing parenthesis for `tiff' regexp.
| -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 @@ | |||
| 35 | 35 | ||
| 36 | (defconst image-type-header-regexps | 36 | (defconst image-type-header-regexps |
| 37 | '(("\\`/[\t\n\r ]*\\*.*XPM.\\*/" . xpm) | 37 | '(("\\`/[\t\n\r ]*\\*.*XPM.\\*/" . xpm) |
| 38 | ("\\`P[1-6]" . pbm) | 38 | ("\\`P[1-6][[:space:]]+\\(?:#.*[[:space:]]+\\)*[0-9]+[[:space:]]+[0-9]+" . pbm) |
| 39 | ("\\`GIF8" . gif) | 39 | ("\\`GIF8" . gif) |
| 40 | ("\\`\211PNG\r\n" . png) | 40 | ("\\`\x89PNG\r\n\x1a\n" . png) |
| 41 | ("\\`[\t\n\r ]*#define" . xbm) | 41 | ("\\`[\t\n\r ]*#define" . xbm) |
| 42 | ("\\`\\(MM\0\\*\\|II\\*\0\\)" . tiff) | 42 | ("\\`\\(?:MM\0\\*\\|II\\*\0\\)" . tiff) |
| 43 | ("\\`[\t\n\r ]*%!PS" . postscript) | 43 | ("\\`[\t\n\r ]*%!PS" . postscript) |
| 44 | ("\\`\xff\xd8" . (image-jpeg-p . jpeg))) | 44 | ("\\`\xff\xd8" . (image-jpeg-p . jpeg))) |
| 45 | "Alist of (REGEXP . IMAGE-TYPE) pairs used to auto-detect image types. | 45 | "Alist of (REGEXP . IMAGE-TYPE) pairs used to auto-detect image types. |