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: M-x compile and window splitting Date: Fri, 01 May 2009 11:36:50 +0200 Message-ID: <87skjpjhal.fsf@thinkpad.tsdh.de> References: <87k552s8y6.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241171382 8306 80.91.229.12 (1 May 2009 09:49:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2009 09:49:42 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 01 11:49:29 2009 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 1LzpN0-0003Vx-2b for ged-emacs-devel@m.gmane.org; Fri, 01 May 2009 11:49:26 +0200 Original-Received: from localhost ([127.0.0.1]:49020 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzpMz-0005Sl-Dw for ged-emacs-devel@m.gmane.org; Fri, 01 May 2009 05:49:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzpAx-0002wi-J3 for emacs-devel@gnu.org; Fri, 01 May 2009 05:36:59 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzpAs-0002vN-DP for emacs-devel@gnu.org; Fri, 01 May 2009 05:36:58 -0400 Original-Received: from [199.232.76.173] (port=59191 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzpAs-0002vI-2M for emacs-devel@gnu.org; Fri, 01 May 2009 05:36:54 -0400 Original-Received: from out1.smtp.messagingengine.com ([66.111.4.25]:47214) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LzpAr-0002cD-NV for emacs-devel@gnu.org; Fri, 01 May 2009 05:36:53 -0400 Original-Received: from compute1.internal (compute1.internal [10.202.2.41]) by out1.messagingengine.com (Postfix) with ESMTP id 0ECF83384BA for ; Fri, 1 May 2009 05:36:53 -0400 (EDT) Original-Received: from heartbeat1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Fri, 01 May 2009 05:36:53 -0400 X-Sasl-enc: sZKDpCYLXWj4dsOGHYkSNyY7BdGePNKMqkkwHC8aHEmg 1241170612 Original-Received: from thinkpad.tsdh.de (p54AF2CB6.dip0.t-ipconnect.de [84.175.44.182]) by mail.messagingengine.com (Postfix) with ESMTPA id 31D7624DD3 for ; Fri, 1 May 2009 05:36:51 -0400 (EDT) Mail-Copies-To: never Mail-Followup-To: emacs-devel@gnu.org In-Reply-To: (Frank Schmitt's message of "Thu, 30 Apr 2009 13:33:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. 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:110581 Archived-At: Frank Schmitt writes: Hi Frank, >>> In Emacs 23, the window is split vertically instead of horizontally >> >> No, it's split horizontally instead of vertically in Emacs speach, >> see `C-h k C-x 3'. > > Rather un-intuitive IMO but however. Well, yes. I remember it by asking myself how the two windows are positioned to each other after the split has been done. >>> - the change doesn't seem to be mentioned in NEWS (at least I couldn't >>> find it) >> >> ,----[ /usr/share/emacs/23.0.92/etc/NEWS ] >> | *** New value nil for split-height-threshold inhibits vertical splitting >> | unless there's no other window. >> | >> | +++ >> | *** New option split-width-threshold controls horizontal splitting. >> | >> | +++ >> | *** A window can be split horizontally even when it's not full-width. >> | >> | +++ >> | *** New option split-window-preferred-function can be set to a function >> | to override the default splitting mechanism of display-buffer. >> `---- > > I don't think those lines are very helpful for users without deeper > knowledge of this area in Emacs. At least I don't understand a word of > those lines. If you don't understand it after reading the docstrings of all those four vars, I'd say it might qualify as a documentation bug. > It is not clear what influences the decision whether to split > horizontally or vertically. With `split-window-preferred-function' set to nil (the default) it seems to prefer horizontal over vertical splitting (which is sensible), but it's not documented in this var's docstring, nor in `display-buffer'. Bye, Tassilo -- "Emacs is not a development tool but a way of life." - David Kastrup in alt.religion.emacs -