diff options
| author | Eli Zaretskii | 2024-09-09 14:28:12 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-09-09 14:28:12 +0300 |
| commit | 03e56981675c9533f844257bc7f0bc5603bb58fa (patch) | |
| tree | e42dbe05d4f7494aadf7884fbf6197c2128af93a /src | |
| parent | 9f0603207b17084563c73f271c397c0c469bf3e9 (diff) | |
| download | emacs-03e56981675c9533f844257bc7f0bc5603bb58fa.tar.gz emacs-03e56981675c9533f844257bc7f0bc5603bb58fa.zip | |
Clarify the semantics of 'string-pixel-width'
* doc/lispref/display.texi (Size of Displayed Text):
* lisp/emacs-lisp/subr-x.el (string-pixel-width):
* src/xdisp.c (Fwindow_text_pixel_size, Fbuffer_text_pixel_size):
Doc fixes. (Bug#73129)
Diffstat (limited to 'src')
| -rw-r--r-- | src/xdisp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xdisp.c b/src/xdisp.c index 5add42ef11b..bf7d84cdcb7 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -11774,7 +11774,7 @@ window_text_pixel_size (Lisp_Object window, Lisp_Object from, Lisp_Object to, | |||
| 11774 | } | 11774 | } |
| 11775 | 11775 | ||
| 11776 | DEFUN ("window-text-pixel-size", Fwindow_text_pixel_size, Swindow_text_pixel_size, 0, 7, 0, | 11776 | DEFUN ("window-text-pixel-size", Fwindow_text_pixel_size, Swindow_text_pixel_size, 0, 7, 0, |
| 11777 | doc: /* Return the size of the text of WINDOW's buffer in pixels. | 11777 | doc: /* Return the dimensions of the text of WINDOW's buffer in pixels. |
| 11778 | WINDOW must be a live window and defaults to the selected one. The | 11778 | WINDOW must be a live window and defaults to the selected one. The |
| 11779 | return value is a cons of the maximum pixel-width of any text line and | 11779 | return value is a cons of the maximum pixel-width of any text line and |
| 11780 | the pixel-height of all the text lines in the accessible portion of | 11780 | the pixel-height of all the text lines in the accessible portion of |
| @@ -11854,7 +11854,7 @@ screen line that includes TO to the returned height of the text. */) | |||
| 11854 | } | 11854 | } |
| 11855 | 11855 | ||
| 11856 | DEFUN ("buffer-text-pixel-size", Fbuffer_text_pixel_size, Sbuffer_text_pixel_size, 0, 4, 0, | 11856 | DEFUN ("buffer-text-pixel-size", Fbuffer_text_pixel_size, Sbuffer_text_pixel_size, 0, 4, 0, |
| 11857 | doc: /* Return size of whole text of BUFFER-OR-NAME in WINDOW. | 11857 | doc: /* Return the dimensions of whole text of BUFFER-OR-NAME in WINDOW. |
| 11858 | BUFFER-OR-NAME must specify a live buffer or the name of a live buffer | 11858 | BUFFER-OR-NAME must specify a live buffer or the name of a live buffer |
| 11859 | and defaults to the current buffer. WINDOW must be a live window and | 11859 | and defaults to the current buffer. WINDOW must be a live window and |
| 11860 | defaults to the selected one. The return value is a cons of the maximum | 11860 | defaults to the selected one. The return value is a cons of the maximum |