diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2005-09-15 14:02:34 +0000 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2005-09-15 14:02:34 +0000 |
commit | 5b51c03716d7c487d1c2336df2a76a6417a2343c (patch) | |
tree | d3d3f03db74bd66fbf2cca1aefdb8ea9db3b2bc4 /lispref/display.texi | |
parent | 979f56ac3e4d931ae16461626db304fdb7bb139f (diff) | |
download | emacs-5b51c03716d7c487d1c2336df2a76a6417a2343c.tar.gz |
Document `image-load-path'.
Diffstat (limited to 'lispref/display.texi')
-rw-r--r-- | lispref/display.texi | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/lispref/display.texi b/lispref/display.texi index b6348800fad..96aa2335a6a 100644 --- a/lispref/display.texi +++ b/lispref/display.texi @@ -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 |