From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Abrahams Newsgroups: gmane.emacs.help Subject: Re: How to configure default widow splitting orientation Date: Fri, 16 Jan 2009 17:49:18 -0500 Message-ID: <874ozyj28h.fsf@mcbain.luannocracy.com> References: <87bpz6pj4q.fsf@hubble.informatimago.com> <87ljyae3ad.fsf@thinkpad.tsdh.de> <38b2ab8a0809030309w1fafb621sf01c4bb830feb968@mail.gmail.com> <29de18070809030506y6d9b34a0pbf58670df23832e4@mail.gmail.com> <6fd5ec4f-fe44-43a6-b82a-31605dd96776@z66g2000hsc.googlegroups.com> <38b2ab8a0809040023i3a5f3d8bw9ba02bdca2951b64@mail.gmail.com> <87fxjij3xn.fsf@mcbain.luannocracy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1232146214 3394 80.91.229.12 (16 Jan 2009 22:50:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 16 Jan 2009 22:50:14 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 16 23:51:26 2009 Return-path: Envelope-to: geh-help-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 1LNxX0-0000pS-SB for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 23:51:15 +0100 Original-Received: from localhost ([127.0.0.1]:56482 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNxVk-0001t2-3E for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jan 2009 17:49:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LNxVN-0001qX-Dd for help-gnu-emacs@gnu.org; Fri, 16 Jan 2009 17:49:33 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LNxVM-0001pX-Lx for help-gnu-emacs@gnu.org; Fri, 16 Jan 2009 17:49:32 -0500 Original-Received: from [199.232.76.173] (port=44946 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LNxVM-0001p9-Eg for help-gnu-emacs@gnu.org; Fri, 16 Jan 2009 17:49:32 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:39350 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 1LNxVL-0002hK-Mo for help-gnu-emacs@gnu.org; Fri, 16 Jan 2009 17:49:32 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1LNxVJ-0003J4-1b for help-gnu-emacs@gnu.org; Fri, 16 Jan 2009 22:49:29 +0000 Original-Received: from 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com ([207.172.223.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Jan 2009 22:49:29 +0000 Original-Received: from dave by 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Jan 2009 22:49:29 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 52 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:RUMKJluIkkTNQyItylvfzexipec= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61414 Archived-At: on Fri Jan 16 2009, David Abrahams wrote: > on Thu Sep 04 2008, "Francis Moreau" wrote: > >> On Wed, Sep 3, 2008 at 6:18 PM, weber wrote: >>> I used this for a while: >>> >>> >> > http://tsdh.wordpress.com/2007/03/09/automatically-split-window-horizontally-if-current-window-is-wide-enough/ >>> >> >> Thanks ! >> >> This should do the trick until I upgrade to emacs 23.1 > > Hmm, I've been using something else (even though I am on an emacs > snapshot and I should have a customizable > `split-window-preferred-function'). I'm not sure yet whether my > approach has any advantages over the customization; if not, I'm > inclined to drop it. > > See > http://github.com/techarcana/elisp/blob/7eb6347a0aab8f444c7b645f4b5383613493a913/elisp/config.d/window-splitting.el Okay, this is really weird. First I tried disabling my advice and customizing split-window-preferred-function to 'split-window-horizontally instead. All heck broke loose: just trying to do tab completion in the minibuffer would result in "Attempt to split minibuffer window" errors. Then I removed the customization and left my advice disabled. Everything worked exactly as it had seemed to with the advice enabled. Beautiful! Why is that weird, though? Well, I finally broke down and wrote that advice because I had gotten tired of getting the wrong window splits while using my current version of Emacs, *a CVS snapshot from earlier this month*. Hmm, (emacs-version) says: "GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.14.4) of 2009-01-05 on mcbain" where is 23.1 and why does my snapshot have an earlier version number? Thanks, -- Dave Abrahams BoostPro Computing http://www.boostpro.com