From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: display-buffer-change Date: Mon, 10 Sep 2007 10:31:20 +0200 Message-ID: <46E500D8.1050904@gmx.at> References: <200708271732.22306.zslevin@gmail.com> <46DD9F41.8090700@gmx.at> <46DE63EE.3070509@gmx.at> <87wsv4fvav.fsf@stupidchicken.com> <46DFC3AE.3020009@gmx.at> <46E0136F.6080602@gmx.at> <46E06C5B.80408@gmx.at> <46E198D8.8080507@gmx.at> <46E269E6.6090305@gmx.at> <46E468DE.4070707@gmx.at> <87wsuzxb1r.fsf@morpheus.local> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1189415476 9442 80.91.229.12 (10 Sep 2007 09:11:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Sep 2007 09:11:16 +0000 (UTC) Cc: Stefan Monnier , rms@gnu.org, emacs-devel@gnu.org To: =?ISO-8859-15?Q?David_K=E5gedal?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 10 19:11:02 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IUmCp-0001Vw-2I for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 18:33:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUeiS-00055M-KR for ged-emacs-devel@m.gmane.org; Mon, 10 Sep 2007 04:33:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IUehA-00048m-Ei for emacs-devel@gnu.org; Mon, 10 Sep 2007 04:32:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IUeh8-00046z-Qw for emacs-devel@gnu.org; Mon, 10 Sep 2007 04:32:35 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IUeh8-00046b-3m for emacs-devel@gnu.org; Mon, 10 Sep 2007 04:32:34 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1IUeh7-0000b8-JV for emacs-devel@gnu.org; Mon, 10 Sep 2007 04:32:33 -0400 Original-Received: (qmail invoked by alias); 10 Sep 2007 08:32:32 -0000 Original-Received: from N747P015.adsl.highway.telekom.at (EHLO [62.47.37.79]) [62.47.37.79] by mail.gmx.net (mp028) with SMTP; 10 Sep 2007 10:32:32 +0200 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX19h2JJJf3NhgDvLE2Ob0fTT4de+hlDogAGTR9/Z97 Zm4OhRtMW88rhk User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: <87wsuzxb1r.fsf@morpheus.local> X-Y-GMX-Trusted: 0 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:78423 Archived-At: > A window-local "unsplittable" flag that I can set could probably help. Consider using something like `window-unsplittable-p': With David's example, A and B have the same size and B would be unsplittable. If `window-unsplittable-p' is _not_ handled by Fget_largest_window the latter might return B although A would be a perfect alternative. `display-buffer' would decide that there's no sutiable largest window, continue with the LRU one, find out that it can't be split either and stick to some suboptimal solution. Hence, `get-largest-window' and `get-lru-window' would need a third, optional "unsplittable" argument. That argument would be hardly set by anything but `display-buffer'. I earlier suggested to use `window-dedicated-p' to make the window unsplittable because this can be handled by the current code of Fget_largest_window and Fget_lru_window. I'd simply have `display-buffer' call these with the second argument Qnil and be done. Obviously, the semantics of "dedicatedness" would change.