diff options
| -rw-r--r-- | lisp/net/shr.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el index c505f25a5a9..23f2ff75fab 100644 --- a/lisp/net/shr.el +++ b/lisp/net/shr.el | |||
| @@ -595,10 +595,11 @@ size, and full-buffer size." | |||
| 595 | ;; shr-pixel-column uses save-window-excursion, which can reset | 595 | ;; shr-pixel-column uses save-window-excursion, which can reset |
| 596 | ;; point to 1. | 596 | ;; point to 1. |
| 597 | (let ((pt (point))) | 597 | (let ((pt (point))) |
| 598 | (with-temp-buffer | 598 | (prog1 |
| 599 | (insert string) | 599 | (with-temp-buffer |
| 600 | (shr-pixel-column)) | 600 | (insert string) |
| 601 | (goto-char pt)))) | 601 | (shr-pixel-column)) |
| 602 | (goto-char pt))))) | ||
| 602 | 603 | ||
| 603 | (defsubst shr--translate-insertion-chars () | 604 | (defsubst shr--translate-insertion-chars () |
| 604 | ;; Remove soft hyphens. | 605 | ;; Remove soft hyphens. |