Subject: bug#6518: 24.0.50; window-height returns wrong value

From: Christoph <[email-masked]>
Date: Sat, 26 Jun 2010 22:10:12 -0600

On 6/26/2010 9:08 PM, Eli Zaretskii wrote:

> Yes.  I think this is by design, so maybe a doc fix is in order.

Sounds good. I attached a doc fix patch proposal.

Christoph
=== modified file 'src/window.c'
--- src/window.c	2010-06-12 11:30:48 +0000
+++ src/window.c	2010-06-27 03:49:01 +0000
@@ -517,7 +517,11 @@
        doc: /* Return the number of lines in WINDOW.
 WINDOW defaults to the selected window.
 
-The return value includes WINDOW's mode line and header line, if any.  */)
+The return value includes WINDOW's mode line and header line, if any.  
+
+Note: The function does not take into account the value of `line-spacing'
+when calculating the number of lines in WINDOW.  
+*/)
      (window)
      Lisp_Object window;
 {