Subject: bug#24240: 25.1.50; window-state-put, image-mode and window scrolling

From: martin rudalics <[email-masked]>
Date: Tue, 16 Aug 2016 13:00:23 +0200

> I guess ideally window-state-put should be atomic in the sense
 > that it delays these kinds of hooks until the window is
 > completely restored.

We'd need a variable, say ‘window-inhibit-configuration-change-hook’.

 > ;; Workaround 1 (does not work, why ?)
 >
 > (defun window-state-put-workaround (fn &rest args)
 >   (let (window-configuration-change-hook)
 >     (apply fn args))
 >   (run-window-configuration-change-hook))

Can you run this under the debugger in order to see what happens?

martin