aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorMiles Bader2005-08-26 09:51:52 +0000
committerMiles Bader2005-08-26 09:51:52 +0000
commitd4cccb140682cfa548a8658f905764ceb4a38cb2 (patch)
tree5230af18ee25b37efed50fa38cac1eefb47d03fc /src/image.c
parent5e10f34207ff594cd6570928bc0292a7b53297b8 (diff)
parentf3f01d5df3156fb408b43da0c670796c37ed084f (diff)
downloademacs-d4cccb140682cfa548a8658f905764ceb4a38cb2.tar.gz
emacs-d4cccb140682cfa548a8658f905764ceb4a38cb2.zip
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-78
Merge from emacs--cvs-trunk--0 Patches applied: * emacs--cvs-trunk--0 (patch 514-518) - Update from CVS - Merge from gnus--rel--5.10 * gnus--rel--5.10 (patch 104-105) - Update from CVS
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c33
1 files changed, 18 insertions, 15 deletions
diff --git a/src/image.c b/src/image.c
index 928ec0437aa..3e8a62801b0 100644
--- a/src/image.c
+++ b/src/image.c
@@ -1,6 +1,6 @@
1/* Functions for image support on window system. 1/* Functions for image support on window system.
2 Copyright (C) 1989, 92, 93, 94, 95, 96, 97, 98, 99, 2000,01,02,03,04 2 Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
3 Free Software Foundation. 3 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
4 4
5This file is part of GNU Emacs. 5This file is part of GNU Emacs.
6 6
@@ -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,
@@ -8050,6 +8055,17 @@ listed; they're always supported. */);
8050 Vimage_type_cache = Qnil; 8055 Vimage_type_cache = Qnil;
8051 staticpro (&Vimage_type_cache); 8056 staticpro (&Vimage_type_cache);
8052 8057
8058 Qpbm = intern ("pbm");
8059 staticpro (&Qpbm);
8060 ADD_IMAGE_TYPE(Qpbm);
8061
8062 Qxbm = intern ("xbm");
8063 staticpro (&Qxbm);
8064 ADD_IMAGE_TYPE(Qxbm);
8065
8066 define_image_type (&xbm_type, 1);
8067 define_image_type (&pbm_type, 1);
8068
8053 QCascent = intern (":ascent"); 8069 QCascent = intern (":ascent");
8054 staticpro (&QCascent); 8070 staticpro (&QCascent);
8055 QCmargin = intern (":margin"); 8071 QCmargin = intern (":margin");
@@ -8094,14 +8110,6 @@ listed; they're always supported. */);
8094 staticpro (&QCpt_height); 8110 staticpro (&QCpt_height);
8095#endif /* HAVE_GHOSTSCRIPT */ 8111#endif /* HAVE_GHOSTSCRIPT */
8096 8112
8097 Qpbm = intern ("pbm");
8098 staticpro (&Qpbm);
8099 ADD_IMAGE_TYPE(Qpbm);
8100
8101 Qxbm = intern ("xbm");
8102 staticpro (&Qxbm);
8103 ADD_IMAGE_TYPE(Qxbm);
8104
8105#if defined (HAVE_XPM) || defined (MAC_OS) 8113#if defined (HAVE_XPM) || defined (MAC_OS)
8106 Qxpm = intern ("xpm"); 8114 Qxpm = intern ("xpm");
8107 staticpro (&Qxpm); 8115 staticpro (&Qxpm);
@@ -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 ();