aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-08-11 13:58:12 +0000
committerRichard M. Stallman2005-08-11 13:58:12 +0000
commit6e6fc3fd4b8195264bb64a70834d354cbbed98a0 (patch)
tree4c7ae58057afa88f08648ba07592d4721e617f42
parentbda2c1ffa105fbdc14731ad60a01a03a0c82d83d (diff)
downloademacs-6e6fc3fd4b8195264bb64a70834d354cbbed98a0.tar.gz
emacs-6e6fc3fd4b8195264bb64a70834d354cbbed98a0.zip
(syms_of_image): Init image_types here, and call define_image_type.
(init_image): Not here.
-rw-r--r--src/image.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/image.c b/src/image.c
index 98190d3381c..dfe592f3c14 100644
--- a/src/image.c
+++ b/src/image.c
@@ -8025,6 +8025,11 @@ syms_of_image ()
8025{ 8025{
8026 extern Lisp_Object Qrisky_local_variable; /* Syms_of_xdisp has already run. */ 8026 extern Lisp_Object Qrisky_local_variable; /* Syms_of_xdisp has already run. */
8027 8027
8028 /* Initialize this only once, since that's what we do with Vimage_types
8029 and they are supposed to be in sync. Initializing here gives correct
8030 operation on GNU/Linux of calling dump-emacs after loading some images. */
8031 image_types = NULL;
8032
8028 /* Must be defined now becase we're going to update it below, while 8033 /* Must be defined now becase we're going to update it below, while
8029 defining the supported image types. */ 8034 defining the supported image types. */
8030 DEFVAR_LISP ("image-types", &Vimage_types, 8035 DEFVAR_LISP ("image-types", &Vimage_types,
@@ -8033,6 +8038,9 @@ Each element of the list is a symbol for a image type, like 'jpeg or 'png.
8033To check whether it is really supported, use `image-type-available-p'. */); 8038To check whether it is really supported, use `image-type-available-p'. */);
8034 Vimage_types = Qnil; 8039 Vimage_types = Qnil;
8035 8040
8041 define_image_type (&xbm_type, 1);
8042 define_image_type (&pbm_type, 1);
8043
8036 DEFVAR_LISP ("image-library-alist", &Vimage_library_alist, 8044 DEFVAR_LISP ("image-library-alist", &Vimage_library_alist,
8037 doc: /* Alist of image types vs external libraries needed to display them. 8045 doc: /* Alist of image types vs external libraries needed to display them.
8038 8046
@@ -8163,11 +8171,6 @@ meaning don't clear the cache. */);
8163void 8171void
8164init_image () 8172init_image ()
8165{ 8173{
8166 image_types = NULL;
8167
8168 define_image_type (&xbm_type, 1);
8169 define_image_type (&pbm_type, 1);
8170
8171#ifdef MAC_OS 8174#ifdef MAC_OS
8172 /* Animated gifs use QuickTime Movie Toolbox. So initialize it here. */ 8175 /* Animated gifs use QuickTime Movie Toolbox. So initialize it here. */
8173 EnterMovies (); 8176 EnterMovies ();