aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-09-21 10:16:10 +0200
committerLars Ingebrigtsen2019-09-21 10:16:10 +0200
commitc61bfe0a3adab1a9fd0dc283cbf8291a78ed6da1 (patch)
tree6cf718fbe5801ed8461eccf96d62e050625dced0 /src
parent321175434a7bfec1be563a6eb2665f085cd40686 (diff)
downloademacs-c61bfe0a3adab1a9fd0dc283cbf8291a78ed6da1.tar.gz
emacs-c61bfe0a3adab1a9fd0dc283cbf8291a78ed6da1.zip
Mention image caching in the `image-size' doc string
* src/image.c (Fimage_size): Mention that this function caches images, and what to do about that (bug#33275).
Diffstat (limited to 'src')
-rw-r--r--src/image.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index fe7bd90b051..5183558029c 100644
--- a/src/image.c
+++ b/src/image.c
@@ -1050,8 +1050,13 @@ DEFUN ("image-size", Fimage_size, Simage_size, 1, 3, 0,
1050 doc: /* Return the size of image SPEC as pair (WIDTH . HEIGHT). 1050 doc: /* Return the size of image SPEC as pair (WIDTH . HEIGHT).
1051PIXELS non-nil means return the size in pixels, otherwise return the 1051PIXELS non-nil means return the size in pixels, otherwise return the
1052size in canonical character units. 1052size in canonical character units.
1053
1053FRAME is the frame on which the image will be displayed. FRAME nil 1054FRAME is the frame on which the image will be displayed. FRAME nil
1054or omitted means use the selected frame. */) 1055or omitted means use the selected frame.
1056
1057Calling this function will result in the image being stored in the
1058image cache. If this is not desirable, call `image-flush' after
1059calling this function. */)
1055 (Lisp_Object spec, Lisp_Object pixels, Lisp_Object frame) 1060 (Lisp_Object spec, Lisp_Object pixels, Lisp_Object frame)
1056{ 1061{
1057 Lisp_Object size; 1062 Lisp_Object size;