aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Rudalics2014-01-07 18:16:24 +0100
committerMartin Rudalics2014-01-07 18:16:24 +0100
commit7e1899d7cdcff5fe4926f5a5804abaf9f7e18b2b (patch)
tree217c1d9507db49e6cb89bce6fea0286f033c5f26
parente90dec2be1c487ccca519bfdea33397ef2e0961f (diff)
downloademacs-7e1899d7cdcff5fe4926f5a5804abaf9f7e18b2b.tar.gz
emacs-7e1899d7cdcff5fe4926f5a5804abaf9f7e18b2b.zip
Fix Bugs 16351 and 16383 when rounding in balance-windows-2.
* window.el (balance-windows-2): While rounding don't give a window more than the remainder. Bug#16351, Bug#16383.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/window.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 88afaec974c..add146fd2b1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-01-07 Martin Rudalics <rudalics@gmx.at>
2
3 * window.el (balance-windows-2): While rounding don't give a
4 window more than the remainder. Bug#16351, Bug#16383.
5
12014-01-07 Glenn Morris <rgm@gnu.org> 62014-01-07 Glenn Morris <rgm@gnu.org>
2 7
3 * menu-bar.el (menu-bar-help-extra-packages): Remove. 8 * menu-bar.el (menu-bar-help-extra-packages): Remove.
diff --git a/lisp/window.el b/lisp/window.el
index 6ecb55aa659..d1d8a5ea79c 100644
--- a/lisp/window.el
+++ b/lisp/window.el
@@ -4541,7 +4541,7 @@ is non-nil)."
4541 (setq sub first) 4541 (setq sub first)
4542 (while (and sub (> rest 0)) 4542 (while (and sub (> rest 0))
4543 (unless (window--resize-child-windows-skip-p window) 4543 (unless (window--resize-child-windows-skip-p window)
4544 (set-window-new-pixel sub char-size t) 4544 (set-window-new-pixel sub (min rest char-size) t)
4545 (setq rest (- rest char-size))) 4545 (setq rest (- rest char-size)))
4546 (setq sub (window-right sub))) 4546 (setq sub (window-right sub)))
4547 4547
@@ -4550,7 +4550,7 @@ is non-nil)."
4550 (setq sub first) 4550 (setq sub first)
4551 (while (and sub (> rest 0)) 4551 (while (and sub (> rest 0))
4552 (unless (eq (window-new-normal sub) 'ignore) 4552 (unless (eq (window-new-normal sub) 'ignore)
4553 (set-window-new-pixel sub char-size t) 4553 (set-window-new-pixel sub (min rest char-size) t)
4554 (setq rest (- rest char-size))) 4554 (setq rest (- rest char-size)))
4555 (setq sub (window-right sub))) 4555 (setq sub (window-right sub)))
4556 4556