From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: FreeHCK Newsgroups: gmane.emacs.help Subject: Re: Want split-window-vertically to split *vertically* Date: Mon, 14 Nov 2011 19:41:42 +0400 Message-ID: <87ipmm679l.fsf@gmail.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1321285318 1620 80.91.229.12 (14 Nov 2011 15:41:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 14 Nov 2011 15:41:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 14 16:41:54 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RPyfR-0005ke-W3 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Nov 2011 16:41:54 +0100 Original-Received: from localhost ([::1]:49861 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPyfR-00083m-HM for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Nov 2011 10:41:53 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:46111) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPyfO-00081v-4J for help-gnu-emacs@gnu.org; Mon, 14 Nov 2011 10:41:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RPyfM-00053k-EK for help-gnu-emacs@gnu.org; Mon, 14 Nov 2011 10:41:50 -0500 Original-Received: from mail-bw0-f41.google.com ([209.85.214.41]:34430) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RPyfM-00053c-9J for help-gnu-emacs@gnu.org; Mon, 14 Nov 2011 10:41:48 -0500 Original-Received: by bke17 with SMTP id 17so5880749bke.0 for ; Mon, 14 Nov 2011 07:41:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:references:cc:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=DazvTKanpCQOQfuoul1fDHEYK4vcpeb/onyLqhoCvhA=; b=N3UjS22c1pBjoIFRhqtxphfsjH8MBxkaCDgf6G8x39vjXsWeu2mOpO0bIvVybynvGB 9mlXrB8UwwPolt0RmAEsGLYWr8CjZA4YE8R5aNk/oQ3aAiJSiIH6PuNPdgcNt4NcmedI F9D/pqnQFy26ksF0I++yah3aohUgKo/Ses2DA= Original-Received: by 10.205.120.145 with SMTP id fy17mr8973445bkc.124.1321285306568; Mon, 14 Nov 2011 07:41:46 -0800 (PST) Original-Received: from localhost.gmail.com ([94.79.44.98]) by mx.google.com with ESMTPS id f14sm10523310bkv.3.2011.11.14.07.41.43 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 14 Nov 2011 07:41:45 -0800 (PST) In-Reply-To: (Mark Ludwig's message of "Mon, 14 Nov 2011 14:01:11 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.214.41 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:82911 Archived-At: "Ludwig, Mark" 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’m doing, so want Emacs to “trust” 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?