]> git.eshelyaron.com Git - emacs.git/commit
(string-pixel-width): Rewrite to avoid side effects
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Oct 2021 18:03:43 +0000 (14:03 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 27 Oct 2021 18:03:43 +0000 (14:03 -0400)
commitc22b735f0c6261b485f0f2afa10ec4c598550b5b
tree7190d6aac4d4b4a8cbfa6a001316865bb2057899
parent9559cc85e834a270b7627b3766df814946cd314a
(string-pixel-width): Rewrite to avoid side effects

* src/xdisp.c (Fwindow_text_pixel_size): Allow `window` to be a buffer.
* lisp/emacs-lisp/subr-x.el (string-pixel-width): Simplify accordingly.
lisp/emacs-lisp/subr-x.el
src/xdisp.c