|
From: | Elias Mårtenson |
Subject: | Re: Determining size of a propertised string |
Date: | Tue, 29 Nov 2016 19:05:30 +0800 |
> I have a string with a buch of properties applied (the main one: It uses a
> different font). I now need to split the window, making the size of the
> window just large enough to contain this text. If the string is not
> propertised, I can simply count the number of lines in the text I'll be
> inserting into the buffer and pass that as the HEIGHT parameter to
> ‘split-window’. But since the font used in this text is larger than the
> default font, the window becomes slightly too small.
Why can't you use ‘fit-window-to-buffer’?
[Prev in Thread] | Current Thread | [Next in Thread] |