all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: E Sabof <esabof@gmail.com>
Cc: 14636-done@debbugs.gnu.org
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 19:35:13 +0300	[thread overview]
Message-ID: <83ip1et3ni.fsf@gnu.org> (raw)
In-Reply-To: <CAEp6Dyb3anGNT7qwjUqXFqx_HYs080-8SS93Vq9DVdpUXLk9Qw@mail.gmail.com>

> Date: Sun, 16 Jun 2013 16:24:43 +0100
> From: E Sabof <esabof@gmail.com>
> 
> In emacs -Q
> 
> (window-line-height)
> C-o
> C-x C-e
> 
> Results in nil.

That's a documented limitation.  From the doc string:

  Return nil if window display is not up-to-date.  In that case, use
  `pos-visible-in-window-p' to obtain the information.

> Interestingly enough, I can specify line numbers (or not) and it will work,
> but only as long as (= (point) (point-max))

You cannot easily predict when the window display will be up-to-date
by the time this function runs.

Closing as not-a-bug.





  reply	other threads:[~2013-06-16 16:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-16 15:24 bug#14636: 24.3.50.1; window-line-height doesn't seem to work, unless the point is at the end-of-buffer E Sabof
2013-06-16 16:35 ` Eli Zaretskii [this message]
2013-06-16 16:44   ` E Sabof
2013-06-16 16:53     ` Eli Zaretskii
2013-06-16 17:19       ` E Sabof
2013-06-16 17:32         ` Eli Zaretskii

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=83ip1et3ni.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=14636-done@debbugs.gnu.org \
    --cc=esabof@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.