3956 |
a directory to search. If an element is a variable symbol, the value |
a directory to search. If an element is a variable symbol, the value |
3957 |
of that variable is used as a list of directories to search. |
of that variable is used as a list of directories to search. |
3958 |
|
|
3959 |
The default is to search in @file{@code{data-directory}/images}, then |
The default is to search in the @file{images} subdirectory of the |
3960 |
in @code{data-directory}, and finally in the directories specified by |
directory specified by @code{data-directory}, then the directory |
3961 |
|
specified by @code{data-directory}, and finally in the directories in |
3962 |
@code{load-path}. Subdirectories are not automatically included in |
@code{load-path}. Subdirectories are not automatically included in |
3963 |
the search, so if you put an image file in a subdirectory, you have to |
the search, so if you put an image file in a subdirectory, you have to |
3964 |
supply the subdirectory name explicitly. For example, if you put an |
supply the subdirectory name explicitly. For example, to find the |
3965 |
image file @file{bar.xpm} in @file{@code{data-directory}/images/foo/}, |
image @file{images/foo/bar.xpm} within @code{data-directory} you |
3966 |
you should define the image as: |
should specify the image as follows: |
3967 |
|
|
3968 |
@example |
@example |
3969 |
(defimage foo-image '((:type xpm :file "foo/bar.xpm"))) |
(defimage foo-image '((:type xpm :file "foo/bar.xpm"))) |
3970 |
@end example |
@end example |
3971 |
@end defvar |
@end defvar |
3972 |
|
|