Subject: bug#13887: 24.3; doc-view will render blurry images when image-magick is available

From: Eli Zaretskii <[email-masked]>
Date: Mon, 11 Mar 2013 20:45:39 +0200

> From: Tassilo Horn <[email-masked]>
> Cc: [email-masked],  [email-masked],  [email-masked]
> Date: Mon, 11 Mar 2013 19:20:47 +0100
> 
> > doc-view-new-window-function seems to be run from a
> > window-configuration-change-hook, right?
> 
> No, from `image-mode-new-window-functions'.  The functions in there are
> run by `image-mode-winprops' if (and only if) there are no winprops set
> for the image and the current window.

Maybe I'm missing something, but in image-mode.el:

  . image-mode-winprops is called by image-mode-reapply-winprops

  . image-mode-reapply-winprops is added by image-mode-setup-winprops
    to window-configuration-change-hook

Doesn't that mean what I said?

> Basically, this should only ever happen when there's a new window
> showing the buffer with the image.

How's that ensured?  Can you walk us through the relevant code?