emacs-devel
[Top][All Lists]
Advanced

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

Re: split-window-preferred-function


From: Juri Linkov
Subject: Re: split-window-preferred-function
Date: Fri, 04 Apr 2008 01:54:29 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (x86_64-pc-linux-gnu)

>> Splitting them in three parts gives less than 80-column wide windows
>> that is not comfortable width to work in most buffers.
>
> Generally I'd agree that windows with less than 80 columns are not
> comfortable, but that's a thing a user should decide.

It seems 80 columns is a good default for `split-width-threshold'.

>> However, what is very much necessary, and what is still missing in
>> `split-window-preferred-horizontally' is the ability to split
>> _vertically_ in horizontally split windows.
>
> Indeed, vertical splitting if horizontal splitting won't work (and the
> other way round) would be a good feature.  But I had a different
> implementation in mind.  How about my idea I described in
> <address@hidden>?

I don't see how this would help to decide whether to split a window
vertically or horizontally, or to display a buffer in a new window.
For example:

+----------------+--------------------------------+
|                |                                |
|   80 columns   |        160 columns             |
|                |                                |
|                |                                |
|                |                                |
|                |                                |
+----------------+--------------------------------+

When the right window is wide enough to be split horizontally,
and point is in the left window, what is the best to do here?

1. display a buffer in the right window without splitting it;
2. split the wide right window horizontally and display a buffer
   in a new window;
3. split the left window vertically (this option is preferable
   for some buffers, e.g. for calendar)

And how to express these preferences using user options?

-- 
Juri Linkov
http://www.jurta.org/emacs/




reply via email to

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