unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Aaron Ecay <aaronecay@gmail.com>
Cc: usenet@pusto.de, 16351@debbugs.gnu.org
Subject: bug#16351: balance-windows
Date: Tue, 07 Jan 2014 12:51:02 +0100	[thread overview]
Message-ID: <52CBEA26.1070605@gmx.at> (raw)
In-Reply-To: <87iotwe59o.fsf@gmail.com>

> A minimal recipe is:
> 
> emacs -Q
> C-x 2 C-x 2
> C-x +
> (no effect).

Arrrgh.  I'll check in a fix later today.  If you want to try it
now, do the below.  Eduard: This should fix your problem as well.

Thanks, martin


=== modified file 'lisp/window.el'
--- lisp/window.el	2014-01-05 16:29:44 +0000
+++ lisp/window.el	2014-01-07 11:41:17 +0000
@@ -4541,7 +4541,7 @@
      (setq sub first)
      (while (and sub (> rest 0))
        (unless (window--resize-child-windows-skip-p window)
-	(set-window-new-pixel sub char-size t)
+	(set-window-new-pixel sub (min rest char-size) t)
  	(setq rest (- rest char-size)))
        (setq sub (window-right sub)))

@@ -4550,7 +4550,7 @@
      (setq sub first)
      (while (and sub (> rest 0))
        (unless (eq (window-new-normal sub) 'ignore)
-	(set-window-new-pixel sub char-size t)
+	(set-window-new-pixel sub (min rest char-size) t)
  	(setq rest (- rest char-size)))
        (setq sub (window-right sub)))










  reply	other threads:[~2014-01-07 11:51 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-05 13:39 bug#16351: 24.3.50; `balance-windows' has no effect after (menu-bar-mode -1) Eduard Wiebe
2014-01-05 16:48 ` martin rudalics
2014-01-05 22:51   ` Eduard Wiebe
2014-01-06 17:46     ` martin rudalics
2014-01-07  5:21 ` bug#16351: balance-windows Aaron Ecay
2014-01-07 11:51   ` martin rudalics [this message]
2014-01-07 17:31     ` martin rudalics
2014-01-07 20:04       ` Eduard Wiebe
2014-01-08  7:06         ` Aaron Ecay
2014-01-11 10:24           ` martin rudalics

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=52CBEA26.1070605@gmx.at \
    --to=rudalics@gmx.at \
    --cc=16351@debbugs.gnu.org \
    --cc=aaronecay@gmail.com \
    --cc=usenet@pusto.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).