diff options
| author | Eli Zaretskii | 2025-04-05 07:07:28 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2025-04-05 07:07:28 -0400 |
| commit | d42ee9f33a281cb443ec17ed7f41ce48166c16df (patch) | |
| tree | 3b4b8973e31d56a03d7e6d096a61d14a01087e3e | |
| parent | 5987d77f40bf72a268d35d1f2a88f7cd00c17459 (diff) | |
| parent | 38fec86281efd78af24cc435307d55a00223db49 (diff) | |
| download | emacs-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.texi | 20 | ||||
| -rw-r--r-- | src/editfns.c | 3 |
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}) |
| 5617 | This specification together with @code{image} specifies a @dfn{slice} | 5617 | This 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; | 5619 | specification should have the following form: |
| 5620 | @var{width} and @var{height} specify the width and height of the | 5620 | |
| 5621 | slice. Integers are numbers of pixels. A floating-point number | 5621 | @lisp |
| 5622 | in 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}) |
| 5623 | of the entire image. | 5623 | @end lisp |
| 5624 | |||
| 5625 | @noindent | ||
| 5626 | where @var{image-desc} is an image descriptor described above. The | ||
| 5627 | elements @var{x} and @var{y} specify the top left corner of the slice, | ||
| 5628 | within the image; @var{width} and @var{height} specify the width and | ||
| 5629 | height of the slice. Integers are numbers of pixels. A floating-point | ||
| 5630 | number in the range 0.0--1.0 stands for that fraction of the width or | ||
| 5631 | height of the entire image. | ||
| 5624 | 5632 | ||
| 5625 | @item ((margin nil) @var{string}) | 5633 | @item ((margin nil) @var{string}) |
| 5626 | A display specification of this form means to display @var{string} | 5634 | A 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. | |||
| 3159 | In batch mode, the message is printed to the standard error stream, | 3159 | In batch mode, the message is printed to the standard error stream, |
| 3160 | followed by a newline. | 3160 | followed by a newline. |
| 3161 | 3161 | ||
| 3162 | If the variable `inhibit-message' is non-nil, the message is not | ||
| 3163 | displayed, only logged in the `*Messages*' buffer. | ||
| 3164 | |||
| 3162 | The first argument is a format control string, and the rest are data | 3165 | The first argument is a format control string, and the rest are data |
| 3163 | to be formatted under control of the string. Percent sign (%), grave | 3166 | to be formatted under control of the string. Percent sign (%), grave |
| 3164 | accent (\\=`) and apostrophe (\\=') are special in the format; see | 3167 | accent (\\=`) and apostrophe (\\=') are special in the format; see |