From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthias Newsgroups: gmane.emacs.help Subject: split-window documentation Date: 11 Jul 2004 11:26:52 +0200 Organization: !%$#%$#%!! Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1089538097 9980 80.91.224.253 (11 Jul 2004 09:28:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 11 Jul 2004 09:28:17 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jul 11 11:28:10 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Bjad0-0006bm-00 for ; Sun, 11 Jul 2004 11:28:10 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BjafG-0007x9-Ql for geh-help-gnu-emacs@m.gmane.org; Sun, 11 Jul 2004 05:30:30 -0400 Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Original-NNTP-Posting-Host: fermat.math.uvsq.fr Original-X-Trace: io.uvsq.fr 1089538012 37668 193.51.32.1 (11 Jul 2004 09:26:52 GMT) Original-X-Complaints-To: Newsmaster@uvsq.fr Original-NNTP-Posting-Date: Sun, 11 Jul 2004 09:26:52 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!irazu.switch.ch!switch.ch!in2p3.fr!nnx.oleane.net!oleane!feed.ac-versailles.fr!uvsq.fr!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:124233 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.emacs.help:19566 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:19566 Hi, I have written a function to setup a window configuration I find useful. But when working in a terminal with a small text height, the function `split-window' may return the following error: Window height 3 too small (after splitting) This feature is not documented in the elisp manual nor the doc spec of `split-window'. May one give me some information so that I can add some test in my function? Here is the function (any comment welcome): (defun alt-setup-configuration () (interactive) (if (window-configuration-p (car (get-register ?1))) (jump-to-register ?1) (when (not (one-window-p t)) (delete-other-windows (get-largest-window))) (let ((window1 (selected-window)) (window2 (split-window nil 28)) (window3 (split-window nil 34 t))) (save-excursion (diary) (when (not (gnus-alive-p)) (gnus)) (list-buffers t)) (set-window-buffer window1 "*Group*") (set-window-buffer window2 "*Buffer List*") (set-window-point window2 (point-min)) (set-window-buffer window3 "*Fancy Diary Entries*") (window-configuration-to-register ?1)))) Thank you for your help, -- Matthias