aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2005-05-27 13:17:50 +0000
committerJuanma Barranquero2005-05-27 13:17:50 +0000
commitc6d1b44698df6d501f4130e72887cb9fb25a3d1d (patch)
treea05490fea63438a022d13a4715e2228f30cf5b65
parent2a611c1a4f9b6c374c4ae304eb07bfebf58af114 (diff)
downloademacs-c6d1b44698df6d501f4130e72887cb9fb25a3d1d.tar.gz
emacs-c6d1b44698df6d501f4130e72887cb9fb25a3d1d.zip
(image-library-alist): Moved to image.c.
(image-type-available-p): Doc fix.
-rw-r--r--lisp/image.el16
1 files changed, 1 insertions, 15 deletions
diff --git a/lisp/image.el b/lisp/image.el
index ced73c8fb3a..b7b2d9988a8 100644
--- a/lisp/image.el
+++ b/lisp/image.el
@@ -48,20 +48,6 @@ IMAGE-TYPE must be a pair (PREDICATE . TYPE). PREDICATE is called
48with one argument, a string containing the image data. If PREDICATE returns 48with one argument, a string containing the image data. If PREDICATE returns
49a non-nil value, TYPE is the image's type.") 49a non-nil value, TYPE is the image's type.")
50 50
51;;;###autoload
52(defvar image-library-alist nil
53 "Alist of image types vs external libraries needed to display them.
54
55Each element is a list (IMAGE-TYPE LIBRARY...), where the car is a symbol
56representing a supported image type, and the rest are strings giving
57alternate filenames for the corresponding external libraries.
58
59Emacs tries to load the libraries in the order they appear on the
60list; if none is loaded, the running session of Emacs won't
61support the image type. Types 'pbm and 'xbm don't need to be
62listed; they're always supported.")
63;;;###autoload (put 'image-library-alist 'risky-local-variable t)
64
65(defun image-jpeg-p (data) 51(defun image-jpeg-p (data)
66 "Value is non-nil if DATA, a string, consists of JFIF image data. 52 "Value is non-nil if DATA, a string, consists of JFIF image data.
67We accept the tag Exif because that is the same format." 53We accept the tag Exif because that is the same format."
@@ -122,7 +108,7 @@ be determined."
122 108
123;;;###autoload 109;;;###autoload
124(defun image-type-available-p (type) 110(defun image-type-available-p (type)
125 "Value is non-nil if image type TYPE is available. 111 "Return non-nil if image type TYPE is available.
126Image types are symbols like `xbm' or `jpeg'." 112Image types are symbols like `xbm' or `jpeg'."
127 (and (fboundp 'init-image-library) 113 (and (fboundp 'init-image-library)
128 (init-image-library type image-library-alist))) 114 (init-image-library type image-library-alist)))