From: Eli Zaretskii Date: Sat, 31 Aug 2024 11:59:46 +0000 (+0300) Subject: ; Fix last change in subr-x.el X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1c2abc43efae69aac44a1bf2519ca7cc3efb9bd0;p=emacs.git ; Fix last change in subr-x.el * lisp/emacs-lisp/subr-x.el (string-pixel-width): Remove unnecessary call to 'erase-buffer'. (Bug#72689) (cherry picked from commit a9889b8eeceb4f1f7835be04f66d3c91c6f36621) --- diff --git a/lisp/emacs-lisp/subr-x.el b/lisp/emacs-lisp/subr-x.el index 83528f5c5dd..4cdb065feeb 100644 --- a/lisp/emacs-lisp/subr-x.el +++ b/lisp/emacs-lisp/subr-x.el @@ -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.