; Fix last change in subr-x.el

* lisp/emacs-lisp/subr-x.el (string-pixel-width): Remove
unnecessary call to 'erase-buffer'.  (Bug#72689)
This commit is contained in:
Eli Zaretskii 2024-08-31 14:59:46 +03:00
parent deb31ba825
commit a9889b8eec

View file

@ -405,7 +405,6 @@ determining the width."
(with-current-buffer buffer
face-remapping-alist))
(kill-local-variable 'face-remapping-alist))
(erase-buffer)
(insert string)
;; Prefer `remove-text-properties' to `propertize' to avoid
;; creating a new string on each call.