[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: question about pop-to-buffer
From: |
Thierry Volpiatto |
Subject: |
Re: question about pop-to-buffer |
Date: |
Sun, 30 Sep 2012 13:03:09 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) |
martin rudalics <address@hidden> writes:
>> And you
>> currently can't set the size of the first window at some side because
>> there's a bug in `display-buffer-in-major-side-window' :-(
>
> This has been fixed now, hopefully.
Cool.
>> (pop-to-buffer
>> (get-buffer-create "*toto*")
>> `(display-buffer-in-side-window . ((side . top) (size . ,(/
>> (window-total-size (selected-window)) 2)) (slot . 0))))
>
> You now have to use something like
>
> (pop-to-buffer
> (get-buffer-create "*toto*")
> `(display-buffer-in-side-window . ((side . top) (window-height . ,(/
> (window-total-size (selected-window)) 2)) (slot . 0))))
Ok good to know, thanks, however I have removed the variable that was
handling that, and I can manage splitting the windows in helm only using
`split-window-preferred-function' following your advice (I use a
specialized function for this).
Also, I have noticed that window-right/left can also handle vertical
splitting (I.e I was looking for something like window-above/bottom and
I discover that window-right/left do this).
Maybe that can be documented somewhere?
Thanks for your help.
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997