diff options
| author | Eli Zaretskii | 2024-08-31 14:59:46 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-08-31 14:59:46 +0300 |
| commit | a9889b8eeceb4f1f7835be04f66d3c91c6f36621 (patch) | |
| tree | 1666a2eec6f4ececc95d0f7e8a443a4da3fb86a6 | |
| parent | deb31ba825937cb27ab2b0e157e3e540be215eb2 (diff) | |
| download | emacs-a9889b8eeceb4f1f7835be04f66d3c91c6f36621.tar.gz emacs-a9889b8eeceb4f1f7835be04f66d3c91c6f36621.zip | |
; Fix last change in subr-x.el
* lisp/emacs-lisp/subr-x.el (string-pixel-width): Remove
unnecessary call to 'erase-buffer'. (Bug#72689)
| -rw-r--r-- | lisp/emacs-lisp/subr-x.el | 1 |
1 files changed, 0 insertions, 1 deletions
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." | |||
| 405 | (with-current-buffer buffer | 405 | (with-current-buffer buffer |
| 406 | face-remapping-alist)) | 406 | face-remapping-alist)) |
| 407 | (kill-local-variable 'face-remapping-alist)) | 407 | (kill-local-variable 'face-remapping-alist)) |
| 408 | (erase-buffer) | ||
| 409 | (insert string) | 408 | (insert string) |
| 410 | ;; Prefer `remove-text-properties' to `propertize' to avoid | 409 | ;; Prefer `remove-text-properties' to `propertize' to avoid |
| 411 | ;; creating a new string on each call. | 410 | ;; creating a new string on each call. |