From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Weiner Newsgroups: gmane.emacs.devel Subject: Re: Any way to prevent window splits for a window or a major-mode Date: Wed, 6 Dec 2017 10:44:03 -0500 Message-ID: References: <5A227DA1.9060200@gmx.at> <5A265E92.3080309@gmx.at> <5A27B0C3.7060108@gmx.at> Reply-To: rswgnu@gmail.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="001a11479e40070a77055fadd4f2" X-Trace: blaine.gmane.org 1512577027 6194 195.159.176.226 (6 Dec 2017 16:17:07 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 6 Dec 2017 16:17:07 +0000 (UTC) Cc: emacs-devel To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 06 17:17:03 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 1eMcNb-0001Nn-Do for ged-emacs-devel@m.gmane.org; Wed, 06 Dec 2017 17:17:03 +0100 Original-Received: from localhost ([::1]:56322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMbsq-0004aC-S2 for ged-emacs-devel@m.gmane.org; Wed, 06 Dec 2017 10:45:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51945) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMbsG-0004a1-Ou for emacs-devel@gnu.org; Wed, 06 Dec 2017 10:44:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eMbsB-00015e-Ou for emacs-devel@gnu.org; Wed, 06 Dec 2017 10:44:40 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44905) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eMbsB-00015T-L7 for emacs-devel@gnu.org; Wed, 06 Dec 2017 10:44:35 -0500 Original-Received: from mail-qt0-f180.google.com ([209.85.216.180]:35878) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1eMbsB-000101-7e for emacs-devel@gnu.org; Wed, 06 Dec 2017 10:44:35 -0500 Original-Received: by mail-qt0-f180.google.com with SMTP id a16so9914571qtj.3 for ; Wed, 06 Dec 2017 07:44:35 -0800 (PST) X-Gm-Message-State: AKGB3mKgw0dUOPCI4mIJDXcaXstO+2bvZznBtwm1IQGbi1LpqEOiDv04 wT2OJr98SlBF4/cXHK2B6tpOWXiTmtYvTTJoMoU= X-Google-Smtp-Source: AGs4zMYQ0ymGvWtBeR6NamCo2FpMN0Gp4M8z6QJuoqzK3j8zllToe/rEl9WMC5hxF7/+npnIBpznkD8JFpc0sbjlhjg= X-Received: by 10.55.217.149 with SMTP id q21mr26077844qkl.102.1512575074762; Wed, 06 Dec 2017 07:44:34 -0800 (PST) Original-Received: by 10.200.55.124 with HTTP; Wed, 6 Dec 2017 07:44:03 -0800 (PST) In-Reply-To: <5A27B0C3.7060108@gmx.at> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:220753 Archived-At: --001a11479e40070a77055fadd4f2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, Dec 6, 2017 at 3:56 AM, martin rudalics wrote: > > =E2=80=8BIt is frame-bound. I tested display-buffer-in-side-window > > and that did the trick. Thanks. Is set-window-dedicate-p > > also needed or does the side window setup take care of that? > > `set-window-dedicated-p' (with a "d") is not needed. Another buffer may > appear in this window if and only if it has been set up to use the same > side and slot. =E2=80=8BGreat. In the doc string for display-buffer-in-side-window, it says: "Unless =E2=80=98display-buffer-mark-dedicated=E2=80=99 is non-nil, softly dedicate the side window used to BUFFER." No one will know what 'softly dedicate' means. If it means what you said above, that should be explained in the doc string too. =E2=80=8B > =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > > If you don't want delete-other-windows to delete this window, > =E2=80=8B=E2=80=8B > > then also add: > =E2=80=8B=E2=80=8B > > > =E2=80=8B=E2=80=8B > > (set-window-parameter (selected-window) 'no-delete-other-windows t) > =E2=80=8B=E2=80=8B > > =E2=80=8B=E2=80=8B > Indeed, see Bug#27999. =E2=80=8BThanks for the pointer to some of the thinking that went into the = design of the side window feature. It is working well for me in use with the Treemacs package. Bob --001a11479e40070a77055fadd4f2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Wed, Dec 6, 20= 17 at 3:56 AM, martin rudalics <rudalics@gmx.at> wrote:
> =E2=80=8BIt is frame-bound.=C2=A0 I tested display-buffer-in-side-w= indow
> and that did the trick.=C2=A0 Thanks.=C2=A0 Is set-window-dedicate-p > also needed or does the side window setup take care of that?

`set-window-dedicated-p' (with a "d") is not needed.=C2=A0 An= other buffer may
appear in this window if and only if it has been set up to use the same
side and slot.

=E2=80=8BGreat.

In the doc str= ing for display-buffer-in-side-window, it says: "Unless =E2=80=98displ= ay-buffer-mark-dedicated=E2=80=99 is non-nil, softly
dedicate the side win= dow used to BUFFER."

No one will know what 'softly dedicate= ' means.=C2=A0 If it means what you said above, that should be explaine= d in the doc string too.
=E2=80=8B
=E2=80=8B=E2=80=8B
=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
> If you don't want delete-other-= windows to delete this window,
=E2=80=8B=E2=80=8B
> then also add:
=E2=80=8B=E2=80=8B
>
=E2=80=8B=E2=80=8B
> (set-window-parameter (selected-win= dow) 'no-delete-other-windows t)
=E2=80=8B=E2=80=8B

=E2=80=8B=E2=80=8B
Indeed, see Bug#27999.
=
=E2=80=8BThanks for the pointer to some of the thinking that went int= o the design of the side window feature.
It is working well for me in use = with the Treemacs package.

Bob

--001a11479e40070a77055fadd4f2--