From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.devel Subject: RE: Any way to prevent window splits for a window or a major-mode Date: Fri, 1 Dec 2017 13:57:38 -0800 (PST) Message-ID: <3a125bdb-70af-499b-8bb6-4659ba43091a@default> References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1512165488 25155 195.159.176.226 (1 Dec 2017 21:58:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 1 Dec 2017 21:58:08 +0000 (UTC) To: rswgnu@gmail.com, emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Dec 01 22:57:57 2017 Return-path: Envelope-to: ged-emacs-devel@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 1eKtJh-0005h7-Bj for ged-emacs-devel@m.gmane.org; Fri, 01 Dec 2017 22:57:53 +0100 Original-Received: from localhost ([::1]:33260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKtJo-0002C0-L7 for ged-emacs-devel@m.gmane.org; Fri, 01 Dec 2017 16:58:00 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38528) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eKtJe-0002AN-9U for emacs-devel@gnu.org; Fri, 01 Dec 2017 16:57:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eKtJa-0005P2-B9 for emacs-devel@gnu.org; Fri, 01 Dec 2017 16:57:50 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30132) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eKtJa-0005NL-3W for emacs-devel@gnu.org; Fri, 01 Dec 2017 16:57:46 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id vB1Lvffk004163 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 1 Dec 2017 21:57:43 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.14.4/8.14.4) with ESMTP id vB1Lve4V029024 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 1 Dec 2017 21:57:41 GMT Original-Received: from abhmp0006.oracle.com (abhmp0006.oracle.com [141.146.116.12]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id vB1LveVo007583; Fri, 1 Dec 2017 21:57:40 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.4615.0 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 156.151.31.81 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220598 Archived-At: > I have looked through the Windows sections of the Elisp > manual but did not see an option that would do this > specifically, though I imagine it must be there. > > For a window, I would like to be able to mark it so it > is never split. > > For a major mode, I would like to say for any windows > displaying buffers in this major mode, don't split them. > > Is there a simple way to program that? I'm no expert on this. I just took a look at predicate `window-splittable-p', and a first impression tells me that you can set `window-size-fixed' to `t' in a given buffer/mode to make it unsplittable. But it apparently applies to all windows showing the buffer, and I see no way to apply that to a single window. I see too (in (elisp) `Splitting Windows') that there is window parameter `split-window', which it seems like you can use to prevent a given window from being split. Someone more familiar with this stuff will hopefully chime in.