aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/net/shr.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/lisp/net/shr.el b/lisp/net/shr.el
index b7c48288494..6ec647e8028 100644
--- a/lisp/net/shr.el
+++ b/lisp/net/shr.el
@@ -2228,6 +2228,9 @@ flags that control whether to collect or render objects."
2228 (if (get-buffer-window) 2228 (if (get-buffer-window)
2229 (car (window-text-pixel-size nil (point-min) (point-max))) 2229 (car (window-text-pixel-size nil (point-min) (point-max)))
2230 (save-window-excursion 2230 (save-window-excursion
2231 ;; Avoid errors if the selected window is a dedicated one,
2232 ;; and they just want to insert a document into it.
2233 (set-window-dedicated-p nil nil)
2231 (set-window-buffer nil (current-buffer)) 2234 (set-window-buffer nil (current-buffer))
2232 (car (window-text-pixel-size nil (point-min) (point-max))))))) 2235 (car (window-text-pixel-size nil (point-min) (point-max)))))))
2233 2236
@@ -2271,6 +2274,9 @@ flags that control whether to collect or render objects."
2271 (shr-indentation 0)) 2274 (shr-indentation 0))
2272 (shr-descend dom)) 2275 (shr-descend dom))
2273 (save-window-excursion 2276 (save-window-excursion
2277 ;; Avoid errors if the selected window is a dedicated one,
2278 ;; and they just want to insert a document into it.
2279 (set-window-dedicated-p nil nil)
2274 (set-window-buffer nil (current-buffer)) 2280 (set-window-buffer nil (current-buffer))
2275 (unless fill 2281 (unless fill
2276 (setq natural-width 2282 (setq natural-width