From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: E Sabof Newsgroups: gmane.emacs.bugs Subject: bug#14636: 24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer Date: Sun, 16 Jun 2013 18:19:06 +0100 Message-ID: References: <83ip1et3ni.fsf@gnu.org> <83ehc2t2sp.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec55552c65e017504df48ada5 X-Trace: ger.gmane.org 1371403213 9791 80.91.229.3 (16 Jun 2013 17:20:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 16 Jun 2013 17:20:13 +0000 (UTC) Cc: 14636@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Jun 16 19:20:13 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UoGce-0005Sn-MO for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2013 19:20:12 +0200 Original-Received: from localhost ([::1]:50434 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoGce-0004Fu-7E for geb-bug-gnu-emacs@m.gmane.org; Sun, 16 Jun 2013 13:20:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35049) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoGcZ-0004EF-K7 for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 13:20:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UoGcV-0008Hy-TD for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 13:20:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:54424) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UoGcV-0008Gq-Qh for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 13:20:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1UoGcU-0008Gr-OF for bug-gnu-emacs@gnu.org; Sun, 16 Jun 2013 13:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: E Sabof Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 Jun 2013 17:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14636 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14636-submit@debbugs.gnu.org id=B14636.137140315531702 (code B ref 14636); Sun, 16 Jun 2013 17:20:02 +0000 Original-Received: (at 14636) by debbugs.gnu.org; 16 Jun 2013 17:19:15 +0000 Original-Received: from localhost ([127.0.0.1]:48740 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoGbi-0008FE-LB for submit@debbugs.gnu.org; Sun, 16 Jun 2013 13:19:15 -0400 Original-Received: from mail-qa0-f41.google.com ([209.85.216.41]:57137) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1UoGbf-0008Ev-M7 for 14636@debbugs.gnu.org; Sun, 16 Jun 2013 13:19:12 -0400 Original-Received: by mail-qa0-f41.google.com with SMTP id f14so1046161qak.0 for <14636@debbugs.gnu.org>; Sun, 16 Jun 2013 10:19:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=EqkQfOGGzmA2r4RHq+qcaeXu4a8pWm/aqirqOKeezto=; b=InZMOSj/oVFMMfeXQ16e9ePpp6TmzvPuyXGWoWJOqS5N3qN3wk+woxya6GuYoht3dC YwR7822l9nCsovfAVRJ6KfR3WhRGElkNIG2CUPNDa8qh5ZOHaVe0zc1S55gNB9VNX+Kl 6oRMrAsapidF2/AImmDTmcLdMolDBhK2Fk7jYcCsWAw9VgpjRqo7UyqrHWcR5R2y8jMr z2WUHlJPXOJ7eNtjm0zJ2YUPL3dAr4v6xYj6gNSRCCYYUqJCZdxUqZ3OQLmPxTM1psm+ GVOPNhaPny3YLhf1pWlrXLHI2/MhfFGsNMJrCgsteuxDRA9sY0p3xKEQwUeIHumx5bt5 cOjQ== X-Received: by 10.229.165.18 with SMTP id g18mr4423758qcy.84.1371403146099; Sun, 16 Jun 2013 10:19:06 -0700 (PDT) Original-Received: by 10.49.96.226 with HTTP; Sun, 16 Jun 2013 10:19:06 -0700 (PDT) In-Reply-To: <83ehc2t2sp.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:75222 Archived-At: --bcaec55552c65e017504df48ada5 Content-Type: text/plain; charset=ISO-8859-1 > I have also tried > > > > (progn (pos-visible-in-window-p) > > (window-line-height)) > > > > but it didn't seem to make any difference. > > Why should it? Calling pos-visible-in-window-p does not guarantee > that the window will be up-to-date, it just gives you the same > information without requiring that the display be up-to-date. Its > disadvantage is that it is slower. > You might be confusing posn-at-point (which returns the height of the character amoung other things), with pos-visible-in-window-p, which returns t or nil. In any case, the height of the character can be different from the height of the line, so they are not equivalent. So either a) the documentation is incomplete and misleading, or b) there is a bug in the implementation (which I think is more likely, given the arbitrary circumstances under which this function does and doesn't work). --bcaec55552c65e017504df48ada5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
=A0=A0> I have also = tried
>
> (progn (pos-visible-in-window-p)
> =A0 =A0 =A0 =A0(window-line-height))
>
> but it didn't seem to make any difference.

Why should it? =A0Calling pos-visible-in-window-p does not guarantee<= br> that the window will be up-to-date, it just gives you the same
information without requiring that the display be up-to-date. =A0Its
disadvantage is that it is slower.

You might be confus= ing posn-at-point (which returns the hei= ght of the character amoung other things), with=A0pos-visible-in-window-p, which returns t or nil.

In any case= , the height of the character can be different from the height of the line,= so they are not equivalent. So either a) the documentation is incomplete a= nd misleading, or b) there is a bug in the implementation (which I think is= more likely, given the arbitrary circumstances under which this function d= oes and doesn't work).
--bcaec55552c65e017504df48ada5--