+2001-08-07 Gerd Moellmann <gerd@gnu.org>
+
+ * image.el (image-type-regexps): Use `\`' instead of `^' in
+ most regular expressions.
+
2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
* play/animate.el: re-insert a reference to re-inserted function.
(defconst image-type-regexps
- '(("^/\\*.*XPM.\\*/" . xpm)
- ("^P[1-6]" . pbm)
- ("^GIF8" . gif)
+ '(("\\`/\\*.*XPM.\\*/" . xpm)
+ ("\\`P[1-6]" . pbm)
+ ("\\`GIF8" . gif)
("JFIF" . jpeg)
- ("^\211PNG\r\n" . png)
- ("^#define" . xbm)
- ("^\\(MM\0\\*\\)\\|\\(II\\*\0\\)" . tiff)
- ("^%!PS" . postscript))
+ ("\\`\211PNG\r\n" . png)
+ ("\\`#define" . xbm)
+ ("\\`\\(MM\0\\*\\)\\|\\(II\\*\0\\)" . tiff)
+ ("\\`%!PS" . postscript))
"Alist of (REGEXP . IMAGE-TYPE) pairs used to auto-detect image types.
When the first bytes of an image file match REGEXP, it is assumed to
be of image type IMAGE-TYPE.")