# HG changeset patch # User Richard M. Stallman # Date 1126933198 0 # Node ID 9007bcbba7813466be2dda9bea789eb87eb3d5cf # Parent 02ea691fea584da665886d66609a8bc7ee3058e8 (Defining Images): Clean up previous change. diff -r 02ea691fea58 -r 9007bcbba781 lispref/display.texi --- a/lispref/display.texi Sat Sep 17 04:59:02 2005 +0000 +++ b/lispref/display.texi Sat Sep 17 04:59:58 2005 +0000 @@ -3956,16 +3956,17 @@ 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 +The default is to search in the @file{images} subdirectory of the +directory specified by @code{data-directory}, then the directory +specified by @code{data-directory}, and finally in the directories in @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: +supply the subdirectory name explicitly. For example, to find the +image @file{images/foo/bar.xpm} within @code{data-directory} you +should specify the image as follows: @example - (defimage foo-image '((:type xpm :file "foo/bar.xpm"))) +(defimage foo-image '((:type xpm :file "foo/bar.xpm"))) @end example @end defvar