GNU bug report logs -
#24240
25.1.50; window-state-put, image-mode and window scrolling
Previous Next
Full log
View this message in rfc822 format
> (defmacro with-inhibit-window-configuration-change-hook (frame &rest body)
> "Inhibit `window-configuration-change-hook' on FRAME in BODY."
> (declare (indent 1) (debug t))
> (let ((frame-var (make-symbol "frame")))
> `(let ((,frame-var (window-normalize-frame ,frame)))
> (unwind-protect
> (progn
> (frame-after-make-frame ,frame-var nil)
> ,@body)
> (frame-after-make-frame ,frame-var t)))))
Good. We can use that (if we still need it).
>> Would my patch work around that?
>
> It seems to inhibit running the hook, but there is still the case of
> set-window-start in window--state-put-2. Using the NOFORCE works, but I
> don't know the implications of this in other cases.
It _should_ use NOFORCE anyway. Otherwise, when, for example, the size
of the window we got the state from is much larger than the size of the
window we put the state in, window-point will end up in the wrong place.
And ‘window-point’ is definitively more important than ‘window-start’.
It should be fairly easy to construct such an example.
But do you mean that setting NOFORCE alone will handle your bug already
and we don't need ‘frame-after-make-frame’ after all?
martin
This bug report was last modified 8 years and 209 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.