]> git.eshelyaron.com Git - emacs.git/commitdiff
Document `image-load-path'.
authorChong Yidong <cyd@stupidchicken.com>
Thu, 15 Sep 2005 14:02:34 +0000 (14:02 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Thu, 15 Sep 2005 14:02:34 +0000 (14:02 +0000)
lispref/ChangeLog
lispref/display.texi

index 82cfcab46993652b4bc43e65353a83a1643cd864..3252e671c1169b3127dc0cab4ec3cbfb1c233aa7 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-15  Chong Yidong  <cyd@stupidchicken.com>
+
+       * display.texi (Defining Images): Document `image-load-path'.
+
 2005-09-15  Richard M. Stallman  <rms@gnu.org>
 
        * objects.texi (Printed Representation): Minor cleanup.
index b6348800fad287d1015ed17b86803a0d605fae26..96aa2335a6afc7b8f65bf5e888f59b8553a60ea5 100644 (file)
@@ -3946,10 +3946,29 @@ The first specification in the list whose @var{type} is supported, and
 @var{file} exists, is used to construct the image specification to be
 returned.  If no specification is satisfied, @code{nil} is returned.
 
-The image is looked for first on @code{load-path} and then in
-@code{data-directory}.
+The image is looked for in @code{image-load-path}.
 @end defun
 
+@defvar image-load-path
+@tindex image-load-path
+This variable's value is a list of locations in which to search for
+image files.  If an element is a string, it is taken to be the name of
+a directory to search.  If an element is a variable symbol, the value
+of that variable is used as a list of directories to search.
+
+The default is to search in @file{@code{data-directory}/images}, then
+in @code{data-directory}, and finally in the directories specified by
+@code{load-path}.  Subdirectories are not automatically included in
+the search, so if you put an image file in a subdirectory, you have to
+supply the subdirectory name explicitly.  For example, if you put an
+image file @file{bar.xpm} in @file{@code{data-directory}/images/foo/},
+you should define the image as:
+
+@example
+  (defimage foo-image '((:type xpm :file "foo/bar.xpm")))
+@end example
+@end defvar
+
 @node Showing Images
 @subsection Showing Images