From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joakim Hove Newsgroups: gmane.emacs.help Subject: Re: I prefer horizontal split of windows Date: Mon, 28 Nov 2005 10:06:47 +0100 Organization: University of Bergen Message-ID: References: <1132971156.957833.133940@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1133169159 3446 80.91.229.2 (28 Nov 2005 09:12:39 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 09:12:39 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 28 10:12:28 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Egf2y-0007W9-PS for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Nov 2005 10:11:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egf2x-0005Ki-Uy for geh-help-gnu-emacs@m.gmane.org; Mon, 28 Nov 2005 04:11:40 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!nntp.uib.no!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: metropolis.fi.uib.no Original-X-Trace: toralf.uib.no 1133168807 84136 129.177.40.57 (28 Nov 2005 09:06:47 GMT) Original-X-Complaints-To: abuse@uib.no Original-NNTP-Posting-Date: 28 Nov 2005 09:06:47 GMT User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:ba3XPLM9OYjPVmViYo7Yo6nFhes= Original-Xref: shelby.stanford.edu gnu.emacs.help:135852 Original-To: help-gnu-emacs@gnu.org 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:31455 Archived-At: Hello, thank you both 'rgb' and Johan for answering. > I'd say switch-to-buffer-other-window is a likely spot for advise. I have tried advising both switch-to-buffer-other-window, and diplay-buffer. That works for e.g. M-x manual-entry, i.e. the man page is displayed in a vertical window, but unfortunately *not* for e.g. C-h x or tab completion. > But a bug report might do better in the long run. > That calls pop-to-buffer which hard codes nil in it's call to > display-buffer. > > Fdisplay_buffer (buf, other_window, Qnil) Yes, it seems like the call to Fsplit_window() in Fdisplay_buffer() has a hard-coded nil value, and I certainly agree that there should be room for user-customization there. However, the fact that advising (display-buffer) does not do the trick, seems to indicate that other functions are involved for some of these cases, e.g. for the C-h family of functions. Anyway, I have a partial solution. Joakim -- Joakim Hove hove AT ntnu.no / Tlf: +47 (55 5)8 27 13 / Stabburveien 18 Fax: +47 (55 5)8 94 40 / N-5231 Paradis http://www.ift.uib.no/~hove/ / 55 91 28 18 / 92 68 57 04