Mercurial > emacs
changeset 66196:2e59eea25fcf
* image.el (create-image, find-image): Mention max-image-size in
docstring.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Wed, 19 Oct 2005 03:55:20 +0000 |
parents | ad1acaef1abb |
children | 53c764d16ccf |
files | lisp/ChangeLog lisp/image.el |
diffstat | 2 files changed, 11 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ChangeLog Wed Oct 19 03:54:56 2005 +0000 +++ b/lisp/ChangeLog Wed Oct 19 03:55:20 2005 +0000 @@ -1,3 +1,8 @@ +2005-10-18 Chong Yidong <cyd@stupidchicken.com> + + * image.el (create-image, find-image): Mention max-image-size in + docstring. + 2005-10-18 Stefan Monnier <monnier@iro.umontreal.ca> * textmodes/conf-mode.el: Don't use font-lock-defaults-alist.
--- a/lisp/image.el Wed Oct 19 03:54:56 2005 +0000 +++ b/lisp/image.el Wed Oct 19 03:55:20 2005 +0000 @@ -135,7 +135,9 @@ Optional DATA-P non-nil means FILE-OR-DATA is a string containing image data. Optional PROPS are additional image attributes to assign to the image, like, e.g. `:mask MASK'. -Value is the image created, or nil if images of type TYPE are not supported." +Value is the image created, or nil if images of type TYPE are not supported. + +Images should not be larger than specified by `max-image-size'." (when (and (not data-p) (not (stringp file-or-data))) (error "Invalid image file name `%s'" file-or-data)) (cond ((null data-p) @@ -317,7 +319,9 @@ specification to be returned. Return nil if no specification is satisfied. -The image is looked for in `image-load-path'." +The image is looked for in `image-load-path'. + +Image files should not be larger than specified by `max-image-size'." (let (image) (while (and specs (null image)) (let* ((spec (car specs))