; 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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user