[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 21:10:13 +0200
> From: David Bremner <address@hidden>
> Cc: address@hidden
> 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, pushed to the emacs-25 branch.