emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Any way to prevent window splits for a window or a major-mode


From: Drew Adams
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)

> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]