bug-gnu-emacs
[Top][All Lists]
Advanced

[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


From: David Bremner
Subject: bug#24950: 25.1; shr-string-pixel-width cannot be called from a dedicated buffer
Date: Sun, 20 Nov 2016 14:35:59 -0400

Eli Zaretskii <address@hidden> writes:

> Thanks for the recipe.  Does the patch below solve your problem?
>
>       (save-window-excursion
> +          ;; 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,

David





reply via email to

[Prev in Thread] Current Thread [Next in Thread]