From: martin rudalics <rudalics@gmx.at>
To: "Elias Mårtenson" <lokedhs@gmail.com>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Determining size of a propertised string
Date: Tue, 29 Nov 2016 12:00:26 +0100 [thread overview]
Message-ID: <583D5FCA.2080302@gmx.at> (raw)
In-Reply-To: <CADtN0WJfobeZkejvHOB9oX58GOfyWsU2HxwK5XgtaPhjtwFM1A@mail.gmail.com>
> 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
next prev parent reply other threads:[~2016-11-29 11:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-29 10:39 Determining size of a propertised string Elias Mårtenson
2016-11-29 11:00 ` martin rudalics [this message]
2016-11-29 11:05 ` Elias Mårtenson
2016-11-29 14:16 ` martin rudalics
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=583D5FCA.2080302@gmx.at \
--to=rudalics@gmx.at \
--cc=emacs-devel@gnu.org \
--cc=lokedhs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.