From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#3142: 23.0.92; split-window-prefered-function should be able to use split-window-horizontally/split-window-vertically Date: Thu, 30 Apr 2009 14:47:27 +0300 Organization: JURTA Message-ID: <87ljpiuyi0.fsf@mail.jurta.org> References: <49F6A25B.3050108@gmx.at> <874ow84cp6.fsf_-_@mail.jurta.org> <49F7FE0F.1020107@gmx.at> <49F9673F.6000806@gmx.at> Reply-To: Juri Linkov , 3142@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1241104338 3221 80.91.229.12 (30 Apr 2009 15:12:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Apr 2009 15:12:18 +0000 (UTC) Cc: 3142@emacsbugs.donarmstrong.com, Jared Finder To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 30 17:12:08 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LzXvh-00058f-Km for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Apr 2009 17:12:05 +0200 Original-Received: from localhost ([127.0.0.1]:54895 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzXvg-0003Dw-SH for geb-bug-gnu-emacs@m.gmane.org; Thu, 30 Apr 2009 11:12:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LzXvc-0003Df-O1 for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2009 11:12:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LzXvY-0003DD-58 for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2009 11:12:00 -0400 Original-Received: from [199.232.76.173] (port=46835 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LzXvY-0003DA-2L for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2009 11:11:56 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:47647) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LzXvX-0000JO-LP for bug-gnu-emacs@gnu.org; Thu, 30 Apr 2009 11:11:55 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3UFBpNJ000879; Thu, 30 Apr 2009 08:11:53 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n3UF57YU030657; Thu, 30 Apr 2009 08:05:07 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Juri Linkov Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 30 Apr 2009 15:05:07 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 3142 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 3142-submit@emacsbugs.donarmstrong.com id=B3142.124110378129801 (code B ref 3142); Thu, 30 Apr 2009 15:05:07 +0000 Original-Received: (at 3142) by emacsbugs.donarmstrong.com; 30 Apr 2009 15:03:01 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from relay01.kiev.sovam.com (relay01.kiev.sovam.com [62.64.120.200]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n3UF2ukD029790 for <3142@emacsbugs.donarmstrong.com>; Thu, 30 Apr 2009 08:02:57 -0700 Original-Received: from [83.170.232.243] (helo=smtp.svitonline.com) by relay01.kiev.sovam.com with esmtp (Exim 4.69) (envelope-from ) id 1LzVdR-0009gw-Kl; Thu, 30 Apr 2009 15:45:05 +0300 In-Reply-To: <49F9673F.6000806@gmx.at> (martin rudalics's message of "Thu, 30 Apr 2009 10:54:23 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (x86_64-pc-linux-gnu) X-Scanner-Signature: 068dd79c68aafbc760c35e97c5d420ed X-DrWeb-checked: yes X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Thu, 30 Apr 2009 11:12:00 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:27575 Archived-At: > + (defcustom split-window-preferred-function 'split-selected-window > + "Function called by `display-buffer' to split a window. > + The window that shall be split is selected when this function is > + called. The function is supposed to either return the new window > + or nil if the window can (or shall) not be split." > + :type 'function > + :version "23.1" > + :group 'windows) If setting this option to `split-window-horizontally' and `split-window-vertically' is possible and it works correctly with these value, then I suggest adding them as constants, e.g. "Always split horizontally" and "Always split vertically". Also I suggest keeping the common function name prefix "split-window-", i.e. instead of `split-selected-window' to name it something like "split-window-sensibly" or "split-window-with-thresholds". -- Juri Linkov http://www.jurta.org/emacs/