From: Juri Linkov <juri@jurta.org>
Cc: bug-gnu-emacs@gnu.org, walter_gillett@hotmail.com
Subject: Re: want user option for pop-to-buffer to split window horizontally not vertically
Date: Sat, 17 Dec 2005 12:45:34 +0200 [thread overview]
Message-ID: <87d5jwvxup.fsf@jurta.org> (raw)
In-Reply-To: <E1EnQUI-0004h5-DK@fencepost.gnu.org> (Richard M. Stallman's message of "Fri, 16 Dec 2005 20:03:50 -0500")
> window.c:3583: window = Fsplit_window (window, Qnil, Qnil);
> window.c:3597: window = Fsplit_window (window, Qnil, Qnil);
>
> My patch replaces nil in these two places with the value of a new
> user option which is nil by default.
>
> With that option, a user could elect either "always vertical"
> or "always horizontal". Is that really enough improvement?
My one-year experience with using "always horizontal" instead of
"always vertical" shows that in all cases that I tried this behavior
was expected and desirable.
However, there are some modes (like Calendar or Value Menu windows in
Customize) that doesn't take into account a window configuration where
windows are already split horizontally. Such window configurations can be
created even by using `C-x 3', so fixing these modes to work with
horizontally split windows is a separate question.
> I would rather add a hook that's more general, but after the release.
Such a hook should have an argument for the buffer name (the same as the
first argument of display-buffer). So setting this hook directly to
split-window-vertically or split-window-horizontally is not possible,
because these functions don't accept a buffer name argument.
Another variant is to add a user option with a list of buffer name regexps
that require horizontal split, but such a list is less general than a hook.
--
Juri Linkov
http://www.jurta.org/emacs/
next prev parent reply other threads:[~2005-12-17 10:45 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-14 20:46 want user option for pop-to-buffer to split window horizontally not vertically Walter Gillett
2005-12-15 9:19 ` Juri Linkov
2005-12-15 16:49 ` want user option for pop-to-buffer to split window horizontally not vertical Walter Gillett
2005-12-15 22:01 ` Sebastian Tennant
2005-12-16 18:02 ` Walter Gillett
2005-12-16 1:52 ` want user option for pop-to-buffer to split window horizontally not vertically Richard M. Stallman
2005-12-16 7:48 ` Juri Linkov
2005-12-16 16:52 ` Johan Bockgård
2005-12-17 10:50 ` Juri Linkov
2005-12-17 1:03 ` Richard M. Stallman
2005-12-17 10:45 ` Juri Linkov [this message]
2005-12-15 17:08 ` Richard M. Stallman
2005-12-15 17:46 ` want user option for pop-to-buffer to split window horizontally notverticall Walter Gillett
2005-12-16 5:09 ` Richard M. Stallman
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d5jwvxup.fsf@jurta.org \
--to=juri@jurta.org \
--cc=bug-gnu-emacs@gnu.org \
--cc=walter_gillett@hotmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).