From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: Why does `(window-line-height)' return nil? Date: Sat, 3 Aug 2013 16:26:50 +0800 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1375518424 30101 80.91.229.3 (3 Aug 2013 08:27:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 3 Aug 2013 08:27:04 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 03 10:27:05 2013 Return-path: Envelope-to: geh-help-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 1V5XB2-0006kC-Ft for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Aug 2013 10:27:04 +0200 Original-Received: from localhost ([::1]:60462 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5XB1-0002d3-Kg for geh-help-gnu-emacs@m.gmane.org; Sat, 03 Aug 2013 04:27:03 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45933) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5XAr-0002cx-93 for help-gnu-emacs@gnu.org; Sat, 03 Aug 2013 04:26:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V5XAq-0003qh-8C for help-gnu-emacs@gnu.org; Sat, 03 Aug 2013 04:26:53 -0400 Original-Received: from mail-ob0-x22d.google.com ([2607:f8b0:4003:c01::22d]:44671) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V5XAq-0003qa-38 for help-gnu-emacs@gnu.org; Sat, 03 Aug 2013 04:26:52 -0400 Original-Received: by mail-ob0-f173.google.com with SMTP id ta17so2700077obb.18 for ; Sat, 03 Aug 2013 01:26:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=CFqG0a1nmurcPH1wYaseuaPLw1cN2Zdta7AVdpSwBp0=; b=xBxg1hfvhxsGWxhIbIBveloBiSMNXiWVkT4x1qbFw12h2e57hf5dHTr6/z89jq/dgi /j6hPqli7IUXkwEsz45HOILPq5GqyAwQYrMHdZDfDbSqtFx5x0fDTsZaiGa3K1MFTR7z WqlPh15oKazV6Y0OY7BqSKrc+IhokAVCkLx7bDKk7zKXrSJ2l2vua05o3bC9UUi2voLK tIayOKEw5C1ll/76bTB8S9/EZatfCmzy/dRDnvg/JTrIi6ylpPGkw0IlqgwCyeq4eMET edoRIYQL0dsrPH24COwxn+ugHIrIeczAy5+gfrLHyXyH8vZRfeGMqwlHnxLPdtpmtnL7 3uRA== X-Received: by 10.50.85.114 with SMTP id g18mr265939igz.15.1375518411134; Sat, 03 Aug 2013 01:26:51 -0700 (PDT) Original-Received: by 10.43.43.201 with HTTP; Sat, 3 Aug 2013 01:26:50 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c01::22d X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92689 Archived-At: Hi, In my *scratch* buffer, all of the following expressions return nil with `eval-print-last-sexp' (also tried `eval-last-sexp'): --8<---------------cut here---------------start------------->8--- (window-line-height 'header-line) (window-line-height 'mode-line) (window-line-height) (window-line-height 0) (window-line-height -1) --8<---------------cut here---------------end--------------->8--- Why do they return nil? After reading the doc string, I only found one sentence that may be relavant: "Return nil if window display is not up-to-date." So, does that mean window display is not up-to-date when evaluating the expression? I've searched the archives/web, but found little information about this function. -- Best regards, Xue Fuqiao. http://www.gnu.org/software/emacs/