aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorEli Zaretskii2025-03-30 19:27:22 +0300
committerEli Zaretskii2025-03-30 19:27:22 +0300
commit38fec86281efd78af24cc435307d55a00223db49 (patch)
tree9fca0ea0731efc239f8903988628b2b026adb956 /doc
parent3f05b455f7e52e70871f47810fe42f1f36fa783b (diff)
downloademacs-38fec86281efd78af24cc435307d55a00223db49.tar.gz
emacs-38fec86281efd78af24cc435307d55a00223db49.zip
; Improve the documentation of 'slice' display spec (bug#77384).
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/display.texi20
1 files changed, 14 insertions, 6 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 95b17032a74..3426e764e17 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -5603,12 +5603,20 @@ instead of the text that has the display specification.
5603 5603
5604@item (slice @var{x} @var{y} @var{width} @var{height}) 5604@item (slice @var{x} @var{y} @var{width} @var{height})
5605This specification together with @code{image} specifies a @dfn{slice} 5605This specification together with @code{image} specifies a @dfn{slice}
5606(a partial area) of the image to display. The elements @var{y} and 5606(a partial area) of the image to display. More precisely, the
5607@var{x} specify the top left corner of the slice, within the image; 5607specification should have the following form:
5608@var{width} and @var{height} specify the width and height of the 5608
5609slice. Integers are numbers of pixels. A floating-point number 5609@lisp
5610in the range 0.0--1.0 stands for that fraction of the width or height 5610 ((slice @var{x} @var{y} @var{width} @var{height}) @var{image-desc})
5611of the entire image. 5611@end lisp
5612
5613@noindent
5614where @var{image-desc} is an image descriptor described above. The
5615elements @var{x} and @var{y} specify the top left corner of the slice,
5616within the image; @var{width} and @var{height} specify the width and
5617height of the slice. Integers are numbers of pixels. A floating-point
5618number in the range 0.0--1.0 stands for that fraction of the width or
5619height of the entire image.
5612 5620
5613@item ((margin nil) @var{string}) 5621@item ((margin nil) @var{string})
5614A display specification of this form means to display @var{string} 5622A display specification of this form means to display @var{string}