GNU bug report logs -
#19576
24.4; Broken function in `window-size-change-functions' cause `write-file' to write the wrong buffer
Previous Next
Reported by: Anders Lindgren <andlind <at> gmail.com>
Date: Mon, 12 Jan 2015 23:39:02 UTC
Severity: normal
Found in version 24.4
Done: Anders Lindgren <andlind <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> Date: Fri, 20 Nov 2015 11:25:47 +0100
> From: martin rudalics <rudalics <at> gmx.at>
> CC: acm <at> muc.de, juri <at> linkov.net, andlind <at> gmail.com,
> 19576 <at> debbugs.gnu.org
>
> >> It might have interesting consequences. Presumably, you expect that
> >> this way we'll be finally able to run ‘window-size-change-functions’ if
> >> and only if the size of windows really changed. Correct?
> >
> > No, not really. It's just a cleanup, IMO: instead of asking each
> > caller of window_resize_apply to set that flag, set it in that
> > function itself.
>
> In addition it would do that then for grow_mini_window and
> shrink_mini_window too but I suppose that's what you want.
Indeed, that was what triggered my question.
> > I didn't envision any changes in functionality due
> > to this change. What did I miss?
>
> "All" window size changes must pass through window_resize_apply. So we
> could easily check there if any size really changes and set that flag
> only in that case. This way you would get your check whether
> ‘set-window-configuration’ did change the size of any window for free.
Yes, that'd be an additional benefit.
> It's not a minor change since I probably would remove the check done by
> ‘window--resize-apply-p’, have window_resize_apply return a boolean
> indicating that some size really changed and have ‘window-resize-apply’
> pass that value back to its caller so we can avoid calling
> ‘window--pixel-to-total’ and ‘window-configuration-change-hook’ if
> nothing changed. And, as I mentioned earlier, the one case in
> ‘delete-other-windows’ would have to be treated specially. But I think
> it's worth if we care about ‘set-window-configuration’.
Yes, and we are allowed non-minor changes on master.
Thanks.
This bug report was last modified 9 years and 179 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.