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: Wrong window end reported after splitting window Date: Sat, 23 Feb 2008 23:36:42 +0100 Message-ID: <47C09FFA.4040604@gmx.at> References: <47C06B77.4040201@gmx.at> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1203806345 27833 80.91.229.12 (23 Feb 2008 22:39:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 23 Feb 2008 22:39:05 +0000 (UTC) Cc: Emacs Devel To: Juanma Barranquero Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Feb 23 23:39:30 2008 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 1JT31l-0007ev-D4 for ged-emacs-devel@m.gmane.org; Sat, 23 Feb 2008 23:39:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JT31F-00065U-Rp for ged-emacs-devel@m.gmane.org; Sat, 23 Feb 2008 17:38:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JT30E-0005Im-RF for emacs-devel@gnu.org; Sat, 23 Feb 2008 17:37:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JT30B-0005FH-Sz for emacs-devel@gnu.org; Sat, 23 Feb 2008 17:37:52 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JT30A-0005F0-M2 for emacs-devel@gnu.org; Sat, 23 Feb 2008 17:37:50 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JT30A-00024g-0E for emacs-devel@gnu.org; Sat, 23 Feb 2008 17:37:50 -0500 Original-Received: (qmail invoked by alias); 23 Feb 2008 22:37:47 -0000 Original-Received: from N797P014.adsl.highway.telekom.at (EHLO [62.47.43.142]) [62.47.43.142] by mail.gmx.net (mp006) with SMTP; 23 Feb 2008 23:37:47 +0100 X-Authenticated: #14592706 X-Provags-ID: V01U2FsdGVkX1+vXIZnlsWvlK6NIm0f3RW/ayFpPZLINVUNpo7d8E fpOWXZQKYYenhC User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: de-DE, de, en-us, en In-Reply-To: X-Y-GMX-Trusted: 0 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:90173 Archived-At: > Why should only the current buffer receive window change > notifications? The fact that the hook is added locally should not > affect that. What would be the purpose of making a hook buffer-local if not running it for the current buffer only? >> What you see is the value reported after splitting the window not after >> enlarging it. > > Which is an error, isn't it? Enlarging the window is a window > configuration change. Yes. But since you deliberately made the hook buffer-local it won't get run :-( I suppose what you want is to investigate all affected windows when the corresponding configuration changes. This means we'd have to change `delete-window', `enlarge-window', `shrink-window', `adjust-window-trailing-edge' and `set-window-configuration' as to walk all windows on the frame, check whether one of the associated buffers has a non-nil local value for `window-configuration-change-hook', and run that hook (in addition to a global hook). The question here is what to do when the same buffer is shown in two or more windows on the affected frame - should we call the hook twice in that case? BTW, did you try how `window-size-change-functions' behaves in this regard?