comparison lispref/display.texi @ 65560:9007bcbba781

(Defining Images): Clean up previous change.
author Richard M. Stallman <rms@gnu.org>
date Sat, 17 Sep 2005 04:59:58 +0000
parents 6759056e7603
children bae76b0c6f5e
comparison
equal deleted inserted replaced
65559:02ea691fea58 65560:9007bcbba781
3954 This variable's value is a list of locations in which to search for 3954 This variable's value is a list of locations in which to search for
3955 image files. If an element is a string, it is taken to be the name of 3955 image files. If an element is a string, it is taken to be the name of
3956 a directory to search. If an element is a variable symbol, the value 3956 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. 3957 of that variable is used as a list of directories to search.
3958 3958
3959 The default is to search in @file{@code{data-directory}/images}, then 3959 The default is to search in the @file{images} subdirectory of the
3960 in @code{data-directory}, and finally in the directories specified by 3960 directory specified by @code{data-directory}, then the directory
3961 specified by @code{data-directory}, and finally in the directories in
3961 @code{load-path}. Subdirectories are not automatically included in 3962 @code{load-path}. Subdirectories are not automatically included in
3962 the search, so if you put an image file in a subdirectory, you have to 3963 the search, so if you put an image file in a subdirectory, you have to
3963 supply the subdirectory name explicitly. For example, if you put an 3964 supply the subdirectory name explicitly. For example, to find the
3964 image file @file{bar.xpm} in @file{@code{data-directory}/images/foo/}, 3965 image @file{images/foo/bar.xpm} within @code{data-directory} you
3965 you should define the image as: 3966 should specify the image as follows:
3966 3967
3967 @example 3968 @example
3968 (defimage foo-image '((:type xpm :file "foo/bar.xpm"))) 3969 (defimage foo-image '((:type xpm :file "foo/bar.xpm")))
3969 @end example 3970 @end example
3970 @end defvar 3971 @end defvar
3971 3972
3972 @node Showing Images 3973 @node Showing Images
3973 @subsection Showing Images 3974 @subsection Showing Images