[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#24950: 25.1; shr-string-pixel-width cannot be called from a dedicate
bug#24950: 25.1; shr-string-pixel-width cannot be called from a dedicated buffer
Sun, 20 Nov 2016 14:35:59 -0400
Eli Zaretskii <email@example.com> writes:
> Thanks for the recipe. Does the patch below solve your problem?
> + ;; Avoid errors if the selected window is a dedicated one,
> + ;; and they just want to insert a document into it.
> + (set-window-dedicated-p nil nil)
> (set-window-buffer nil (current-buffer))
Yes, that seems to fix the problem (including the original crash in
notmuch which motivated the report).
Thanks for your work,