]> git.eshelyaron.com Git - emacs.git/commit
Add new function buffer-text-pixel-size
authormartin rudalics <rudalics@gmx.at>
Mon, 22 Nov 2021 11:02:35 +0000 (12:02 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 22 Nov 2021 11:02:42 +0000 (12:02 +0100)
commit61c254cafc9caa3b52553fa0e7cca8a5086c5cea
tree6f5d5826c0173d3422fe559b37de88a19396bc2b
parentc7699b97022f5bdc3848d474485e0da5f2673595
Add new function buffer-text-pixel-size

* doc/lispref/display.texi (Size of Displayed Text): Document it.

* lisp/emacs-lisp/subr-x.el (string-pixel-width): Use
buffer-text-pixel-size (bug#51995).

* src/xdisp.c (window_text_pixel_size): Factor out from
Fwindow_text_pixel_size.
(Fbuffer_text_pixel_size): New function.
doc/lispref/display.texi
etc/NEWS
lisp/emacs-lisp/subr-x.el
src/xdisp.c