Mercurial > emacs
comparison lispref/display.texi @ 90228:fa0da9b57058
Revision: miles@gnu.org--gnu-2005/emacs--unicode--0--patch-82
Merge from emacs--cvs-trunk--0
Patches applied:
* emacs--cvs-trunk--0 (patch 542-553)
- Update from CVS
- Merge from gnus--rel--5.10
* gnus--rel--5.10 (patch 116-121)
- Merge from emacs--cvs-trunk--0
- Update from CVS
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 19 Sep 2005 10:20:33 +0000 |
parents | 10fe5fadaf89 bae76b0c6f5e |
children | b1c1fc853d2f |
comparison
equal
deleted
inserted
replaced
90227:10fe5fadaf89 | 90228:fa0da9b57058 |
---|---|
3944 image from, and @var{data} is a string containing the actual image data. | 3944 image from, and @var{data} is a string containing the actual image data. |
3945 The first specification in the list whose @var{type} is supported, and | 3945 The first specification in the list whose @var{type} is supported, and |
3946 @var{file} exists, is used to construct the image specification to be | 3946 @var{file} exists, is used to construct the image specification to be |
3947 returned. If no specification is satisfied, @code{nil} is returned. | 3947 returned. If no specification is satisfied, @code{nil} is returned. |
3948 | 3948 |
3949 The image is looked for first on @code{load-path} and then in | 3949 The image is looked for in @code{image-load-path}. |
3950 @code{data-directory}. | 3950 @end defun |
3951 @end defun | 3951 |
3952 @defvar image-load-path | |
3953 @tindex image-load-path | |
3954 This variable's value is a list of locations in which to search for | |
3955 image files. If an element is a string or a variable symbol whose | |
3956 value is a string, the string is taken to be the name of a directory | |
3957 to search. If an element is a variable symbol whose value is a list, | |
3958 that is taken to be a list of directory names to search. | |
3959 | |
3960 The default is to search in the @file{images} subdirectory of the | |
3961 directory specified by @code{data-directory}, then the directory | |
3962 specified by @code{data-directory}, and finally in the directories in | |
3963 @code{load-path}. Subdirectories are not automatically included in | |
3964 the search, so if you put an image file in a subdirectory, you have to | |
3965 supply the subdirectory name explicitly. For example, to find the | |
3966 image @file{images/foo/bar.xpm} within @code{data-directory}, you | |
3967 should specify the image as follows: | |
3968 | |
3969 @example | |
3970 (defimage foo-image '((:type xpm :file "foo/bar.xpm"))) | |
3971 @end example | |
3972 @end defvar | |
3952 | 3973 |
3953 @node Showing Images | 3974 @node Showing Images |
3954 @subsection Showing Images | 3975 @subsection Showing Images |
3955 | 3976 |
3956 You can use an image descriptor by setting up the @code{display} | 3977 You can use an image descriptor by setting up the @code{display} |