From 1c2abc43efae69aac44a1bf2519ca7cc3efb9bd0 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 31 Aug 2024 14:59:46 +0300 Subject: [PATCH] ; 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) --- lisp/emacs-lisp/subr-x.el | 1 - 1 file changed, 1 deletion(-) 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. -- 2.39.5