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
[Message part 1 (text/plain, inline)]
Auhm -- when starting to write the bug report I decided to make sure I got
all the facts right.
Unfortunately, it turned out that I had run an old Emacs 23 on X11 -- which
do run the window-size-change-functions. When testing on an Emacs 25 on
X11, it turns out that it doesn't. Back on the mac, I see the same pattern.
In other words: On Emacs 23, window-size-change-functions is called when
the user manually resized the frame. On Emacs 24 and Emacs 25 it isn't.
Sorry for the mixup.
Anyway, I just reported this regression as bug#21975.
I noticed this since Follow-mode no longer aligns its windows automatically
when the user resized the frame. In practice, this is not a big problem
since they will become aligned at the first user interaction instead.
-- Anders
On Sat, Nov 21, 2015 at 8:08 PM, Eli Zaretskii <eliz <at> gnu.org> wrote:
> > Date: Sat, 21 Nov 2015 19:44:07 +0100
> > From: martin rudalics <rudalics <at> gmx.at>
> > CC: andlind <at> gmail.com, acm <at> muc.de, 19576 <at> debbugs.gnu.org,
> > juri <at> linkov.net
> >
> > > We could run both types of hooks, couldn't we?
> >
> > As I said we do that already for splitting and deleting windows. So we
> > obviously could. But this means that packages run the same function
> > twice because they are used to run the same function in both hooks.
>
> That'[s why I think we should do this on master, to see if this causes
> any problems.
>
> > > The documentation
> > > seems to suggest that both of them should be run in this situation.
> >
> > ‘window-configuration-change-hook’ shouldn't run since the window
> > configuration does not change.
>
> But the ELisp manual says it should:
>
> -- Variable: window-configuration-change-hook
> A normal hook that is run every time you change the window
> configuration of an existing frame. This includes splitting or
> deleting windows, changing the sizes of windows, or displaying a
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> different buffer in a window.
>
> > But why should we OT1H make ‘window-size-change-functions’ more
> > efficient when OTOH we call it after we already called
> > ‘window-configuration-change-hook’?
>
> Sorry, I don't see the relevance of efficiency to this issue.
>
[Message part 2 (text/html, inline)]
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.