GNU bug report logs - #152
window-line-height returns spurious OFFBOT values

Previous Next

Package: emacs;

Reported by: Chong Yidong <cyd <at> stupidchicken.com>

Date: Sun, 20 Apr 2008 14:55:05 UTC

Severity: normal

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 152 in the body.
You can then email your comments to 152 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>:
bug#152; Package emacs. Full text and rfc822 format available.

Acknowledgement sent to Chong Yidong <cyd <at> stupidchicken.com>:
New bug report received and forwarded. Copy sent to Emacs Bugs <bug-gnu-emacs <at> gnu.org>. Full text and rfc822 format available.

Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: submit <at> debbugs.gnu.org
Subject: window-line-height returns spurious OFFBOT values
Date: Sun, 20 Apr 2008 10:45:40 -0400
This appears to be a bug in the new font code.  When Emacs 23 uses a
non-fontconfig font, say:

Emacs.Font: -misc-fixed-medium-r-normal--13-*-*-*-c-70-iso8859-1

then (window-line-height -1) returns a non-zero OFFBOT element, saying
that the last line contains offscreen pixels, when in fact the last line
is completely inside the window.

To reproduce:

  (global-set-key [f1] (lambda () (interactive)
    (message (prin1-to-string (window-line-height -1)))))

Typing f1 in the scratch buffer gives me, e.g.,

  (9 39 510 4)
            ^

Emacs 22, using the exact same font in .Xresources, correctly returns a
zero OFFBOT.

Furthermore, Emacs 23, using a fontconfig font (Monospace-9), also
correctly returns a zero OFFBOT.




Reply sent to Chong Yidong <cyd <at> stupidchicken.com>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to Chong Yidong <cyd <at> stupidchicken.com>:
bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at 152-done <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Chong Yidong <cyd <at> stupidchicken.com>
To: 152-done <at> debbugs.gnu.org
Subject: Re: window-line-height returns spurious OFFBOT values
Date: Thu, 29 May 2008 14:32:53 -0400
> (window-line-height -1) returns a non-zero OFFBOT element, saying that
> the last line contains offscreen pixels, when in fact the last line is
> completely inside the window.

Seems to be fixed now.




bug archived. Request was from Debbugs Internal Request <don <at> donarmstrong.com> to internal_control <at> emacsbugs.donarmstrong.com. (Fri, 27 Jun 2008 14:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 17 years and 55 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.