From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Patch: prefer-window-split-horizontally Date: Thu, 16 Aug 2007 16:52:58 +0200 Message-ID: <87vebfwmyd.fsf@baldur.tsdh.de> References: <87bqdajcr1.fsf@baldur.tsdh.de> <87vebij5p8.fsf@jurta.org> <877inwvakl.fsf@baldur.tsdh.de> <873ayk0z9b.fsf@baldur.tsdh.de> <874pizy4y6.fsf@baldur.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187276791 13397 80.91.229.12 (16 Aug 2007 15:06:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 16 Aug 2007 15:06:31 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 16 17:06:25 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 1ILgvX-0006N0-O7 for ged-emacs-devel@m.gmane.org; Thu, 16 Aug 2007 17:06:24 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILgvX-0000hs-7b for ged-emacs-devel@m.gmane.org; Thu, 16 Aug 2007 11:06:23 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ILgvT-0000hN-Q9 for emacs-devel@gnu.org; Thu, 16 Aug 2007 11:06:19 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ILgvS-0000gw-B3 for emacs-devel@gnu.org; Thu, 16 Aug 2007 11:06:19 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ILgvS-0000gp-3S for emacs-devel@gnu.org; Thu, 16 Aug 2007 11:06:18 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ILgvR-0001ij-HS for emacs-devel@gnu.org; Thu, 16 Aug 2007 11:06:17 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1ILgov-00081B-AT for emacs-devel@gnu.org; Thu, 16 Aug 2007 16:59:33 +0200 Original-Received: from dslb-084-063-052-102.pools.arcor-ip.net ([84.63.52.102]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2007 16:59:33 +0200 Original-Received: from tassilo by dslb-084-063-052-102.pools.arcor-ip.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Aug 2007 16:59:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dslb-084-063-052-102.pools.arcor-ip.net Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEUSEQ9eW1Dkxz/6+fjQ w52JeEi7Imd/AAAACXBIWXMAAAsSAAALEgHS3X78AAAATnRFWHRSYXcgcHJvZmlsZSB0eXBlIGV4 aWYACmV4aWYKICAgICAgMjAKNDU3ODY5NjYwMDAwNGQ0ZDAwMmEwMDAwMDAwODAwMDAwMDAwMDAw MAqJuBZbAAAACXZwQWcAAAAwAAAAMADO7oxXAAABk0lEQVQ4y32TS3KDMAxAxQB7uyEHiGvvoSh7 sMSeJnD/q9Q/DBmYamNZz/oioM8ySkn7DbL2bHiUV+CODTflGXTSC5xBWwRAJzBAkPIEhLMWANUZ 3ETRt1CcAbcVdhdgmMZq5CsPsS6iufJ4EY7rFVg0WwNwblA5+Q/QCbADtLeewUxKcT/n1g8x0UVp c5Lt7Op4ANw+wfwOB+YxJoA5wlZXMnSwT788gmEbhUtSHMFWPuEnwK0WD6IOKUDISIckkFYk+KWl qHYgUvGIOKYkEeQJEQ5H0EETrERIbWoxgTLmQCLvsQNRhpqQELvmF3Kop17Ce+yJf6WsM7D8CMNF 7pcZoN5C4cLWlUXsiHY5bAKsmXn2c2BCPYkGI0BtHTGFrxX5RUz8jkBZ1tqKt8vOrC1bNgk4M6v5 5jyYvzQrtjqCICN7+8hWaaXNAahvwn66R92QA88ENCPPCSze4ycBI6WQdVBXOoYy/ndeN3tocH35 68MDH8os26zQGHd/+XcYE+xbMpk1LuC0mo9NdANOX10n5Q8J6syYNMm6EgAAABp6VFh0anBlZzpj b2xvcnNwYWNlAAB42jMCAAAzADOJOCM1AAAAJnpUWHRqcGVnOnNhbXBsaW5nLWZhY3RvcgAAeNoz qjDSMawwBGEAEYMC6T2XL08AAAAASUVORK5CYII= User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:wnZQpmY81gt9kv7JQ5pUoYgiNJY= 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:76632 Archived-At: Stefan Monnier writes: >>> Changing the behavior of split-window so that it uses something like >>> split-window-function only makes sense if we want to change the >>> behavior seen by current callers of this function. > >> That's the case, isn't it? > > Is it, really? As far as I can tell, you only want to change the > behavior in the following cases: when called from display-buffer and > when called interactively. Since split-window has currently no > key-binding, calling it interactively is not very common and we can > just as well create a new command split-window-sensibly which obeys > split-window-sensibly-function (and then have display-buffer use this > function as well). Indeed, you're right. So I suggest to do it that way. >> And the behavior would only change if users modify >> `split-window-function'. So I don't see a problem here. > > Think of those users who want a fancy split-window-function for > display-buffer but still want the layout of their > Gnus/ECB/MPC/GUD/ProofGeneral/... to appear correctly without having > to tweak their source code or beg the authors to adapt their code to > the new behavior. Look at Klaus. He's begging to adapt his code. ;-) >> I cannot follow you completely. In most cases it's not the caller >> who should decide how windows are split but the user, who wants to >> use his screen as good as possible. > > Yes, in *most* cases, maybe, but not all. Better have two separate > function for the two separate cases. Agreed. And it still gives users all possibilities they need. Bye, Tassilo