diff options
| author | Miles Bader | 2004-06-16 02:45:09 +0000 |
|---|---|---|
| committer | Miles Bader | 2004-06-16 02:45:09 +0000 |
| commit | 803aac3efae5292143813cc0f8357bb0f7787615 (patch) | |
| tree | a566fb5023d57360579c954b95e3d160899d4523 /src | |
| parent | 93ff12809fd2b3d9a8b385e99f34edca762f8e38 (diff) | |
| download | emacs-803aac3efae5292143813cc0f8357bb0f7787615.tar.gz emacs-803aac3efae5292143813cc0f8357bb0f7787615.zip | |
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-410
Make sure image types are initialized for lookup too
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/image.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 96289d650a3..075ae902d22 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2004-06-16 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * image.c (lookup_image_type): Initialize image type if necessary. | ||
| 4 | |||
| 1 | 2004-06-15 Kim F. Storm <storm@cua.dk> | 5 | 2004-06-15 Kim F. Storm <storm@cua.dk> |
| 2 | 6 | ||
| 3 | * xdisp.c (try_cursor_movement): Exclude header line from scroll | 7 | * xdisp.c (try_cursor_movement): Exclude header line from scroll |
diff --git a/src/image.c b/src/image.c index 3eccf0f001e..438e132807f 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -689,6 +689,10 @@ lookup_image_type (symbol) | |||
| 689 | { | 689 | { |
| 690 | struct image_type *type; | 690 | struct image_type *type; |
| 691 | 691 | ||
| 692 | /* We must initialize the image-type if it hasn't been already. */ | ||
| 693 | if (NILP (Finit_image_library (symbol))) | ||
| 694 | return 0; /* unimplemented */ | ||
| 695 | |||
| 692 | for (type = image_types; type; type = type->next) | 696 | for (type = image_types; type; type = type->next) |
| 693 | if (EQ (symbol, *type->type)) | 697 | if (EQ (symbol, *type->type)) |
| 694 | break; | 698 | break; |