unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Robert Dallas Gray <mail@robertdallasgray.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 15886@debbugs.gnu.org
Subject: bug#15886: 24.3.50; Incorrect window-text-height with non-zero line-spacing
Date: Wed, 13 Nov 2013 21:27:35 +0000	[thread overview]
Message-ID: <2D715343-65B4-4759-95C1-D3DA8A3F7598@robertdallasgray.com> (raw)
In-Reply-To: <834n7g0zq1.fsf@gnu.org>


On 13 Nov 2013, at 21:16, Eli Zaretskii <eliz@gnu.org> wrote:

>> From: Robert Dallas Gray <mail@robertdallasgray.com>
>> Date: Wed, 13 Nov 2013 20:55:20 +0000
>> Cc: 15886@debbugs.gnu.org
>> 
>> Well, it's not my library, but the reason it fails (in my setup, where I have line-spacing set to 2), is that it tries to set the height of the minibuffer using 'set-window-text-height' -- which, in my setup, sets the height incorrectly (the bottom of the minibuffer is obscured). I note that 'set-window-text-height' uses 'window-text-height' 
> 
> The argument passed to 'set-window-text-height' should be scaled by
> the ratio of the values returned by 'frame-char-height' and
> 'default-line-height'.  (By default, this ratio is 1, but in your case
> it will be different.)  The result of scaling should then be rounded
> up to the nearest integer.
> 

OK, but that doesn't really achieve the aim of setting the height of the window *exactly* in terms of the height of an individual line of text ... in the case I'm describing, where the number of lines displayed is changing dynamically, the baseline is going to bounce around because the window isn't being sized accurately.




  reply	other threads:[~2013-11-13 21:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-13 19:23 bug#15886: 24.3.50; Incorrect window-text-height with non-zero line-spacing Robert Dallas Gray
2013-11-13 20:32 ` Eli Zaretskii
2013-11-13 20:36   ` Robert Dallas Gray
2013-11-13 20:44     ` Eli Zaretskii
2013-11-13 20:55       ` Robert Dallas Gray
2013-11-13 21:16         ` Eli Zaretskii
2013-11-13 21:27           ` Robert Dallas Gray [this message]
2013-11-14  3:44             ` Eli Zaretskii
     [not found]               ` <CAOTeZj9_+4P1yUFpObLV+acFxpZyHsPG0uW2HyV=34zOQUT88Q@mail.gmail.com>
2013-11-14 18:07                 ` Eli Zaretskii
2013-11-14 19:24                   ` Robert Dallas Gray
2020-10-28  7:39                   ` Stefan Kangas
2013-11-14  7:38         ` 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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2D715343-65B4-4759-95C1-D3DA8A3F7598@robertdallasgray.com \
    --to=mail@robertdallasgray.com \
    --cc=15886@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).