GNU bug report logs - #24240
25.1.50; window-state-put, image-mode and window scrolling

Previous Next

Package: emacs;

Reported by: Andreas Politz <politza <at> hochschule-trier.de>

Date: Mon, 15 Aug 2016 23:06:02 UTC

Severity: normal

Found in version 25.1.50

Done: martin rudalics <rudalics <at> gmx.at>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 24240 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Andreas Politz <politza <at> hochschule-trier.de>
Cc: 24240 <at> debbugs.gnu.org
Subject: Re: bug#24240: 25.1.50;
 window-state-put, image-mode and window scrolling
Date: Wed, 17 Aug 2016 17:47:32 +0200
> (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.