[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How do I display pdfs to the right and not below the current window?
From: |
Marcin Borkowski |
Subject: |
Re: How do I display pdfs to the right and not below the current window? |
Date: |
Sun, 03 Jan 2016 08:18:36 +0100 |
User-agent: |
mu4e 0.9.13; emacs 25.1.50.1 |
On 2016-01-03, at 01:43, Michael Heerdegen <michael_heerdegen@web.de> wrote:
> Marcin Borkowski <mbork@mbork.pl> writes:
>
>> Now I have another problem. This code
>>
>> (split-window-right (round (* 0.5 (window-width window))))
>>
>> will split the window into "unequal halves". I understand the reason,
>
> What is the reason?
Fringes, scroll bars are taken into account by split-window-right, but
not by window-width.
>> but is there a simple way to override this behavior?
>
> Dunno. I'm no expert, but after reading the doc ("Optional argument
> SIZE a positive number means make WINDOW SIZE lines or columns tall.") I
> would expect that `window-width' of the new window would return that
> value (contrary to `window-text-width', this is a different thing).
OK, I found about `window-total-width'. I should have done
M-x apropos ^window-.*-width$
first, sorry.
The question that remains is whether `split-window-right' should set
`window-size' or `window-total-size' or something else yet. (My opinion
is `window-size', but I may be wrong.) Eventually, it seems to rely on
`split-window', which is too scary for me to look into now (235 lines,
excluding the docstring;-)).
> Michael.
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University