From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: IRIE Shinsuke Newsgroups: gmane.emacs.bugs Subject: bug#6763: 24.0.50.1; Doc string of `window-line-height' Date: Sat, 31 Jul 2010 03:12:09 +0900 Message-ID: <87sk30alfq.wl%irieshinsuke@yahoo.co.jp> References: <87tynh9ire.wl%irieshinsuke@yahoo.co.jp> <83k4odaung.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1280515100 8873 80.91.229.12 (30 Jul 2010 18:38:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 30 Jul 2010 18:38:20 +0000 (UTC) Cc: 6763@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Jul 30 20:38:14 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OeuTG-0006tg-6r for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jul 2010 20:38:14 +0200 Original-Received: from localhost ([127.0.0.1]:38209 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeuTF-00039Z-Me for geb-bug-gnu-emacs@m.gmane.org; Fri, 30 Jul 2010 14:38:13 -0400 Original-Received: from [140.186.70.92] (port=46323 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OeuSy-00034g-48 for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 14:37:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OeuSw-0002JJ-2q for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 14:37:55 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55656) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OeuSw-0002JD-11 for bug-gnu-emacs@gnu.org; Fri, 30 Jul 2010 14:37:54 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Oeu4r-0008Rb-Uu; Fri, 30 Jul 2010 14:13:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: IRIE Shinsuke Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Jul 2010 18:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6763 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6763-submit@debbugs.gnu.org id=B6763.128051352432437 (code B ref 6763); Fri, 30 Jul 2010 18:13:01 +0000 Original-Received: (at 6763) by debbugs.gnu.org; 30 Jul 2010 18:12:04 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oeu3u-0008R8-RS for submit@debbugs.gnu.org; Fri, 30 Jul 2010 14:12:03 -0400 Original-Received: from mail-px0-f172.google.com ([209.85.212.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oeu3s-0008Qu-8b for 6763@debbugs.gnu.org; Fri, 30 Jul 2010 14:12:00 -0400 Original-Received: by pxi20 with SMTP id 20so619158pxi.3 for <6763@debbugs.gnu.org>; Fri, 30 Jul 2010 11:12:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:date:message-id:from :to:cc:subject:in-reply-to:references:user-agent:mime-version :content-type; bh=3o9i4iXbxIZCPkjVsqnoDaecZm9957SIr9CXFaEAPJQ=; b=A2D+BuVvDmZhSel/7wfxMCwD0ZNKfxQy4b6DnBYnSZvj4vwFH4GWKAVSH0VlprKjnG ReTCFeVJwUHEPH2RRKhWyY3dI0N+VCynG7RB/bnf7DA5URocGyWk77KQnCQIRbfUgqj1 wd6Noz6AP+m8W0xSPkUha0d2j0UCMX03mQ4m0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:date:message-id:from:to:cc:subject:in-reply-to:references :user-agent:mime-version:content-type; b=kP1iR0RoJLC2BhBtS5gX6nNJe89M+yImvMA7TVhhlJjAvdf8tcjSTgUuLgzhns9YMG EpNV3QemSWgk5eyd4Se4pUNN9p14RNSii/7ITOu52iZUJ9kLPswotvTDRnwRiTN3dhN1 g6G8XxLSDk3dGW28sS7RAodcXpkc/dw7AE8lQ= Original-Received: by 10.142.169.12 with SMTP id r12mr2054972wfe.305.1280513535877; Fri, 30 Jul 2010 11:12:15 -0700 (PDT) Original-Received: from tama.gmail.com (EM114-51-85-185.pool.e-mobile.ne.jp [114.51.85.185]) by mx.google.com with ESMTPS id w27sm2859752wfd.5.2010.07.30.11.12.13 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Jul 2010 11:12:14 -0700 (PDT) In-Reply-To: <83k4odaung.fsf@gnu.org> User-Agent: Wanderlust/2.15.6 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 =?UTF-8?Q?(Goj=1B$(D+W=1B(B)?= APEL/10.7 Emacs/23.1 (i486-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 30 Jul 2010 14:13:01 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) 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: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:39081 Archived-At: > I think you misunderstood the doc string. It means that instead of > > (window-line-height) > > you should use > > (pos-visible-in-window-p) `pos-visible-in-window-p' doesn't return a line height, so we can never use it as a substitute of `window-line-height'. > Using progn doesn't cut it, since it always returns the value of the > last form. What you mean is probably this: > > (or (window-line-height) > (pos-visible-in-window-p)) Why? If `window-line-height' returns nil, the result of this expression becomes t or nil. What I want to obtain is a line height, not a boolean. I guess the doc string means "`pos-visible-in-window-p' updates the matrices' information, so call it before `window-line-height'." In that case, however, it seems redisplaying is necessary for getting the useful result. As I wrote in the previous mail, the following expression properly returns the line height. (progn (redisplay t) (window-line-height)) I think `pos-visible-in-window-p' in the doc string should be changed to `redisplay'. IRIE Shinsuke