From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.bugs Subject: bug#10186: 23.3; save-some-buffers not making review windows large enough Date: Tue, 27 Dec 2011 12:48:24 -0500 Message-ID: References: <4ED892A1.9010109@gmx.at> <4ED8D8F1.9070307@gmx.at> <4ED8FAB5.3050306@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1325008172 24002 80.91.229.12 (27 Dec 2011 17:49:32 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 27 Dec 2011 17:49:32 +0000 (UTC) Cc: 10186@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 27 18:49:27 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Rfb9T-0003iu-1g for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Dec 2011 18:49:27 +0100 Original-Received: from localhost ([::1]:33085 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rfb9S-0003mN-L5 for geb-bug-gnu-emacs@m.gmane.org; Tue, 27 Dec 2011 12:49:26 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:43494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rfb9P-0003m4-Tf for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2011 12:49:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rfb9O-0007kG-Sm for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2011 12:49:23 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54892) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rfb9O-0007kC-R2 for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2011 12:49:22 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RfbBy-0000yT-0N for bug-gnu-emacs@gnu.org; Tue, 27 Dec 2011 12:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dave Abrahams Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 27 Dec 2011 17:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10186 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10186-submit@debbugs.gnu.org id=B10186.13250082793693 (code B ref 10186); Tue, 27 Dec 2011 17:52:01 +0000 Original-Received: (at 10186) by debbugs.gnu.org; 27 Dec 2011 17:51:19 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RfbBG-0000xU-9Y for submit@debbugs.gnu.org; Tue, 27 Dec 2011 12:51:19 -0500 Original-Received: from mail-qy0-f172.google.com ([209.85.216.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RfbBC-0000xM-E3 for 10186@debbugs.gnu.org; Tue, 27 Dec 2011 12:51:15 -0500 Original-Received: by qcsf15 with SMTP id f15so7069894qcs.3 for <10186@debbugs.gnu.org>; Tue, 27 Dec 2011 09:48:34 -0800 (PST) Original-Received: by 10.224.185.6 with SMTP id cm6mr34203245qab.89.1325008112473; Tue, 27 Dec 2011 09:48:32 -0800 (PST) Original-Received: from pluto.luannocracy.com (207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com. [207.172.223.249]) by mx.google.com with ESMTPS id gw5sm24684016qab.11.2011.12.27.09.48.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 27 Dec 2011 09:48:29 -0800 (PST) Original-Received: by pluto.luannocracy.com (Postfix, from userid 501) id 5895A1C772C0; Tue, 27 Dec 2011 12:48:24 -0500 (EST) In-Reply-To: <4ED8FAB5.3050306@gmx.at> (martin rudalics's message of "Fri, 02 Dec 2011 17:20:05 +0100") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (darwin) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 27 Dec 2011 12:52:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55219 Archived-At: on Fri Dec 02 2011, martin rudalics wrote: >> No, my frame is huge. The problem is that it is already divided up, >> including a small window that sometimes/often gets chosen by Emacs for >> display-buffer. > > This happens because `display-buffer-use-some-window' tries the least > recently used window first. If that window happens to be small ... > > In any case this sounds like a more general problem with your setup so > maybe something like the following would help > > (defun make-small-windows-softly-dedicated () > (walk-window-tree > (lambda (window) > (cond > ((and (> (window-total-size window) 10) > (eq (window-dedicated-p window) 'too-small)) > (set-window-dedicated-p window nil)) > ((and (<= (window-total-size window) 10) > (not (window-dedicated-p window))) > (set-window-dedicated-p window 'too-small)))))) > > (add-hook 'window-configuration-change-hook 'make-small-windows-softly-dedicated) > > replacing the "10" by a value of your choice. Thanks; I've been using your trick for a few days and it seems to be working out; at least, I have not had much to complain about. -- Dave Abrahams BoostPro Computing http://www.boostpro.com