From: Juri Linkov <juri@jurta.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Tassilo Horn <tassilo@member.fsf.org>, emacs-devel@gnu.org
Subject: Re: Patch: prefer-window-split-horizontally
Date: Thu, 16 Aug 2007 02:36:57 +0300 [thread overview]
Message-ID: <877inwjr7y.fsf@jurta.org> (raw)
In-Reply-To: <jwvvebgzjfn.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Wed\, 15 Aug 2007 15\:35\:18 -0400")
>> What do you think about adding another variable `split-window-function'
>> with the default value `split-window-vertically' or nil with the same
>> meaning, and the possible other value `split-window-horizontally'?
>> This would be like setting `ediff-split-window-function' to
>> `split-window-horizontally'.
>
> Just for the record: we're talking about something used only in
> display-buffer so a name like `split-window-function' doesn't seem right.
display-buffer splits windows, so it could use `split-window-function'
to decide how to split.
> And we already have display-buffer-function, which makes it possible to
> customize the way the windows are split. Now customizing
> display-buffer-function is not always easy,
There was an idea to rewrite the whole `display-buffer' in Lisp, and make
it more customizable. But it seems it is impossible to rewrite it
completely, because the current C implementation processes its input
argument `frame' which isn't given to display-buffer-function:
return call2 (Vdisplay_buffer_function, buffer, not_this_window);
which is called with `buffer' and `not_this_window', but not `frame'.
> so maybe prefer-window-split-horizontally makes sense, or maybe we
> should simply change the default behavior of display-buffer to do the
> suggested "if current window is very wide, split it horizontally rather
> than vertically" and not introduce any new customization (or maybe just
> a "ideal columns" or "ideal aspect-ratio" based on which we decide
> whether to split vertically rather than horizontally).
Maybe, this is possible. For instance, "ideal columns" could be the same
as `fill-column' or some other number near 80 columns.
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2007-08-15 23:36 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-14 16:34 Patch: prefer-window-split-horizontally Tassilo Horn
2007-08-14 16:51 ` Tassilo Horn
2007-08-15 18:22 ` Richard Stallman
2007-08-15 18:47 ` Tassilo Horn
2007-08-16 2:42 ` Richard Stallman
2007-08-16 5:52 ` Tassilo Horn
2007-08-14 20:47 ` Juri Linkov
2007-08-15 5:35 ` Tassilo Horn
2007-08-15 15:24 ` Davis Herring
2007-08-15 15:49 ` Tassilo Horn
2007-08-15 18:22 ` Richard Stallman
2007-08-15 18:57 ` Tassilo Horn
2007-08-15 19:35 ` Stefan Monnier
2007-08-15 19:53 ` Tassilo Horn
2007-08-15 20:31 ` Stefan Monnier
2007-08-16 6:28 ` Tassilo Horn
2007-08-16 13:11 ` Stefan Monnier
2007-08-16 13:38 ` Tassilo Horn
2007-08-16 14:00 ` klaus.berndl
2007-08-16 14:37 ` Tassilo Horn
2007-08-16 14:34 ` Stefan Monnier
2007-08-16 14:52 ` Tassilo Horn
2007-08-16 15:46 ` klaus.berndl
2007-08-15 23:36 ` Juri Linkov [this message]
2007-08-16 0:45 ` Stefan Monnier
2007-08-16 20:21 ` Juri Linkov
2007-08-16 2:42 ` Richard Stallman
2007-08-16 20:23 ` Juri Linkov
2007-08-15 5:52 ` Dieter Wilhelm
2007-08-15 6:27 ` Tassilo Horn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877inwjr7y.fsf@jurta.org \
--to=juri@jurta.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=tassilo@member.fsf.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.