aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-09-09 14:28:12 +0300
committerEli Zaretskii2024-09-09 14:28:12 +0300
commit03e56981675c9533f844257bc7f0bc5603bb58fa (patch)
treee42dbe05d4f7494aadf7884fbf6197c2128af93a /src
parent9f0603207b17084563c73f271c397c0c469bf3e9 (diff)
downloademacs-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.c4
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
11776DEFUN ("window-text-pixel-size", Fwindow_text_pixel_size, Swindow_text_pixel_size, 0, 7, 0, 11776DEFUN ("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.
11778WINDOW must be a live window and defaults to the selected one. The 11778WINDOW must be a live window and defaults to the selected one. The
11779return value is a cons of the maximum pixel-width of any text line and 11779return value is a cons of the maximum pixel-width of any text line and
11780the pixel-height of all the text lines in the accessible portion of 11780the 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
11856DEFUN ("buffer-text-pixel-size", Fbuffer_text_pixel_size, Sbuffer_text_pixel_size, 0, 4, 0, 11856DEFUN ("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.
11858BUFFER-OR-NAME must specify a live buffer or the name of a live buffer 11858BUFFER-OR-NAME must specify a live buffer or the name of a live buffer
11859and defaults to the current buffer. WINDOW must be a live window and 11859and defaults to the current buffer. WINDOW must be a live window and
11860defaults to the selected one. The return value is a cons of the maximum 11860defaults to the selected one. The return value is a cons of the maximum