unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: FreeHCK <freehck@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Want split-window-vertically to split *vertically*
Date: Mon, 14 Nov 2011 19:41:42 +0400	[thread overview]
Message-ID: <87ipmm679l.fsf@gmail.com> (raw)
In-Reply-To: <BC5672F8AD4C054BAF167C9801500D1A6FBD6C88@USSLMMBX003.net.plm.eds.com> (Mark Ludwig's message of "Mon, 14 Nov 2011 14:01:11 +0000")

"Ludwig, Mark" <ludwig.mark@siemens.com> writes:
> I am using Emacs 23.3.1 and want to know how to make
> split-window-vertically do as documented: split *vertically* no matter
> how wide the frame is.  There clearly is logic that decides to split
> *horizontally* when the frame is relatively wide.  Why does C-x 2 act
> this way when the other behavior is available (normally) on C-x 3? (I
> frequently read very wide log files.  Besides that, I know what
> I&#8217;m doing, so want Emacs to &#8220;trust&#8221; me?)

------------------------------------------------------------------------
$ LANG=C apt-cache policy emacs23-nox
emacs23-nox:
  Installed: 23.2+1-7
  Candidate: 23.2+1-7
------------------------------------------------------------------------

It's certainly not 23.3.1, but there is no problems here. It won't create
window smaller than some minimum size, and there is no words in
documentation that it should split window "no matter how wide window is".

Lower I put documentation of my version of this function.

------------------------------------------------------------------------
(split-window-vertically &optional SIZE)

Split selected window into two windows, one above the other.
The upper window gets SIZE lines and the lower one gets the rest.
SIZE negative means the lower window gets -SIZE lines and the
upper one the rest.  With no argument, split windows equally or
close to it.  Both windows display the same buffer, now current.

If the variable `split-window-keep-point' is non-nil, both new
windows will get the same value of point as the selected window.
This is often more convenient for editing.  The upper window is
the selected window.

Otherwise, we choose window starts so as to minimize the amount of
redisplay; this is convenient on slow terminals.  The new selected
window is the one that the current value of point appears in.  The
value of point can change if the text around point is hidden by the
new mode line.

Regardless of the value of `split-window-keep-point', the upper
window is the original one and the return value is the new, lower
window.
------------------------------------------------------------------------

Is this documentation up-to-date for your version Emacs?



  parent reply	other threads:[~2011-11-14 15:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-14 14:01 Want split-window-vertically to split *vertically* Ludwig, Mark
2011-11-14 14:27 ` Tassilo Horn
2011-11-14 14:51   ` Ludwig, Mark
2011-11-14 14:59     ` Tassilo Horn
2011-11-14 15:41 ` FreeHCK [this message]
     [not found] <mailman.14705.1321279291.797.help-gnu-emacs@gnu.org>
2011-11-14 16:51 ` Jonathan Oddie
2011-11-14 20:14   ` Peter Dyballa

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=87ipmm679l.fsf@gmail.com \
    --to=freehck@gmail.com \
    --cc=help-gnu-emacs@gnu.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.
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).