Make sure image types are initialized for lookup too
+2004-06-16 Miles Bader <miles@gnu.org>
+
+ * image.c (lookup_image_type): Initialize image type if necessary.
+
2004-06-15 Kim F. Storm <storm@cua.dk>
* xdisp.c (try_cursor_movement): Exclude header line from scroll
{
struct image_type *type;
+ /* We must initialize the image-type if it hasn't been already. */
+ if (NILP (Finit_image_library (symbol)))
+ return 0; /* unimplemented */
+
for (type = image_types; type; type = type->next)
if (EQ (symbol, *type->type))
break;