diff options
| author | Juanma Barranquero | 2011-05-10 12:31:33 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-05-10 12:31:33 +0200 |
| commit | 2f142cc515f795f22c96464d97b28a7d8226c578 (patch) | |
| tree | 97a5e127537d13b3006de3711f142cc317cff170 /src | |
| parent | b8bd6c8db8b1bb0b38c0827ecc7029521087470e (diff) | |
| download | emacs-2f142cc515f795f22c96464d97b28a7d8226c578.tar.gz emacs-2f142cc515f795f22c96464d97b28a7d8226c578.zip | |
src/image.c (Finit_image_library): Return t for built-in image types (bug#8640).
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/image.c | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6f70908caae..f7010859baa 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-05-10 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * image.c (Finit_image_library): Return t for built-in image types, | ||
| 4 | like pbm and xbm. (Bug#8640) | ||
| 5 | |||
| 1 | 2011-05-09 Andreas Schwab <schwab@linux-m68k.org> | 6 | 2011-05-09 Andreas Schwab <schwab@linux-m68k.org> |
| 2 | 7 | ||
| 3 | * w32menu.c (set_frame_menubar): Fix submenu allocation. | 8 | * w32menu.c (set_frame_menubar): Fix submenu allocation. |
diff --git a/src/image.c b/src/image.c index 747142635af..23da03b6264 100644 --- a/src/image.c +++ b/src/image.c | |||
| @@ -8609,6 +8609,10 @@ of `dynamic-library-alist', which see). */) | |||
| 8609 | return XCDR (tested); | 8609 | return XCDR (tested); |
| 8610 | #endif | 8610 | #endif |
| 8611 | 8611 | ||
| 8612 | /* Types pbm and xbm are built-in and always available. */ | ||
| 8613 | if (EQ (type, Qpbm) || EQ (type, Qxbm)) | ||
| 8614 | return Qt; | ||
| 8615 | |||
| 8612 | #if defined (HAVE_XPM) || defined (HAVE_NS) | 8616 | #if defined (HAVE_XPM) || defined (HAVE_NS) |
| 8613 | if (EQ (type, Qxpm)) | 8617 | if (EQ (type, Qxpm)) |
| 8614 | return CHECK_LIB_AVAILABLE (&xpm_type, init_xpm_functions, libraries); | 8618 | return CHECK_LIB_AVAILABLE (&xpm_type, init_xpm_functions, libraries); |
| @@ -8641,10 +8645,8 @@ of `dynamic-library-alist', which see). */) | |||
| 8641 | 8645 | ||
| 8642 | #if defined (HAVE_IMAGEMAGICK) | 8646 | #if defined (HAVE_IMAGEMAGICK) |
| 8643 | if (EQ (type, Qimagemagick)) | 8647 | if (EQ (type, Qimagemagick)) |
| 8644 | { | 8648 | return CHECK_LIB_AVAILABLE (&imagemagick_type, init_imagemagick_functions, |
| 8645 | return CHECK_LIB_AVAILABLE (&imagemagick_type, init_imagemagick_functions, | 8649 | libraries); |
| 8646 | libraries); | ||
| 8647 | } | ||
| 8648 | #endif | 8650 | #endif |
| 8649 | 8651 | ||
| 8650 | #ifdef HAVE_GHOSTSCRIPT | 8652 | #ifdef HAVE_GHOSTSCRIPT |