all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Unsplittable window question.
       [not found] <20230311101232.m6s3nizkp4jlw2rj.ref@Ergus>
@ 2023-03-11 10:12 ` Ergus
  2023-03-12  3:51   ` Michael Heerdegen
  0 siblings, 1 reply; 3+ messages in thread
From: Ergus @ 2023-03-11 10:12 UTC (permalink / raw)
  To: help-gnu-emacs

Hi:

I am experimenting with some off the windows/frame features. And I added
these two lines to my config:

```
(defconst my/display-buffer-at-bottom
   '((display-buffer-reuse-window display-buffer-at-bottom)
       (unsplittable . t)
       (dedicated . t)
       (window-height . 0.3)))

(add-to-list 'display-buffer-alist `("*Occur*" . ,my/display-buffer-at-bottom))
```

With this Occur opens in the bottom as expected, but the
(unsplittable . t) seems not to have any effect. Emacs splits the Occur
window like any other and:

(window-parameter (get-buffer-window "*Occur*") 'unsplittable)

returns nil.

The debugger shows the call to display-buffer-at-bottom passing the
alist as a parameter.

What I am doing wrong?

Thanks in advance,
Ergus



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unsplittable window question.
  2023-03-11 10:12 ` Unsplittable window question Ergus
@ 2023-03-12  3:51   ` Michael Heerdegen
  2023-03-12  3:59     ` Emanuel Berg
  0 siblings, 1 reply; 3+ messages in thread
From: Michael Heerdegen @ 2023-03-12  3:51 UTC (permalink / raw)
  To: help-gnu-emacs

Ergus <spacibba@aol.com> writes:

> Hi:
>
> I am experimenting with some off the windows/frame features. And I added
> these two lines to my config:
>
> ```
> (defconst my/display-buffer-at-bottom
>    '((display-buffer-reuse-window display-buffer-at-bottom)
>        (unsplittable . t)
>        (dedicated . t)
>        (window-height . 0.3)))
>
> (add-to-list 'display-buffer-alist `("*Occur*" . ,my/display-buffer-at-bottom))
> ```
>
> With this Occur opens in the bottom as expected, but the
> (unsplittable . t) seems not to have any effect. Emacs splits the Occur
> window like any other and:
>
> (window-parameter (get-buffer-window "*Occur*") 'unsplittable)
>
> returns nil.

'unsplittable' is a frame parameter, not a (meaningful) window
parameter.

I don't know other ways to avoid automatic splitting of a window than
using the stuff mentioned in the doc of `window-splittable-p'.

Michael.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Unsplittable window question.
  2023-03-12  3:51   ` Michael Heerdegen
@ 2023-03-12  3:59     ` Emanuel Berg
  0 siblings, 0 replies; 3+ messages in thread
From: Emanuel Berg @ 2023-03-12  3:59 UTC (permalink / raw)
  To: help-gnu-emacs

Michael Heerdegen wrote:

> I don't know other ways to avoid automatic splitting of
> a window than using the stuff mentioned in the doc of
> `window-splittable-p'.

(setq display-buffer-base-action
  '((display-buffer-reuse-window
     display-buffer-same-window) ))

More splitting the one window:

  https://dataswamp.org/~incal/emacs-init/window-incal.el
  
  https://dataswamp.org/~incal/emacs-init/window-other.el

-- 
underground experts united
https://dataswamp.org/~incal




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-03-12  3:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20230311101232.m6s3nizkp4jlw2rj.ref@Ergus>
2023-03-11 10:12 ` Unsplittable window question Ergus
2023-03-12  3:51   ` Michael Heerdegen
2023-03-12  3:59     ` Emanuel Berg

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.