help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I prefer horizontal split of windows


From: Joakim Hove
Subject: Re: I prefer horizontal split of windows
Date: Mon, 28 Nov 2005 10:06:47 +0100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]