emacs-devel
[Top][All Lists]
Advanced

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

Re: Determining size of a propertised string


From: martin rudalics
Subject: Re: Determining size of a propertised string
Date: Tue, 29 Nov 2016 12:00:26 +0100

> 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’?

martin




reply via email to

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