aboutsummaryrefslogtreecommitdiffstats
path: root/src/image.c
diff options
context:
space:
mode:
authorJuanma Barranquero2010-10-13 16:50:06 +0200
committerJuanma Barranquero2010-10-13 16:50:06 +0200
commit2e288d54f05ba6e72a227ed3857a8098ca585b50 (patch)
tree721182610fc404c5469c5dcf6375b0b95692fad5 /src/image.c
parentd0e0de31a6628cd38c69f555aebab0a49ff64418 (diff)
downloademacs-2e288d54f05ba6e72a227ed3857a8098ca585b50.tar.gz
emacs-2e288d54f05ba6e72a227ed3857a8098ca585b50.zip
Rename `image-library-alist' to `dynamic-library-alist'.
* etc/NEWS: Mention `dynamic-library-alist'. * lisp/image.el (image-library-alist): Declare as obsolete alias. (image-type-available-p): Use `dynamic-library-alist'. * lisp/term/w32-win.el (dynamic-library-alist): Use instead of `image-library-alist'. * nt/INSTALL: Refer to `dynamic-library-alist'. * src/image.c (Vimage_library_alist) (syms_of_image) <image-library-alist>: Move to src/emacs.c and rename. (lookup_image_type): Use Vdynamic_library_alist. (Finit_image_library): Doc fix. * src/emacs.c (Vdynamic_library_alist) (syms_of_emacs) <dynamic-library-alist>: Move from src/image.c and rename. Doc fix. * src/lisp.h (Vdynamic_library_alist): Declare extern.
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c29
1 files changed, 6 insertions, 23 deletions
diff --git a/src/image.c b/src/image.c
index 72cbad987f6..4b816ce5f9f 100644
--- a/src/image.c
+++ b/src/image.c
@@ -567,10 +567,6 @@ static struct image_type *image_types;
567 567
568Lisp_Object Vimage_types; 568Lisp_Object Vimage_types;
569 569
570/* An alist of image types and libraries that implement the type. */
571
572Lisp_Object Vimage_library_alist;
573
574/* Cache for delayed-loading image types. */ 570/* Cache for delayed-loading image types. */
575 571
576static Lisp_Object Vimage_type_cache; 572static Lisp_Object Vimage_type_cache;
@@ -645,7 +641,7 @@ lookup_image_type (Lisp_Object symbol)
645 struct image_type *type; 641 struct image_type *type;
646 642
647 /* We must initialize the image-type if it hasn't been already. */ 643 /* We must initialize the image-type if it hasn't been already. */
648 if (NILP (Finit_image_library (symbol, Vimage_library_alist))) 644 if (NILP (Finit_image_library (symbol, Vdynamic_library_alist)))
649 return 0; /* unimplemented */ 645 return 0; /* unimplemented */
650 646
651 for (type = image_types; type; type = type->next) 647 for (type = image_types; type; type = type->next)
@@ -1923,10 +1919,11 @@ mark_image_cache (struct image_cache *c)
1923 } 1919 }
1924 1920
1925/* Load a DLL implementing an image type. 1921/* Load a DLL implementing an image type.
1926 The `image-library-alist' variable associates a symbol, 1922 The argument LIBRARIES is usually the variable
1927 identifying an image type, to a list of possible filenames. 1923 `dynamic-library-alist', which associates a symbol, identifying
1924 an external DLL library, to a list of possible filenames.
1928 The function returns NULL if no library could be loaded for 1925 The function returns NULL if no library could be loaded for
1929 the given image type, or if the library was previously loaded; 1926 the given symbol, or if the library was previously loaded;
1930 else the handle of the DLL. */ 1927 else the handle of the DLL. */
1931static HMODULE 1928static HMODULE
1932w32_delayed_load (Lisp_Object libraries, Lisp_Object type) 1929w32_delayed_load (Lisp_Object libraries, Lisp_Object type)
@@ -8583,7 +8580,7 @@ Return non-nil if TYPE is a supported image type.
8583 8580
8584Image types pbm and xbm are prebuilt; other types are loaded here. 8581Image types pbm and xbm are prebuilt; other types are loaded here.
8585Libraries to load are specified in alist LIBRARIES (usually, the value 8582Libraries to load are specified in alist LIBRARIES (usually, the value
8586of `image-library-alist', which see). */) 8583of `dynamic-library-alist', which see). */)
8587 (Lisp_Object type, Lisp_Object libraries) 8584 (Lisp_Object type, Lisp_Object libraries)
8588{ 8585{
8589 Lisp_Object tested; 8586 Lisp_Object tested;
@@ -8659,20 +8656,6 @@ Each element of the list is a symbol for an image type, like 'jpeg or 'png.
8659To check whether it is really supported, use `image-type-available-p'. */); 8656To check whether it is really supported, use `image-type-available-p'. */);
8660 Vimage_types = Qnil; 8657 Vimage_types = Qnil;
8661 8658
8662 DEFVAR_LISP ("image-library-alist", &Vimage_library_alist,
8663 doc: /* Alist of image types vs external libraries needed to display them.
8664
8665Each element is a list (IMAGE-TYPE LIBRARY...), where the car is a symbol
8666representing a supported image type, and the rest are strings giving
8667alternate filenames for the corresponding external libraries.
8668
8669Emacs tries to load the libraries in the order they appear on the
8670list; if none is loaded, the running session of Emacs won't
8671support the image type. Types 'pbm and 'xbm don't need to be
8672listed; they are always supported. */);
8673 Vimage_library_alist = Qnil;
8674 Fput (intern_c_string ("image-library-alist"), Qrisky_local_variable, Qt);
8675
8676 DEFVAR_LISP ("max-image-size", &Vmax_image_size, 8659 DEFVAR_LISP ("max-image-size", &Vmax_image_size,
8677 doc: /* Maximum size of images. 8660 doc: /* Maximum size of images.
8678Emacs will not load an image into memory if its pixel width or 8661Emacs will not load an image into memory if its pixel width or