From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Tomas Nordin Newsgroups: gmane.emacs.help Subject: Re: splitting a window at point Date: Fri, 20 Apr 2018 20:07:07 +0200 Message-ID: <878t9h7nw4.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> References: <20180416202359.5216cf029e1ca2451a7ac5e7@speakeasy.net> <20180419204216.8c90d80173ef18d8392a727b@speakeasy.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1524247540 6328 195.159.176.226 (20 Apr 2018 18:05:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 20 Apr 2018 18:05:40 +0000 (UTC) To: "James K. Lowden" , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 20 20:05:36 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f9aPe-0001VI-AS for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2018 20:05:34 +0200 Original-Received: from localhost ([::1]:49111 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9aRl-0007ga-1c for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Apr 2018 14:07:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56404) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f9aRI-0007gG-Gg for help-gnu-emacs@gnu.org; Fri, 20 Apr 2018 14:07:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f9aRF-0001KX-Cc for help-gnu-emacs@gnu.org; Fri, 20 Apr 2018 14:07:16 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:41570) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1f9aRF-0001Jf-2t for help-gnu-emacs@gnu.org; Fri, 20 Apr 2018 14:07:13 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 7B8BE215E2 for ; Fri, 20 Apr 2018 20:07:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1524247631; bh=N1/z1q314nDNkRRhwclS2IxHDT5YQA/KzM+wZaHLlO8=; h=From:To:Subject:Date:From; b=TWshi5a/ChEro/SIjThwFlOioZmumy9L6edUHLdzCA9AjYLYytUQ7cZi8d+DSvRPg 1OqLF7TlBcWQv+uYly25TG+R4XXIEoeH9G7Oso84Jh6tClW858IVwLyvT3/JVWN1W9 gHPD5Tg5H9sXOSj/Eyxyjd0zAok9mFilXXwrcFJ67Yi4ST83+AbWGYzOz9u0xfTGFG AS0LYLKlZpQj0Xa8d0MOGYYebop4yxk17Tbo3bImaGpO0rMNme8fwlSB6+FVoWQTeZ dXg87zGhsH9x9p/jLj9Hf3zvnHrqOKji5Ny1CFVpptPknb3ziN0Juo5GwKx2RKhPFT pNPVMHO8RNqnQ== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 40SP2Q1psXz9rxM; Fri, 20 Apr 2018 20:07:10 +0200 (CEST) In-Reply-To: <20180419204216.8c90d80173ef18d8392a727b@speakeasy.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.67.36.65 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:116572 Archived-At: "James K. Lowden" writes: > On Thu, 19 Apr 2018 20:13:01 +0200 > Tomas Nordin wrote: > >> Freely interpreting the goal and not refraining from jumping around >> with point a bit, does the following do approximately what you want? > > Why, yes, Tomas, it does, and rather better than I had in mind. It > complains if the function is "too big to fit" (It says the window is > too small), but otherwise it very much does what I want. Cool that it worked as you wanted sort of. I can see that if calling split-window-below with a SIZE argument with a number of lines that require more window than it can fit, it errors. But that is kind of natural I think.