aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2025-04-05 07:07:28 -0400
committerEli Zaretskii2025-04-05 07:07:28 -0400
commitd42ee9f33a281cb443ec17ed7f41ce48166c16df (patch)
tree3b4b8973e31d56a03d7e6d096a61d14a01087e3e
parent5987d77f40bf72a268d35d1f2a88f7cd00c17459 (diff)
parent38fec86281efd78af24cc435307d55a00223db49 (diff)
downloademacs-d42ee9f33a281cb443ec17ed7f41ce48166c16df.tar.gz
emacs-d42ee9f33a281cb443ec17ed7f41ce48166c16df.zip
Merge from origin/emacs-30
38fec86281e ; Improve the documentation of 'slice' display spec (bug#... 3f05b455f7e ; * src/editfns.c (Fmessage): Mention 'inhibit-message' (...
-rw-r--r--doc/lispref/display.texi20
-rw-r--r--src/editfns.c3
2 files changed, 17 insertions, 6 deletions
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 0ba3b9d8d05..55c6206cf4d 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -5615,12 +5615,20 @@ instead of the text that has the display specification.
5615 5615
5616@item (slice @var{x} @var{y} @var{width} @var{height}) 5616@item (slice @var{x} @var{y} @var{width} @var{height})
5617This specification together with @code{image} specifies a @dfn{slice} 5617This specification together with @code{image} specifies a @dfn{slice}
5618(a partial area) of the image to display. The elements @var{y} and 5618(a partial area) of the image to display. More precisely, the
5619@var{x} specify the top left corner of the slice, within the image; 5619specification should have the following form:
5620@var{width} and @var{height} specify the width and height of the 5620
5621slice. Integers are numbers of pixels. A floating-point number 5621@lisp
5622in the range 0.0--1.0 stands for that fraction of the width or height 5622 ((slice @var{x} @var{y} @var{width} @var{height}) @var{image-desc})
5623of the entire image. 5623@end lisp
5624
5625@noindent
5626where @var{image-desc} is an image descriptor described above. The
5627elements @var{x} and @var{y} specify the top left corner of the slice,
5628within the image; @var{width} and @var{height} specify the width and
5629height of the slice. Integers are numbers of pixels. A floating-point
5630number in the range 0.0--1.0 stands for that fraction of the width or
5631height of the entire image.
5624 5632
5625@item ((margin nil) @var{string}) 5633@item ((margin nil) @var{string})
5626A display specification of this form means to display @var{string} 5634A display specification of this form means to display @var{string}
diff --git a/src/editfns.c b/src/editfns.c
index ebb308ea796..9590b49dc25 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3159,6 +3159,9 @@ Return the message.
3159In batch mode, the message is printed to the standard error stream, 3159In batch mode, the message is printed to the standard error stream,
3160followed by a newline. 3160followed by a newline.
3161 3161
3162If the variable `inhibit-message' is non-nil, the message is not
3163displayed, only logged in the `*Messages*' buffer.
3164
3162The first argument is a format control string, and the rest are data 3165The first argument is a format control string, and the rest are data
3163to be formatted under control of the string. Percent sign (%), grave 3166to be formatted under control of the string. Percent sign (%), grave
3164accent (\\=`) and apostrophe (\\=') are special in the format; see 3167accent (\\=`) and apostrophe (\\=') are special in the format; see