From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Windows' "split status" Date: Fri, 11 Nov 2011 23:37:22 +0800 Message-ID: <87vcqqoekt.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321025859 30440 80.91.229.12 (11 Nov 2011 15:37:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2011 15:37:39 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 11 16:37:35 2011 Return-path: Envelope-to: ged-emacs-devel@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 1ROtAd-0006b9-7P for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2011 16:37:35 +0100 Original-Received: from localhost ([::1]:57553 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROtAc-0004LC-MJ for ged-emacs-devel@m.gmane.org; Fri, 11 Nov 2011 10:37:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41957) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROtAa-0004Df-1M for emacs-devel@gnu.org; Fri, 11 Nov 2011 10:37:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ROtAY-0004Fd-Qr for emacs-devel@gnu.org; Fri, 11 Nov 2011 10:37:31 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]:48174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ROtAY-0004FZ-PN for emacs-devel@gnu.org; Fri, 11 Nov 2011 10:37:30 -0500 Original-Received: from bb116-14-110-22.singnet.com.sg ([116.14.110.22]:55008 helo=furball) by fencepost.gnu.org with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ROtAX-0001Hv-SM for emacs-devel@gnu.org; Fri, 11 Nov 2011 10:37:30 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145985 Archived-At: IIUC the window-splits mechanism properly, it goes to a bit of trouble to record the current value of `window-splits' in each window, when that window is split off. This recorded value is retrieved when the window is resized or deleted. Why? Why not just refer to the `window-splits' variable? Since `window-splits' is a user option, I don't see any reason to regard it as a "sticky" property of a window. Even if the user happens to change the value of `window-splits' midway through an Emacs session (which is a corner case anyway), there's nothing wrong with simply handling existing split windows using the new value, rather than whatever historical values of `window-splits' they possess.