GNU bug report logs -
#16351
24.3.50; `balance-windows' has no effect after (menu-bar-mode -1)
Previous Next
Reported by: Eduard Wiebe <usenet <at> pusto.de>
Date: Sun, 5 Jan 2014 13:42:02 UTC
Severity: normal
Found in version 24.3.50
Done: martin rudalics <rudalics <at> gmx.at>
Bug is archived. No further changes may be made.
Full log
Message #14 received at 16351 <at> debbugs.gnu.org (full text, mbox):
> Hmm, it seems that this is a issue of my current window manager.
> With good old twm i can't reproduce that, too.
This shouldn't be an issue of the window manager. Otherwise, we would
have a very nasty bug.
So if you still can reproduce the bug please proceed as follows:
`balance-windows' has this code
;; Balance vertically.
(window--resize-reset (window-frame window))
(balance-windows-1 window)
(when (window--resize-apply-p frame)
(window-resize-apply frame)
(window--pixel-to-total frame)
(run-window-configuration-change-hook frame))
First change this code to
;; Balance vertically.
(window--resize-reset (window-frame window))
(balance-windows-1 window)
(when (window--resize-apply-p frame)
(unless (window-resize-apply frame)
(ding))
(window--pixel-to-total frame)
(run-window-configuration-change-hook frame))
If Emacs now "dings" we know that the values written by
`balance-windows-1' are wrong. In this case replace the code by
;; Balance vertically.
(window--resize-reset (window-frame window))
(balance-windows-1 window)
(when (window--resize-apply-p frame)
(unless (window-resize-apply frame)
(message
"%s"
(list (cons (window-pixel-height) (window-new-pixel))
(cons (window-pixel-height (window-in-direction 'below))
(window-new-pixel (window-in-direction 'below)))
(cons (window-pixel-height (window-parent))
(window-new-pixel (window-parent))))))
(window--pixel-to-total frame)
(run-window-configuration-change-hook frame))
invoke C-x + from the _upper_ window and post the value written by
`message' here (just copy it from the buffer *Messages*).
Thanks, martin
This bug report was last modified 11 years and 137 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.